Move Banqup platform_id and client_id to config.py

This commit is contained in:
Enrique Barcelli 2023-06-21 23:43:43 +08:00
parent 1a823807e0
commit 9f603ae9d2
Signed by: kikobar
GPG key ID: 006C13A68E25D3B7
2 changed files with 7 additions and 2 deletions

View file

@ -4,3 +4,8 @@ ob_api_url = "http://[your-openbravo-domain]/openbravo/org.openbravo.service.jso
#client_id = "7B75C13C21B945AB9DA2B32DD993FE70"
#client_identifier = "Grupo Acme Companies"
userpass_b64 = "cm9ib3RhcGk6S2kxMzAxa28j"
# Banqup API parameters
banqup_client_id = 73223
banqup_platform_id = 15

View file

@ -29,10 +29,10 @@ payload = json.dumps({
"sales_invoice_number": invoice['response']['data'][0]['documentNo'],
"sales_invoice_date": invoice['response']['data'][0]['invoiceDate']+"T00:00:00Z",
"sales_invoice_due_date": "2023-06-17T00:00:00Z", #needs to be replaced by invoiceDate+"daysTillDue"
"platform_id": 15,
"platform_id": banqup_platform_id,
"debtor_id": 136328, #needs to be fetch from database using the "client_debtor_number"
"currency_code": invoice['response']['data'][0]['currency$_identifier'],
"client_id": 73223,
"client_id": banqup_client_id,
"delivery_channel": "openpeppol",
"invoice_lines": [
{