Wrong margin calculation in SO
Bug #891909 reported by
Kevin McMenamin
This bug report was converted into a question: question #179204: Wrong margin calculation in SO.
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
V6.0.3
Create a SO for a product with procurement method = on order (SP = 21.48, qty = 10, disc = 40%). In SO line record, margin = 59.58% and purchase_price is null.
Open the PQ record and change the purchase price to $18. Convert to PO.
Receipt stock & process AP invoice
Despatch goods and confirm sales invoice.
On SO line, margin now -14.22 and purchase_price still null.
1. Margin calculation wrong - should be -39.66
2. purchase_price not updated.
To post a comment you must log in.
same issue exists for margin calculation of ex-stock where there is a backorder and new stock arrives at a different cost