diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js index 33acb41d4b9..c3e6f20b64f 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.js +++ b/erpnext/manufacturing/doctype/production_order/production_order.js @@ -346,6 +346,7 @@ erpnext.production_order = { var max = flt(frm.doc.qty) - flt(frm.doc.produced_qty); } + max = flt(max, precision("qty")); frappe.prompt({fieldtype:"Float", label: __("Qty for {0}", [purpose]), fieldname:"qty", description: __("Max: {0}", [max]), 'default': max }, function(data) {