diff --git a/adm/templatetags/__pycache__/adm_tags.cpython-38.pyc b/adm/templatetags/__pycache__/adm_tags.cpython-38.pyc index f89fc6b..998ecd8 100644 Binary files a/adm/templatetags/__pycache__/adm_tags.cpython-38.pyc and b/adm/templatetags/__pycache__/adm_tags.cpython-38.pyc differ diff --git a/adm/templatetags/adm_tags.py b/adm/templatetags/adm_tags.py index b90475e..785c7ca 100644 --- a/adm/templatetags/adm_tags.py +++ b/adm/templatetags/adm_tags.py @@ -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