Add gst_rate to config
This commit is contained in:
parent
7e173bfe54
commit
5e31d0bd8d
|
@ -9,6 +9,7 @@ userpass_b64 = "cm9ib3RhcGk6S2kxMzAxa28j"
|
||||||
# Banqup API parameters
|
# Banqup API parameters
|
||||||
banqup_client_id = "73223"
|
banqup_client_id = "73223"
|
||||||
banqup_platform_id = 15
|
banqup_platform_id = 15
|
||||||
|
gst_rate = "8"
|
||||||
bq_client_id = "your-client-id-here"
|
bq_client_id = "your-client-id-here"
|
||||||
bq_client_secret = "your-secret-here"
|
bq_client_secret = "your-secret-here"
|
||||||
bq_base_url = "https://v4-api.platform.eu.banqup.com/v4"
|
bq_base_url = "https://v4-api.platform.eu.banqup.com/v4"
|
||||||
|
|
|
@ -64,7 +64,7 @@ def extract_invoice(document):
|
||||||
if not first_line:
|
if not first_line:
|
||||||
lines_output = lines_output+','
|
lines_output = lines_output+','
|
||||||
first_line = False
|
first_line = False
|
||||||
lines_output = lines_output + '{"service_name": "","service_description": "'+linetemp['product$_identifier']+'","service_quantity": '+str(linetemp['invoicedQuantity'])+',"service_price": '+str(linetemp['unitPrice'])+',"service_vat": '+'8'+'}'
|
lines_output = lines_output + '{"service_name": "","service_description": "'+linetemp['product$_identifier']+'","service_quantity": '+str(linetemp['invoicedQuantity'])+',"service_price": '+str(linetemp['unitPrice'])+',"service_vat": '+gst_rate+'}'
|
||||||
lines_output = lines_output+']'
|
lines_output = lines_output+']'
|
||||||
#print(lines_output)
|
#print(lines_output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue