Add 5 new fields available for the API integration:
po_number buyer_reference customer_reference supplier_reference contract_number
This commit is contained in:
parent
f2c1aba75a
commit
7e173bfe54
|
@ -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**
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue