mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 12:38:46 +00:00
fix: show remaining qty on 'Complete Job' button instead of full qty
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user