mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 14:11:46 +00:00
fix: company default handling in purchase transactions made from project
(cherry picked from commit 359717115f)
This commit is contained in:
@@ -222,6 +222,9 @@ function open_form(frm, doctype, child_doctype, parentfield) {
|
|||||||
new_child_doc.parenttype = doctype;
|
new_child_doc.parenttype = doctype;
|
||||||
new_doc[parentfield] = [new_child_doc];
|
new_doc[parentfield] = [new_child_doc];
|
||||||
new_doc.project = frm.doc.name;
|
new_doc.project = frm.doc.name;
|
||||||
|
if (frm.doc.company) {
|
||||||
|
new_doc.company = frm.doc.company;
|
||||||
|
}
|
||||||
|
|
||||||
frappe.ui.form.make_quick_entry(doctype, null, null, new_doc);
|
frappe.ui.form.make_quick_entry(doctype, null, null, new_doc);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user