Script to extract sales invoices from Openbravo and submit them via the Banqup API by Unifiedpost. This repo is mirrored at https://gitlab.com/kikobar/org.openbravo.kikobar.banqup and https://github.com/kikobar/org.openbravo.kikobar.banqup
Go to file
2023-06-27 19:29:41 +08:00
cache Initialize python directories 2023-06-24 20:15:53 +08:00
.gitignore Retrieve debtor_id knowing businessPartner 2023-06-24 20:01:08 +08:00
__init__.py Initialize python directories 2023-06-24 20:15:53 +08:00
api.py Add API and get_token for testing API 2023-06-24 15:39:57 +08:00
authhandler.py Add API and get_token for testing API 2023-06-24 15:39:57 +08:00
cachehandler.py Add authorization and cache handlers 2023-06-24 13:47:56 +08:00
config-sample.py Add gst_rate to config 2023-06-27 19:29:41 +08:00
extract_invoice.py Add gst_rate to config 2023-06-27 19:29:41 +08:00
get_token.py Add API and get_token for testing API 2023-06-24 15:39:57 +08:00
LICENSE Enter Copyrigh holder details 2023-06-22 00:09:05 +08:00
README.md Add 5 new fields available for the API integration: 2023-06-25 12:00:58 +08:00
retrieve_debtor.py Retrieve debtor_id knowing businessPartner 2023-06-24 20:01:08 +08:00

Objective

This project attempts to extract data from Openbravo to generate a JSON to submit to the Banqup API of Unifiedpost.

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
  • 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

How to run this application

  • Copy the file config-sample.py to config.py
  • Edit config.py with your credentials for Openbravo and Banqup
  • Run python3 extract_invoice.py <documentNo>

Where <documentNo> is the human readable invoice number in Openbravo.