Skip to content

[18.0][FIX] account_invoice_import_facturx: Decrease line price_unit/price_subtotal by allowance/charge#1291

Open
mt-software-de wants to merge 3 commits intoOCA:18.0from
mt-software-de:18-fix-account_invoice_import_facturx-allowance
Open

[18.0][FIX] account_invoice_import_facturx: Decrease line price_unit/price_subtotal by allowance/charge#1291
mt-software-de wants to merge 3 commits intoOCA:18.0from
mt-software-de:18-fix-account_invoice_import_facturx-allowance

Conversation

@mt-software-de
Copy link
Copy Markdown

Since LineTotalAmount is exclusive taxes but inclusive allowances/charges.
We need to decrease the line's price_unit/price_subtotal. Otherwise it is reduced twice.

Also i implemented a config to either create a separate allowance/charge line or not.
The res.config.settings is still missing and tests.

@alexis-via thanks for this addon.

Here is the schema of LineTotalAmount.

https://portal3.gefeg.com/projectdata/invoice/deliverables/installed/publishingproject/zugferd%202.1%20-%20facturx%201.0.05/en%2016931%20%E2%80%93%20facturx%201.0.05%20%E2%80%93%20zugferd%202.1%20-%20basic.scm/html/DE/021.htm?https://portal3.gefeg.com/projectdata/invoice/deliverables/installed/publishingproject/zugferd%202.1%20-%20facturx%201.0.05/en%2016931%20%E2%80%93%20facturx%201.0.05%20%E2%80%93%20zugferd%202.1%20-%20basic.scm/html/DE/0250.htm

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @alexis-via,
some modules you are maintaining are being modified, check this out!

@mt-software-de mt-software-de force-pushed the 18-fix-account_invoice_import_facturx-allowance branch 2 times, most recently from 916c17b to 62393e1 Compare February 14, 2026 15:02
…subtotal

by allowance/charge amount
since LineTotalAmount is exclusive taxes but
inclusive allowances/charges
@mt-software-de mt-software-de force-pushed the 18-fix-account_invoice_import_facturx-allowance branch from 62393e1 to b8690fe Compare February 14, 2026 15:02
@mt-software-de mt-software-de marked this pull request as ready for review February 14, 2026 15:02
@mt-software-de mt-software-de force-pushed the 18-fix-account_invoice_import_facturx-allowance branch from b8690fe to 443ccfa Compare February 14, 2026 15:26
…lowance or charge

is created as separate line or not
@mt-software-de mt-software-de force-pushed the 18-fix-account_invoice_import_facturx-allowance branch from 443ccfa to 8aae823 Compare February 14, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants