Rechnungsdatum angepasst, kleine Schrift gelöst
This commit is contained in:
parent
80aba1e850
commit
30cb18ece5
|
|
@ -1987,7 +1987,8 @@ class BillPlanUpdate(UpdateView):
|
|||
|
||||
start_date = month
|
||||
start_date_string = month.strftime("%d.%m.%Y")
|
||||
end_date = month + relativedelta(days=30)
|
||||
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")
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -7,8 +7,9 @@
|
|||
<small>Letzter Login: {{ request.user.last_login }}
|
||||
{% getlocalweather request.user as weatherdata %}
|
||||
{% if request.user.profile.agency.city|length > 0 and weatherdata.0 != None %}
|
||||
{{weatherdata.0}} <img src='https://openweathermap.org/img/wn/{{weatherdata.1}}.png' width="45px" style="margin-bottom: -5px; padding-right: -20px; margin-left: -10px; margin-top: -15px; margin-right: -6px;"> {{weatherdata.2}}</small>
|
||||
{{weatherdata.0}} <img src='https://openweathermap.org/img/wn/{{weatherdata.1}}.png' width="45px" style="margin-bottom: -5px; padding-right: -20px; margin-left: -10px; margin-top: -15px; margin-right: -6px;"> {{weatherdata.2}}
|
||||
{% endif %}
|
||||
</small>
|
||||
<hr>
|
||||
<h5>Agentur: <b>{{ request.user.profile.agency.name }}</b></h5>
|
||||
<hr>
|
||||
|
|
|
|||
|
|
@ -1861,8 +1861,9 @@ def cronactionsbill(request, code):
|
|||
agency = bill.agency
|
||||
|
||||
month = today
|
||||
# 30 Tage weiter, nicht einen Monat!
|
||||
next_month = today + relativedelta(days=30)
|
||||
# Einen Monat weiter und dann wieder einen Tag zurück
|
||||
next_month = today + relativedelta(months=1)
|
||||
next_month = next_month - relativedelta(days=1)
|
||||
# USERCOUNT BERECHNEN
|
||||
usercount = len(User.objects.filter(profile__agency=agency))
|
||||
|
||||
|
|
@ -1882,7 +1883,9 @@ def cronactionsbill(request, code):
|
|||
|
||||
start_date = month
|
||||
start_date_string = month.strftime("%d.%m.%Y")
|
||||
end_date = month + relativedelta(days=30)
|
||||
# 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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue