mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-11 13:41:47 +00:00
Merge pull request #56350 from nishkagosalia/gh-56067
fix: handling default company in purchase transactions created from project
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