Merge pull request #33869 from s-aga-r/fix-mr-rate-and-amount

fix: `amount` in `Material Request`
This commit is contained in:
Sagar Sharma 2023-01-31 14:44:11 +05:30 committed by GitHub
commit 510b265830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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