Skip to content

Commit

Permalink
fix: check value as int
Browse files Browse the repository at this point in the history
(cherry picked from commit 43b13b9)
  • Loading branch information
venkat102 authored and mergify[bot] committed Feb 25, 2025
1 parent b1095bb commit 97d3e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/sales_invoice/sales_invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 97d3e86

Please sign in to comment.