Rechnungeserstellung usw.
This commit is contained in:
parent
36a5cdcb71
commit
3da29bdef0
|
|
@ -22,7 +22,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
{% loadMWST user as mwst %}
|
||||
<td>Gesetzliche MwSt. (16%)</td><td>{{mwst|floatformat:2|intcomma}} €</td>
|
||||
<td>Gesetzliche MwSt. (19%)</td><td>{{mwst|floatformat:2|intcomma}} €</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><hr></td>
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ def GetBillPDF(request, pk):
|
|||
|
||||
r = requests.get("https://api.lexoffice.io/v1/invoices/"+bill.lexid+"/document", data=json_data, headers=headers)
|
||||
json.loads(r.text)
|
||||
|
||||
|
||||
base64String = requests.get("https://api.lexoffice.io/v1/files/"+json.loads(r.text)["documentFileId"]+"/", data=json_data, headers=headers)
|
||||
|
||||
buffer = BytesIO.BytesIO()
|
||||
|
|
@ -1754,7 +1754,10 @@ class BillPlanUpdate(UpdateView):
|
|||
|
||||
self.object = form.save(commit=False)
|
||||
|
||||
|
||||
r = requests.post("https://api.lexoffice.io/v1/invoices/?finalize=true", data=json_data, headers=headers)
|
||||
# Als ENTWURF Rechnung anlegen
|
||||
#r = requests.post("https://api.lexoffice.io/v1/invoices/", data=json_data, headers=headers)
|
||||
|
||||
if(r.status_code == 201):
|
||||
messages.success(self.request, f"Rechnung erstellt!")
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -730,7 +730,7 @@ def loadMWST(user):
|
|||
else:
|
||||
usercount = usercount - 3
|
||||
|
||||
mwst = (21.0 + usercount*3)/100 * 16
|
||||
mwst = (21.0 + usercount*3)/100 * 19
|
||||
|
||||
return mwst
|
||||
|
||||
|
|
@ -743,7 +743,7 @@ def loadFinalMoney(user):
|
|||
else:
|
||||
usercount = usercount - 3
|
||||
|
||||
finalMoney = (21.0 + usercount*3) * 1.16
|
||||
finalMoney = (21.0 + usercount*3) * 1.19
|
||||
return finalMoney
|
||||
|
||||
@register.simple_tag
|
||||
|
|
@ -755,7 +755,7 @@ def loadFinalMoneyByAgency(agency):
|
|||
else:
|
||||
usercount = usercount - 3
|
||||
|
||||
finalMoney = (21.0 + usercount*3) * 1.16
|
||||
finalMoney = (21.0 + usercount*3) * 1.19
|
||||
return finalMoney
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1447,6 +1447,8 @@ def cronactionsbill(request, code):
|
|||
# Monatliche Berechnung
|
||||
# Alle Rechnungen laden, deren Letzter Tag HEUTE ist und bei ausgewähltem Paymentplan 1 eine neue Rechnung erstellen, Mailverschicke, Nutzeraccouns zählen und neue Rechnung in der Agentur hinterlegen
|
||||
new_bills = AgencyBills.objects.filter(end=today)
|
||||
|
||||
|
||||
for bill in new_bills:
|
||||
if bill.agency.paymentstatus == 0 and bill.agency.paymentplan == 1:
|
||||
|
||||
|
|
@ -1534,7 +1536,11 @@ def cronactionsbill(request, code):
|
|||
}
|
||||
}
|
||||
json_data = json.dumps(lexdata)
|
||||
# WIEDER RAUSNEHMEN
|
||||
# NEUE RECHNUNG ALs ENTWURF
|
||||
|
||||
#r = requests.post("https://api.lexoffice.io/v1/invoices/", data=json_data, headers=headers)
|
||||
# RICHTIGE RECHNUNG
|
||||
r = requests.post("https://api.lexoffice.io/v1/invoices/?finalize=true", data=json_data, headers=headers)
|
||||
|
||||
if(r.status_code == 201):
|
||||
|
|
|
|||
Loading…
Reference in New Issue