Move Banqup platform_id and client_id to config.py
This commit is contained in:
parent
1a823807e0
commit
9f603ae9d2
|
@ -4,3 +4,8 @@ ob_api_url = "http://[your-openbravo-domain]/openbravo/org.openbravo.service.jso
|
||||||
#client_id = "7B75C13C21B945AB9DA2B32DD993FE70"
|
#client_id = "7B75C13C21B945AB9DA2B32DD993FE70"
|
||||||
#client_identifier = "Grupo Acme Companies"
|
#client_identifier = "Grupo Acme Companies"
|
||||||
userpass_b64 = "cm9ib3RhcGk6S2kxMzAxa28j"
|
userpass_b64 = "cm9ib3RhcGk6S2kxMzAxa28j"
|
||||||
|
|
||||||
|
|
||||||
|
# Banqup API parameters
|
||||||
|
banqup_client_id = 73223
|
||||||
|
banqup_platform_id = 15
|
||||||
|
|
|
@ -29,10 +29,10 @@ payload = json.dumps({
|
||||||
"sales_invoice_number": invoice['response']['data'][0]['documentNo'],
|
"sales_invoice_number": invoice['response']['data'][0]['documentNo'],
|
||||||
"sales_invoice_date": invoice['response']['data'][0]['invoiceDate']+"T00:00:00Z",
|
"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"
|
"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"
|
"debtor_id": 136328, #needs to be fetch from database using the "client_debtor_number"
|
||||||
"currency_code": invoice['response']['data'][0]['currency$_identifier'],
|
"currency_code": invoice['response']['data'][0]['currency$_identifier'],
|
||||||
"client_id": 73223,
|
"client_id": banqup_client_id,
|
||||||
"delivery_channel": "openpeppol",
|
"delivery_channel": "openpeppol",
|
||||||
"invoice_lines": [
|
"invoice_lines": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue