Rechnungsbetrag damit ihr euch schön ein runterholen könnt :)

This commit is contained in:
holger.trampe 2021-01-28 18:06:13 +01:00
parent f2c09841ed
commit 8b623a823c
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ def getAgencyGroupName(group):
def loadAboCount():
return len(Agency.objects.filter(paymentplan=1))
# Return an Tax-Free Value of bill
# Return Bill-Value with Tax
@register.simple_tag
def loadBillValue(bill):
headers = {
@ -64,7 +64,7 @@ def loadBillValue(bill):
try:
r_final = requests.get("https://api.lexoffice.io/v1/invoices/"+bill.lexid, data=json_data, headers=headers)
billdata = json.loads(r_final.text)
returnvalue = billdata['totalPrice']['totalNetAmount']
returnvalue = billdata['totalPrice']['totalGrossAmount']
except:
pass