Hi everyone,
I am trying to calculate the value for my custom field “base price” for an item depending on stock UOM, Standard Price as well as two custom fields: Packing unit, base price UOM.
The base price for a 500g box of chocolate which costs 1 € is for example 0,20 € per 100 g. To calculate this I need to use the following formula:
Base price = Standard rate * base_price_UOM / packing_unit
I am unsure how to write the necessary custom script. Can someone help me out here?
Best
David