From 79e6550321fd5289f271253ed8569295bcdf96f8 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 12 Mar 2025 16:27:33 +0530 Subject: [PATCH] fix: show remaining qty on 'Complete Job' button instead of full qty --- erpnext/manufacturing/doctype/job_card/job_card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/job_card/job_card.js b/erpnext/manufacturing/doctype/job_card/job_card.js index ad514efa55f..690d7945beb 100644 --- a/erpnext/manufacturing/doctype/job_card/job_card.js +++ b/erpnext/manufacturing/doctype/job_card/job_card.js @@ -312,7 +312,7 @@ frappe.ui.form.on("Job Card", { fieldtype: "Float", label: __("Completed Quantity"), fieldname: "qty", - default: frm.doc.for_quantity, + default: frm.doc.for_quantity - frm.doc.total_completed_qty, }, (data) => { frm.events.complete_job(frm, "Complete", data.qty);