frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
20.12k stars 7.05k forks source link

Error in operation cost calculation in BOM- Manufacturing module #42469

Open Bowrna opened 1 month ago

Bowrna commented 1 month ago

Information about bug

I have created a BOM module with operation cost and in the pricing tab of the BOM, it shows the correct operation cost until BOM is not saved. Once it is saved, the cost includes only the cost of the last item in the operation cost.

This is the sample BOM that I am trying to create

Screenshot 2024-07-25 at 2 44 12 PM

This is the operations cost page with operations included via Routing template

Screenshot 2024-07-25 at 2 45 29 PM

The correct operation cost page when the BOM is not saved

Screenshot 2024-07-25 at 2 45 34 PM

The updated wrong operation cost after saving the BOM. ( which show the cost of only the last operation out of the 3 operations that I have added)

Screenshot 2024-07-25 at 2 46 02 PM

Module

manufacturing

Version

Frappe Version - 15, erp next version - 15, hosted via frappe cloud

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

No response

parasonit commented 1 month ago

Hi,

Can you pls check the Sequence id in Routing,

image