Rechnungsbetrag damit ihr euch schön ein runterholen könnt :)
This commit is contained in:
parent
f2c09841ed
commit
8b623a823c
Binary file not shown.
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue