fix: company default handling in purchase transactions made from project

(cherry picked from commit 359717115f)
This commit is contained in:
nishkagosalia
2026-06-23 12:33:31 +05:30
committed by Mergify
parent 17324ec45b
commit 29323cb0b1

View File

@@ -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);
});