Hi Markus, Thanks for your answer!
> The field "return cost price" is intended for customer complaint > (Order type="Returned item") to define the cost price for the > inventory transaction (type="Receipt"). I know that the field was not intented for the use that I wanted but I was hoping that it could be used for it (fx. by coding). > To use different cost prices for different sales orders you have to > use the function "marking" (Inventory/Marking) where you create an > alliance between the inventory transaction of type "Receipt" (e. g. > purchase order) and the inventory transaction of type "Issue" (e. g. > sales order). This alliance makes AX to use the specific cost price > of the receipt for the issue, whatever inventory model is set up. This system works great for items on hand. Sometimes we make salesorders for things that we are only ordering when the customer buys them. To have the full idea of the gross margin on the different orders using the same item number will not work then the stock is zero. Eg: Item 1, last costprice 25 I want: Order 1, item 1, costprice 10, sales price 20 = Gross margin 10 Order 2, item 1, costprice 15, sales price 20 = Gross margin 5 I get: Order 1, item 1, costprice 25, sales price 20 = Gross margin -5 Order 2, item 1, costprice 25, sales price 20 = Gross margin -5 The system will take the costprice from the item data and it cannot be different as in my "I want"-example. Even after updating the purchase order with new purchase the system will not take the cost from that purchase and use when calculating. Any ideas? Regards from Denmark, Lars Brink