-
- Downloads
[FIX] l10n_sa_edi: add support for global discounts
This commit does two things:
1) Global Discounts: When creating an invoice with a negative line, such as a Tax Invoice with global discount, we process the line as a document level allowance as required by ZATCA, and remove it from the lines sent in the UBL. This allows us to provide support for global discounts, such as those applied by promotion programs
2) Add support for down-payment document type in _l10n_sa_get_invoice_type method: 386
closes odoo/odoo#153379
Signed-off-by:
Josse Colpaert <jco@odoo.com>
Showing
- addons/l10n_sa_edi/models/account_edi_xml_ubl_21_zatca.py 57 additions, 11 deletionsaddons/l10n_sa_edi/models/account_edi_xml_ubl_21_zatca.py
- addons/l10n_sa_edi/models/account_move.py 8 additions, 0 deletionsaddons/l10n_sa_edi/models/account_move.py
- addons/l10n_sa_edi/tests/compliance/simplified/credit.xml 1 addition, 0 deletionsaddons/l10n_sa_edi/tests/compliance/simplified/credit.xml
- addons/l10n_sa_edi/tests/compliance/simplified/debit.xml 1 addition, 0 deletionsaddons/l10n_sa_edi/tests/compliance/simplified/debit.xml
- addons/l10n_sa_edi/tests/compliance/simplified/invoice.xml 1 addition, 0 deletionsaddons/l10n_sa_edi/tests/compliance/simplified/invoice.xml
- addons/l10n_sa_edi/tests/compliance/standard/credit.xml 1 addition, 0 deletionsaddons/l10n_sa_edi/tests/compliance/standard/credit.xml
- addons/l10n_sa_edi/tests/compliance/standard/debit.xml 1 addition, 0 deletionsaddons/l10n_sa_edi/tests/compliance/standard/debit.xml
- addons/l10n_sa_edi/tests/compliance/standard/invoice.xml 1 addition, 0 deletionsaddons/l10n_sa_edi/tests/compliance/standard/invoice.xml