Generating Factura Electronica cannot be optional #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Generating the json for sending to Facturador Sunat cannot be optional, as all invoices must be signed and sent to SUNAT for validation, therefore the idea of having button to send the data (like printing, or exporting) will systematically generate invoices in Openbravo which have been forgotten to be send to SUNAT.
The design should be a programmatic extraction from the Openbravo database to be sent to Facturador continuosly as the invoices are confirmed.
Moreover, by SUNAT regulation there are only 24 hours to validate a Factura or Nota, and 5 days to validate a Boleta, so this timing restriction must be taken in consideration for the design.
changed the description
We changed the project approach to a query extraction and generation of the JSON files using an external application.
We did the extraction in Python with Psycopg2 reading from the Postgres database and writing the JSON files in a folder where the Facturador SUNAT can pick them up.
The required reference data and the sql query are included in the 0.0.1 code, but not the python code as it belongs to a different project/repo.