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.
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
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.
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: