Add 5 new fields available for the API integration:

po_number
  buyer_reference
  customer_reference
  supplier_reference
  contract_number
This commit is contained in:
Enrique Barcelli 2023-06-25 12:00:58 +08:00
parent f2c1aba75a
commit 7e173bfe54
Signed by: kikobar
GPG key ID: 006C13A68E25D3B7
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
**Objective** **Objective**
This project attempt to extract data from Openbravo to generate a JSON to submit This project attempts to extract data from Openbravo to generate a JSON to submit
to the Banqup API of Unifiedpost. to the Banqup API of Unifiedpost.
**Requirements** **Requirements**

View file

@ -77,7 +77,12 @@ def extract_invoice(document):
"currency_code": invoice['response']['data'][0]['currency$_identifier'], "currency_code": invoice['response']['data'][0]['currency$_identifier'],
"client_id": banqup_client_id, "client_id": banqup_client_id,
"delivery_channel": preferred_channel, "delivery_channel": preferred_channel,
"invoice_lines": json.loads(lines_output) "invoice_lines": json.loads(lines_output),
"po_number": "NA",
"buyer_reference": "NA",
"customer_reference": "NA",
"supplier_reference": "NA",
"contract_number": "NA"
}) })
#print(payload) #print(payload)