mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-31 19:02:21 +02: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",
|
fieldtype: "Float",
|
||||||
label: __("Completed Quantity"),
|
label: __("Completed Quantity"),
|
||||||
fieldname: "qty",
|
fieldname: "qty",
|
||||||
default: frm.doc.for_quantity,
|
default: frm.doc.for_quantity - frm.doc.total_completed_qty,
|
||||||
},
|
},
|
||||||
(data) => {
|
(data) => {
|
||||||
frm.events.complete_job(frm, "Complete", data.qty);
|
frm.events.complete_job(frm, "Complete", data.qty);
|
||||||
|
|||||||
Reference in New Issue
Block a user