fix: Update indexing to populate correct values in trends report chart

(cherry picked from commit b08d66113c)
This commit is contained in:
Karuppasamy923
2025-06-24 13:30:06 +05:30
committed by Mergify
parent 651b9521b9
commit 24f892d582
4 changed files with 33 additions and 13 deletions

View File

@@ -97,8 +97,10 @@ def get_data(filters, conditions):
elif filters.get("group_by") == "Supplier":
sel_col = "t1.supplier"
if filters.get("based_on") in ["Item", "Customer", "Supplier"]:
if filters.get("based_on") in ["Customer", "Supplier"]:
inc = 3
elif filters.get("based_on") in ["Item"]:
inc = 2
else:
inc = 1