mirror of
https://github.com/frappe/erpnext.git
synced 2026-07-01 06:48:36 +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_doc[parentfield] = [new_child_doc];
|
||||
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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user