Merge pull request #46424 from mihir-kandoi/45440

fix: show remaining qty on 'Complete Job' button instead of full qty
This commit is contained in:
Mihir Kandoi
2025-03-12 00:30:55 +05:30
committed by GitHub

View File

@@ -217,7 +217,7 @@ frappe.ui.form.on("Job Card", {
label: __("Completed Quantity"),
fieldname: "qty",
reqd: 1,
default: frm.doc.for_quantity - frm.doc.manufactured_qty,
default: frm.doc.for_quantity - frm.doc.total_completed_qty,
},
{
fieldtype: "Datetime",