Sunday, August 16, 2020
1 change · master
Resolved issues and error corrections
The Argentine electronic invoicing flow now uses the latest invoice number reported by AFIP, or the configured starting sequence, instead of restarting numbering at 1. This prevents rejected invoices caused by duplicate or incorrect document numbers and helps businesses validate new invoices successfully.
Original PR description
task 355 --- ### Description of the error Use last or starting sequence for new sequences instead of setting the seq to 0 all the time. Useful when we set the starting sequence for electronic…
task 355 --- ### Description of the error Use last or starting sequence for new sequences instead of setting the seq to 0 all the time. Useful when we set the starting sequence for electronic invoices using webservices. Here is an example of how to reproduce it for AR localization: 1. Create a new journal for electronic invoice with this data  2. Go to menu "Accounting / Accounting / Actions / Consult invoice in AFIP" and get the information of the last invoice "FACTURA (A)". At the moment this ticket was reported the next number was 42  4. Create a new invoice for the Journal FE 1234 of document type "Factura (A)" ### Current behavior before the PR Is showing that the document number is 01234-00000001 ( seq = 1)  And if I try to validate the invoice we receive an error from AFIP  ### Desired behavior after the PR Will show that the document number is 01234-00000043 (seq) and we will be able to validate the invoice in AFIP -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr