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

This commit is contained in:
Karuppasamy923
2025-06-24 13:30:06 +05:30
parent b0e201a332
commit b08d66113c
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