mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
fix: not able to do overproduction
This commit is contained in:
@@ -636,7 +636,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]));
|
||||
|
||||
Reference in New Issue
Block a user