fix: show remaining qty on 'Complete Job' button instead of full qty

This commit is contained in:
Mihir Kandoi
2025-03-10 16:44:16 +05:30
parent 98690c42b0
commit db93302a53

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",