Merge pull request #33869 from s-aga-r/fix-mr-rate-and-amount
fix: `amount` in `Material Request`
This commit is contained in:
commit
510b265830
@ -366,10 +366,11 @@ frappe.ui.form.on('Material Request', {
|
|||||||
|
|
||||||
frappe.ui.form.on("Material Request Item", {
|
frappe.ui.form.on("Material Request Item", {
|
||||||
qty: function (frm, doctype, name) {
|
qty: function (frm, doctype, name) {
|
||||||
var d = locals[doctype][name];
|
const item = locals[doctype][name];
|
||||||
if (flt(d.qty) < flt(d.min_order_qty)) {
|
if (flt(item.qty) < flt(item.min_order_qty)) {
|
||||||
frappe.msgprint(__("Warning: Material Requested Qty is less than Minimum 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) {
|
from_warehouse: function(frm, doctype, name) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user