Rechnungsdatum Korrigiert
This commit is contained in:
parent
30cb18ece5
commit
ebdf8b282f
|
|
@ -177,7 +177,8 @@ class AdmAddBill(CreateView):
|
|||
|
||||
start_date = form.cleaned_data["start"]
|
||||
start_date_string = start_date.strftime("%d.%m.%Y")
|
||||
end_date = start_date + relativedelta(days=30)
|
||||
end_date = start_date + relativedelta(months=1)
|
||||
end_date = end_date - relativedelta(days=1)
|
||||
end_date_string= end_date.strftime("%d.%m.%Y")
|
||||
|
||||
# Rechnungsdatum passt ja
|
||||
|
|
|
|||
|
|
@ -1985,11 +1985,19 @@ class BillPlanUpdate(UpdateView):
|
|||
|
||||
plan = 1
|
||||
|
||||
'''
|
||||
start_date = month
|
||||
start_date_string = month.strftime("%d.%m.%Y")
|
||||
end_date = month + relativedelta(months=1)
|
||||
end_date = end_date - relativedelta(days=1)
|
||||
end_date_string= end_date.strftime("%d.%m.%Y")
|
||||
'''
|
||||
start_date = month + relativedelta(days=1)
|
||||
start_date_string = start_date.strftime("%d.%m.%Y")
|
||||
# Einen Monat weiter und dann wieder einen Tag zurück
|
||||
end_date = month + relativedelta(months=1)
|
||||
#end_date = end_date - relativedelta(days=1)
|
||||
end_date_string= end_date.strftime("%d.%m.%Y")
|
||||
|
||||
voucher_date_today = date.today().strftime("%Y-%m-%d")
|
||||
# TASK: Was passiert bei Änderungen der Agenturdaten?
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1881,11 +1881,11 @@ def cronactionsbill(request, code):
|
|||
|
||||
plan = 1
|
||||
|
||||
start_date = month
|
||||
start_date_string = month.strftime("%d.%m.%Y")
|
||||
start_date = month + relativedelta(days=1)
|
||||
start_date_string = start_date.strftime("%d.%m.%Y")
|
||||
# Einen Monat weiter und dann wieder einen Tag zurück
|
||||
end_date = month + relativedelta(months=1)
|
||||
end_date = end_date - relativedelta(days=1)
|
||||
#end_date = end_date - relativedelta(days=1)
|
||||
end_date_string= end_date.strftime("%d.%m.%Y")
|
||||
|
||||
voucher_date_today = date.today().strftime("%Y-%m-%d")
|
||||
|
|
|
|||
Loading…
Reference in New Issue