mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
(cherry picked from commit 4126455975)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -214,6 +214,7 @@ frappe.ui.form.on('Material Request', {
|
|||||||
material_request_type: frm.doc.material_request_type,
|
material_request_type: frm.doc.material_request_type,
|
||||||
plc_conversion_rate: 1,
|
plc_conversion_rate: 1,
|
||||||
rate: item.rate,
|
rate: item.rate,
|
||||||
|
uom: item.uom,
|
||||||
conversion_factor: item.conversion_factor
|
conversion_factor: item.conversion_factor
|
||||||
},
|
},
|
||||||
overwrite_warehouse: overwrite_warehouse
|
overwrite_warehouse: overwrite_warehouse
|
||||||
@@ -392,6 +393,7 @@ frappe.ui.form.on("Material Request Item", {
|
|||||||
item_code: function(frm, doctype, name) {
|
item_code: function(frm, doctype, name) {
|
||||||
const item = locals[doctype][name];
|
const item = locals[doctype][name];
|
||||||
item.rate = 0;
|
item.rate = 0;
|
||||||
|
item.uom = '';
|
||||||
set_schedule_date(frm);
|
set_schedule_date(frm);
|
||||||
frm.events.get_item_data(frm, item, true);
|
frm.events.get_item_data(frm, item, true);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user