Gross Profit Showing 100% fo Product Bundle

Now it’s showing 100%, it should calculate child items buying rates…

Replicates on demo.erpnext.com ?

I think I know the cause…if stock is updated via Delivery Note, the buying rate in the Gross Profit report is not updated on the Invoice stage…The report is showing correct figure if stock is updated directly via Sales Invoice. This needs to be fixed!

Tks

I tested it again and Yes… the Gross Profit always shows 100% if COGS/stock is updated via Delivery Note… It only shows correct profit value if COGS/Stock is updated directly via Sales Invoice (with Update Stock option is checked)…

@nabinhait

@jof2jc Thanks for pointing out the issue. Sent a pull request to fix this.