mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
@@ -898,7 +898,7 @@ frappe.ui.form.on("Sales Invoice", {
|
|||||||
project: function (frm) {
|
project: function (frm) {
|
||||||
if (frm.doc.project) {
|
if (frm.doc.project) {
|
||||||
frappe.db.get_value("Projects Settings", {}, "fetch_timesheet_in_sales_invoice", (r) => {
|
frappe.db.get_value("Projects Settings", {}, "fetch_timesheet_in_sales_invoice", (r) => {
|
||||||
if (r.fetch_timesheet_in_sales_invoice) {
|
if (cint(r.fetch_timesheet_in_sales_invoice)) {
|
||||||
frm.events.add_timesheet_data(frm, {
|
frm.events.add_timesheet_data(frm, {
|
||||||
project: frm.doc.project,
|
project: frm.doc.project,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user