Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030430Openbravo ERP03. Procurement managementpublic2015-07-27 09:592018-01-19 14:38
psanjuan 
Triage Omni OMS 
urgentmajorhave not tried
newopen 
20Ubuntu 8.04.1
 
 
Core
No
0030430: No price correction adjustment is created whenever a receipt is not created from an invoice but from the order related.
No price correction adjustment is created whenever a receipt is not created from an invoice but from the order related, regardless corresponding purchase invoice has a product price change.
In F&B International, verify that Costing Background process an Price Correction process are both scheduled, and there is a Costing Rule setup for F&B US under "Average" costing method algorithm.

Go to product window and create a new product with below setup:
Organization = F&B US
Search key and Name = A
Product type = Item
Stocked checkbox = selected
Go to price tab and create a new record:
Select "Other services" purchase price list and enter a unit/list price = 25.00

Go to purchase order window and create a new one for F&B US and Product "A" dated on "current date".
Enter 580.00 units of Product A.
Complete and Book the order.

Go to purchase invoice window and create a new one for F&B US dated on "current date" + 3 days.
Use the option "Create Lines From" process button and select the order just created.
Complete and post the invoice.


Go to the Goods Receipt window and create a new one for F&B US dated on "current date" + 6 days.
Use the option "Create Lines From" process button and select the order just created.
Receipt 80 units.

Complete and post the receipt once costing background process has been executed, therefore receipt transaction cost has been already calculated.

Go to product window, search by product "A" and realize that the cost of the transaction (80 units * 25 = 2000) and the cost of the product (25) are calculated.

Go to the purchase invoice window and update the actual price to 20.
For doing that you need to unpost the invoice, reactivate it, change the price to 20 and complete and post once again the invoice. Keep the same invoice accounting date.

Make sure that the purchase price correction has been executed.

Go to product window and realize that the cost of the transaction has been adjusted. There is a cost adjustment line for an amount of -400.

That is correct.

Go now to the Goods Receipt window and create a new one for F&B US dated on "current date" + 6 days.
Use the option "Create Lines From" process button and select the order just created.
Receipt 500 units.

Complete and post the receipt once costing background process has been executed, therefore receipt transaction cost has been already calculated.

Go to product window, costing tab. Realize that the cost of the product has not been recalculated to 20 but to 24.3103345 which is not correct.

Besides that the cost of the second receipt transaction has not been recalculated. No cost adjustment has been created.


On the other hand, if second good receipt is created from the invoice (not from the order) both product cost and transaction cost are correctly calculated as the corresponding cost adjustment is then created.

Price correction cost adjustment should have been created regardless second goods receipt is not created from the invoice but from the order, because finally the invoice related has a price correction.

Actual product cost should have been recalculated to 20
Actual transaction cost should have been recalculated to 2500 = (500*25 -500 *20)
No tags attached.
related to design defect 0037275 new nonofrancisco Matched Invoice records for already invoiced order lines are only created the first time except in GR-Create Lines From Invoice 
Issue History
2015-07-27 09:59psanjuanNew Issue
2015-07-27 09:59psanjuanAssigned To => Triage Finance
2015-07-27 09:59psanjuanModules => Core
2015-07-27 09:59psanjuanTriggers an Emergency Pack => No
2015-07-27 10:19psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9086#r9086
2015-07-27 10:36psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9087#r9087
2015-07-27 10:51psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9088#r9088
2015-07-27 10:51psanjuanProposed Solution updated
2015-07-27 10:53psanjuanSummaryNo price correction adjustment is created whenever a receipt is not created from the invoice but the order => No price correction adjustment is created whenever a receipt is not created from the invoice but the order related.
2015-07-27 10:53psanjuanDescription Updatedbug_revision_view_page.php?rev_id=9090#r9090
2015-07-27 10:53psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9091#r9091
2015-07-27 11:56psanjuanSummaryNo price correction adjustment is created whenever a receipt is not created from the invoice but the order related. => No price correction adjustment is created whenever a receipt is not created from an invoice but from the order related.
2015-07-27 11:56psanjuanDescription Updatedbug_revision_view_page.php?rev_id=9094#r9094
2015-07-27 12:01RenateNieuwkoopIssue Monitored: RenateNieuwkoop
2015-07-27 14:06psanjuanNote Added: 0079081
2015-07-27 14:06psanjuanCategory04. Warehouse management => 03. Procurement management
2015-07-27 14:06psanjuanTypedesign defect => defect
2015-07-27 14:07psanjuanNote Edited: 0079081bug_revision_view_page.php?bugnote_id=0079081#r9099
2017-11-14 13:54ngarciaRelationship addedrelated to 0037275
2017-11-14 13:55ngarciaIssue Monitored: ngarcia
2018-01-19 14:38ngarciaNote Added: 0101799

Notes
(0079081)
psanjuan   
2015-07-27 14:06   
(edited on: 2015-07-27 14:07)
Issue changed to "Defect" and "Procurement Management" Category, because:

- there is only one matched invoice document created for Product "A" that relates 80 units goods receipt with the purchase invoice.

- The creation of the second goods receipt from the order, does not generate a match invoice document that relates goods receipt and invoice, therefore no cost adjustment is created.

Having said that, this is not a cost adjustment related design defect but a defect on the procurement area.

(0101799)
ngarcia   
2018-01-19 14:38   
When a purchase order is already invoiced, the goods receipt should be created from the invoice, that is, using 'Goods Receipt - Create Lines From' process and selecting the invoice, not the order