Aktive Rechnungen inkl. Meldung hinzufgefügt
This commit is contained in:
parent
a33db3ba6c
commit
8c34f91033
Binary file not shown.
|
|
@ -845,6 +845,7 @@ def getHistoryClassOfObject(value):
|
||||||
2 - Keine Rechnung, keinen Plan, Freiraum um mehr als 14 Tage überschritten
|
2 - Keine Rechnung, keinen Plan, Freiraum um mehr als 14 Tage überschritten
|
||||||
3 - Keine Rechnung, keinen Plan, Freiraum um mehr als 30 Tage überschritten - AGENTUR SPERREN!
|
3 - Keine Rechnung, keinen Plan, Freiraum um mehr als 30 Tage überschritten - AGENTUR SPERREN!
|
||||||
10 - Plan erstellt!
|
10 - Plan erstellt!
|
||||||
|
11 - Plan erstellt und Rechungen für den aktuellen Zeitraum vorhanden
|
||||||
20 - KOSTENLOS
|
20 - KOSTENLOS
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
@ -863,14 +864,12 @@ def getAgencyBillStatus(agency):
|
||||||
activeBill = False
|
activeBill = False
|
||||||
|
|
||||||
for bill in bills:
|
for bill in bills:
|
||||||
if bill.end <= today and bill.billstatus == "paid":
|
if bill.end >= today:
|
||||||
activeBill = True
|
activeBill = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Tage, die zwischen Registrierung und heute liegen
|
# Tage, die zwischen Registrierung und heute liegen
|
||||||
daysbetween = (today - regdate).days
|
daysbetween = (today - regdate).days
|
||||||
|
|
||||||
if agency.paymentplan == 0 and daysbetween <= 30:
|
if agency.paymentplan == 0 and daysbetween <= 30:
|
||||||
returnvalue = 0
|
returnvalue = 0
|
||||||
elif agency.paymentplan == 0 and daysbetween > 30 and daysbetween <= 45:
|
elif agency.paymentplan == 0 and daysbetween > 30 and daysbetween <= 45:
|
||||||
|
|
@ -883,9 +882,6 @@ def getAgencyBillStatus(agency):
|
||||||
returnvalue = 10
|
returnvalue = 10
|
||||||
elif agency.paymentplan == 1 and activeBill == False:
|
elif agency.paymentplan == 1 and activeBill == False:
|
||||||
returnvalue = 11
|
returnvalue = 11
|
||||||
#paymentplan = models.IntegerField(default=0, null=True, blank=True)
|
|
||||||
|
|
||||||
#payment_address = models.EmailField(default=None, blank=True, null=True)
|
|
||||||
|
|
||||||
return returnvalue
|
return returnvalue
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1056,15 +1056,14 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% elif billstatus == 11%}
|
{% elif billstatus == 11%}
|
||||||
{% if request.user|usergperm:"agencyinfo" %}
|
|
||||||
<div class="modal fade show" tabindex="-1" role="dialog" data-backdrop="static" id="noaccess">
|
<div class="modal fade show" tabindex="-1" role="dialog" data-backdrop="static" id="noaccess">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title">Offene Rechnungen</h5>
|
<h5 class="modal-title">Keine aktuellen Rechnungen</h5>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
Ihre Agentur hat offene Rechnungen! Bitte begleichen Sie die Rechnungen innerhalb von maximal zwei Wochen.
|
Ihre Rechnungen sind ausgelaufen bzw. nicht bezahlt. Bitte prüfen Sie Ihren Abo-Status und aktuelle Rechnungen! Wenden Sie sich bei Fragen an den Support.
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Schliessen</button>
|
<button type="button" class="btn btn-primary" data-dismiss="modal">Schliessen</button>
|
||||||
|
|
@ -1083,9 +1082,13 @@ $(document).ready(function(){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
console.log("{{billstatus}}");
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue