Test Scenario:
Create Product
Create PO for Product (Step 1) - Qty=10, Price=5
Create MR for PO (Step 2) - Qty=10
Create SO for Product (Step 1) - Qty=10, Price=5
Create SH for SO (Step 4) - Qty=10
Create Cost Adjustment for Product (Step 1) - Costing Method = Average PO, New Cost Price=4.50
Product Costs Cost Element=Average PO Current Cost Price=0.50 (Incorrect) Current Quantity=0 Accumulated Amt=50 Accumulated Qty=10
Solution: Do not adjust the cost when the current quantity is zero
Test Scenario:
Create Product
Create PO for Product (Step 1) - Qty=10, Price=5
Create MR for PO (Step 2) - Qty=10
Create SO for Product (Step 1) - Qty=10, Price=5
Create SH for SO (Step 4) - Qty=10
Create Cost Adjustment for Product (Step 1) - Costing Method = Average PO, New Cost Price=4.50
Product Costs Cost Element=Average PO Current Cost Price=0.50 (Incorrect) Current Quantity=0 Accumulated Amt=50 Accumulated Qty=10
Solution: Do not adjust the cost when the current quantity is zero