Merge pull request #23600 from rohitwaghchaure/fixed-overproduction-issue

fix: not able to do overproduction
This commit is contained in:
rohitwaghchaure
2020-10-12 14:59:41 +05:30
committed by GitHub

View File

@@ -611,7 +611,7 @@ erpnext.work_order = {
description: __('Max: {0}', [max]),
default: max
}, data => {
max += (max * (frm.doc.__onload.overproduction_percentage || 0.0)) / 100;
max += (frm.doc.qty * (frm.doc.__onload.overproduction_percentage || 0.0)) / 100;
if (data.qty > max) {
frappe.msgprint(__('Quantity must not be more than {0}', [max]));