Price difference account - incorrect calculation
Bug #805697 reported by
Kevin McMenamin
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The accounting entries generated for the price difference account are not consistently correct.
Environment:
6.0.2 release 30/06/2011
anglo-saxon accounting
PO invoicing control = from picking
product costing method = average price
inventory valuation = real time (automated)
When a PO is raised for a product with a purchase price <> average cost AND
the invoice when processed has a price difference to the PO, THEN
the price difference value is calculated by (Quantity * (Old Average Price - New Average Price)) (+ve value = DR)
but should be calculated by (Quantity * (Invoice Price - PO Price)) (+ve value = DR)
I can provide a worked example if required
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Confirmed |
To post a comment you must log in.
I think the issue is that in anglo-saxon invoice.py line 122 the price variance calculation is based on the average cost at the time the invoice is processed, not the original PO cost.
So either,
a) this needs to be changed to pick up the original PO cost to calculate the variance; or
b) when the goods are receipted, if there is a difference to the average cost there will need to be a GL entry created for that difference.
My preference is a) so that in reconciling the goods received not invoiced account in the GL there is a recognisable recognition between PO and invoice (ie any difference is solely price variance an invoice processing time)