Skip to content
Snippets Groups Projects
Commit a98a294f authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[FIX] sale: calculate untaxed_amount_to_invoice based on invoiced quantity


Enable discounts on sales order lines
Create a service type product with invoicing based on timesheet and
task in sales order's project
Create so for 6 hours and deliver 8 hours.
Create 2 invoices: One for 6 hours with the regular price and 2 hours
h 100% discount.
Invoice status of the order will be Fully Invoiced

Go to Sales>Reporting>Sales Analysis report will show the untaxed amount
associated with 2nd invoice as still to invoice which is incorrect

This occur because when saving the invoice the untaxed amount is
calculated on the amount invoice after discount

opw-2338564

closes odoo/odoo#59635

X-original-commit: be5ec58d
Signed-off-by: default avataragr-odoo <agr-odoo@users.noreply.github.com>
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 56835bf9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment