mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 23:53:21 +00:00
The Create Job Card dialog on Work Order lists only pending operations, so the row idx sent to make_job_card is the dialog's position, not the Work Order Operation idx. create_job_card stamped that dialog idx into operation_row_id, and get_required_items then matched raw materials of whichever operation held that idx originally. Resolve idx server-side from the Work Order Operation row that get_operation_details already looks up by name. Fixes https://github.com/frappe/erpnext/issues/57985
Plan and manage manufacturing operations, bill of materials for manufacturing.