account-invoice-reporting icon indicating copy to clipboard operation
account-invoice-reporting copied to clipboard

Amounts error in invoices grouped by delivery note

Open cramosh opened this issue 9 months ago • 2 comments

Module

account_invoice_report_grouped_by_picking

Describe the bug

When in an invoice grouped by delivery notes, one of the lines is divided into different delivery notes, the amount field is showing the price with taxes included instead of the taxable base, as the rest of the lines do.

To Reproduce

Affected versions: 17.0

Steps to reproduce the behavior: 1.Create an order with a product that has more than one unit. 2.Create a partial delivery note. 3.Invoice the order. 4. Print report

Expected behavior In the printed report, the expected amount should not include taxes.

Additional context The problem seems to be that price_total is assigned where price_subtotal should be.

Module code that operates on the report:

...

cramosh avatar May 20 '24 07:05 cramosh