Merge pull request #46484 from frappe/45440

fix: show remaining qty on 'Complete Job' button instead of full qty
This commit is contained in:
rohitwaghchaure
2025-03-12 16:44:57 +05:30
committed by GitHub

View File

@@ -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);