5.2.4 standard. Average cost valuation for all items. User has 2 warehouses: CA and IL. In item maintenance, for item 048505, if you drill down on each warehouse, the average cost is $5.21 for whse IL and $3.50 for whse CA. There are no quantity on hand for CA and 100 on hand for IL.
When a sales order is entered, the default warehouse is IL (the customer doesn't have any addresses in ship to address maintenance). On the lines tab, item 048505 is entered, and the unit cost shows $5.21. This item needs to ship from the CA warehouse. When the user changes the line item warehouse code from IL to CA, the line item cost remains at $5.21. We would expect it to change to $3.50, the correct cost for the item in the IL warehouse.
If the user changes the default warehouse to CA on the SO header tab the deletes the line item and re-enters it, the correct line item cost of $3.50 is displayed. What is going on? A user may ship different line items from different warehouses. You shouldn't have to change the default warehouse to get the correct unit cost to display.