Monday, January 15, 2018
1 change · master
New functionality added to Odoo
This update adds automated checks to ensure Mexican electronic invoices with payment complements are generated correctly when an invoice is paid in multiple installments. It helps reduce the risk of compliance issues by verifying the expected payment details and official certification data remain accurate.
Original PR description
- Add expected_payment.xml file to validate payment complement structure - Add test which creates an invoice from the previous day and it's paid in two parts, generating two CFDIs with payment complement - Replace only the node "TimbreFiscalDigital" from the expected XML, so complementary, nodes don't get overwriten, e.g. the the node "Pagos". - If the CFDI contains the payment complement, the attributes "FechaPago" and "IdDocumento" should be set on the expected XML taking the values from the generated XML, so they could match