mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix(sales order): set project at item level from parent
(cherry picked from commit 9e51701e2a)
This commit is contained in:
committed by
Mergify
parent
654a55260d
commit
a09b73e65d
@@ -488,7 +488,16 @@ erpnext.sales_common = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project() {
|
project(doc, cdt, cdn) {
|
||||||
|
var item = frappe.get_doc(cdt, cdn);
|
||||||
|
if (item.project) {
|
||||||
|
$.each(this.frm.doc["items"] || [], function (i, other_item) {
|
||||||
|
if (!other_item.project) {
|
||||||
|
other_item.project = item.project;
|
||||||
|
refresh_field("project", other_item.name, other_item.parentfield);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
let me = this;
|
let me = this;
|
||||||
if (["Delivery Note", "Sales Invoice", "Sales Order"].includes(this.frm.doc.doctype)) {
|
if (["Delivery Note", "Sales Invoice", "Sales Order"].includes(this.frm.doc.doctype)) {
|
||||||
if (this.frm.doc.project) {
|
if (this.frm.doc.project) {
|
||||||
|
|||||||
Reference in New Issue
Block a user