Skip to content

Commit

Permalink
fix: amount in Material Request
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b781d7)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Jan 31, 2023
1 parent f487eae commit f1dd923
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions erpnext/stock/doctype/material_request/material_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,11 @@ frappe.ui.form.on('Material Request', {

frappe.ui.form.on("Material Request Item", {
qty: function (frm, doctype, name) {
var d = locals[doctype][name];
if (flt(d.qty) < flt(d.min_order_qty)) {
const item = locals[doctype][name];
if (flt(item.qty) < flt(item.min_order_qty)) {
frappe.msgprint(__("Warning: Material Requested Qty is less than Minimum Order Qty"));
}
frm.events.get_item_data(frm, item, false);
},

from_warehouse: function(frm, doctype, name) {
Expand Down

0 comments on commit f1dd923

Please sign in to comment.