Skip to content

Commit

Permalink
fix sales analutics;
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Sep 9, 2024
1 parent 8de3e34 commit 5d545de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/selling/report/sales_analytics/sales_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import frappe
from frappe import _, scrub
from frappe.utils import add_days, add_to_date, flt, getdate
from frappe.utils import add_days, add_to_date, flt, getdate, cint
from six import iteritems

from erpnext.accounts.utils import get_fiscal_year
Expand Down Expand Up @@ -441,7 +441,7 @@ def get_teams(self):

for d in self.group_entries:
if d.parent:
self.depth_map.setdefault(d.name, self.depth_map.get(d.parent) + 1)
self.depth_map.setdefault(d.name, cint(self.depth_map.get(d.parent)) + 1)
else:
self.depth_map.setdefault(d.name, 0)

Expand Down

0 comments on commit 5d545de

Please sign in to comment.