Profit margin at the point of sale in erpnext

Hello friends,

I’m running a pharmaceuticals company and I want to be able to see the profit margin when I’m making sales, for example if I put the price as 140 at the point of creating a sales order I want to be able to see at a glance the profit or loss am making on that particular item if I sell it at 140. How can I achieve this in erp. It’s urgent kindly help.

Regards.

1 Like

You are taking about gross profit /loss (not net) so:-

  1. I think a small client script will work (or maybe server script not sure)
  2. alternatively you can create custom fields in the child table and link them to the item table
    both can fetch the latest buying price or the average stock valuation
    Try asking ChatGPT but be careful of hallucinations
1 Like