[fix] User not able to complete the production order because of decimal issue (#10868)

This commit is contained in:
rohitwaghchaure 2017-09-21 14:39:10 +05:30 committed by Nabin Hait
parent 9930eb0a7a
commit 12fd8a6047

View File

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