@@ -898,7 +898,7 @@ frappe.ui.form.on("Sales Invoice", {
|
||||
project: function (frm) {
|
||||
if (frm.doc.project) {
|
||||
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, {
|
||||
project: frm.doc.project,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user