mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-10 13:57:19 +00:00
Merge pull request #23600 from rohitwaghchaure/fixed-overproduction-issue
fix: not able to do overproduction
This commit is contained in:
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user