Merge pull request #34199 from rohitwaghchaure/fixed-converison-factor-issue
fix: conversion factor not set
This commit is contained in:
commit
04f00fd141
@ -33,6 +33,9 @@ frappe.ui.form.on("Item", {
|
|||||||
'Material Request': () => {
|
'Material Request': () => {
|
||||||
open_form(frm, "Material Request", "Material Request Item", "items");
|
open_form(frm, "Material Request", "Material Request Item", "items");
|
||||||
},
|
},
|
||||||
|
'Stock Entry': () => {
|
||||||
|
open_form(frm, "Stock Entry", "Stock Entry Detail", "items");
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -893,6 +896,9 @@ function open_form(frm, doctype, child_doctype, parentfield) {
|
|||||||
new_child_doc.item_name = frm.doc.item_name;
|
new_child_doc.item_name = frm.doc.item_name;
|
||||||
new_child_doc.uom = frm.doc.stock_uom;
|
new_child_doc.uom = frm.doc.stock_uom;
|
||||||
new_child_doc.description = frm.doc.description;
|
new_child_doc.description = frm.doc.description;
|
||||||
|
if (!new_child_doc.qty) {
|
||||||
|
new_child_doc.qty = 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
frappe.run_serially([
|
frappe.run_serially([
|
||||||
() => frappe.ui.form.make_quick_entry(doctype, null, null, new_doc),
|
() => frappe.ui.form.make_quick_entry(doctype, null, null, new_doc),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user