-
Calculate sales price by add margin to purchase/cost price of marked purchase order
In a buy-to-order process, some clients utilize the "Create Purchase Order" or "Direct Delivery" function directly from a sales order. In such cases, the sales price should be dynamically calculated based on the actual purchase price from the generated purchase order, combined with a predefined margin. If the purchase price in the PO is modified, the corresponding sales price in the sales order should also be updated accordingly to reflect the change.
