[IMP] account_edi_ubl_cii: handle payment terms
Handle payment terms for UBL as described by the Belgian Peppol Authority and documented by VBO-FEB. In case of early payment discount (for instance 2% if payment within 7 days): * add one document level allowance per VAT rate (this allows to reduce the tax base amount to take the discount into account) * add one document level charge exempt from VAT (the amount of this charge is the amount of the discount the customer can get by paying early) * Recompute the document level TaxTotal accordingly Hence, nothing changes for the invoice lines. Importing the xml is then convenient since each document level AllowanceCharge will create an invoice line on top of the existing invoice lines. The total amount of the invoice will be the amount to pay in case of no early payment discount. To get the total amount to pay in case of early payment discount, simply remove the document level charge. References: https://openpeppol.atlassian.net/wiki/spaces/Belgium/overview https://efactuur.belgium.be/sites/default/files/3.%20Cash%20discount.docx opw-3235769 task-3326963 closes odoo/odoo#132625 Signed-off-by:Laurent Smet (las) <las@odoo.com>
Showing
- addons/account_edi_ubl_cii/data/ubl_20_templates.xml 3 additions, 0 deletionsaddons/account_edi_ubl_cii/data/ubl_20_templates.xml
- addons/account_edi_ubl_cii/i18n/account_edi_ubl_cii.pot 8 additions, 0 deletionsaddons/account_edi_ubl_cii/i18n/account_edi_ubl_cii.pot
- addons/account_edi_ubl_cii/models/account_edi_common.py 1 addition, 4 deletionsaddons/account_edi_ubl_cii/models/account_edi_common.py
- addons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py 77 additions, 6 deletionsaddons/account_edi_ubl_cii/models/account_edi_xml_ubl_20.py
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/a_nz_out_invoice.xml 1 addition, 1 deletion...cii_tests/tests/test_files/from_odoo/a_nz_out_invoice.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/a_nz_out_refund.xml 1 addition, 1 deletion..._cii_tests/tests/test_files/from_odoo/a_nz_out_refund.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_ecotaxes_case1.xml 1 addition, 1 deletion..._tests/tests/test_files/from_odoo/bis3_ecotaxes_case1.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_ecotaxes_case2.xml 1 addition, 1 deletion..._tests/tests/test_files/from_odoo/bis3_ecotaxes_case2.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_ecotaxes_case3.xml 1 addition, 1 deletion..._tests/tests/test_files/from_odoo/bis3_ecotaxes_case3.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_out_invoice.xml 1 addition, 1 deletion...cii_tests/tests/test_files/from_odoo/bis3_out_invoice.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_out_invoice_no_prices.xml 1 addition, 1 deletion...tests/test_files/from_odoo/bis3_out_invoice_no_prices.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_out_invoice_public_admin.xml 1 addition, 1 deletion...ts/test_files/from_odoo/bis3_out_invoice_public_admin.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_out_invoice_rounding.xml 1 addition, 1 deletion.../tests/test_files/from_odoo/bis3_out_invoice_rounding.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_out_refund.xml 1 addition, 1 deletion..._cii_tests/tests/test_files/from_odoo/bis3_out_refund.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_pay_term.xml 197 additions, 0 deletions...bl_cii_tests/tests/test_files/from_odoo/bis3_pay_term.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/bis3_pay_term_ecotax.xml 160 additions, 0 deletions...tests/tests/test_files/from_odoo/bis3_pay_term_ecotax.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/nlcius_out_invoice.xml 1 addition, 1 deletion...i_tests/tests/test_files/from_odoo/nlcius_out_invoice.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/nlcius_out_refund.xml 1 addition, 1 deletion...ii_tests/tests/test_files/from_odoo/nlcius_out_refund.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/ubl_test_import_partner.xml 1 addition, 1 deletion...ts/tests/test_files/from_odoo/ubl_test_import_partner.xml
- addons/l10n_account_edi_ubl_cii_tests/tests/test_files/from_odoo/xrechnung_ubl_out_invoice.xml 1 addition, 1 deletion.../tests/test_files/from_odoo/xrechnung_ubl_out_invoice.xml
Loading
Please register or sign in to comment