mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
[fix] User not able to complete the production order because of decimal issue (#10868)
This commit is contained in:
committed by
Nabin Hait
parent
9930eb0a7a
commit
12fd8a6047
@@ -346,6 +346,7 @@ erpnext.production_order = {
|
|||||||
var max = flt(frm.doc.qty) - flt(frm.doc.produced_qty);
|
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",
|
frappe.prompt({fieldtype:"Float", label: __("Qty for {0}", [purpose]), fieldname:"qty",
|
||||||
description: __("Max: {0}", [max]), 'default': max },
|
description: __("Max: {0}", [max]), 'default': max },
|
||||||
function(data) {
|
function(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user