2023-06-21 15:53:43 +00:00
**Objective**
2023-06-21 04:26:36 +00:00
2023-06-25 04:00:58 +00:00
This project attempts to extract data from Openbravo to generate a JSON to submit
2023-06-21 04:26:36 +00:00
to the Banqup API of Unifiedpost.
2023-06-21 15:53:43 +00:00
**Requirements**
* Python installed on the machine running this application
* Credentials for accessing an Openbravo 3+ instance running with the REST API enabled
* Credentials for accessing the Banqup API by Unifiedpost
2023-06-24 17:04:45 +00:00
* Add the businessPartner id to the 'Customer code' of the customer on the 'Customers & Suppliers' section of the Banqup portal - This is critical, this programs requires this field to extract some parameters that only exist in the Banqup platform
2023-06-21 15:53:43 +00:00
**How to run this application**
2023-06-21 15:55:23 +00:00
2023-06-21 15:58:22 +00:00
* Copy the file `config-sample.py` to `config.py`
* Edit `config.py` with your credentials for Openbravo and Banqup
2023-06-23 11:55:52 +00:00
* Run `python3 extract_invoice.py <documentNo>`
2023-06-21 15:53:43 +00:00
Where `<documentNo>` is the human readable invoice number in Openbravo.