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