Add gst_rate to config

This commit is contained in:
Enrique Barcelli 2023-06-27 19:29:41 +08:00
parent 7e173bfe54
commit 5e31d0bd8d
Signed by: kikobar
GPG key ID: 006C13A68E25D3B7
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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)