fix: update sql function usage syntax

This commit is contained in:
Faris Ansari
2025-06-06 20:05:34 +05:30
parent 300530d35a
commit a397c1dea8
7 changed files with 13 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ def execute():
frappe.db.get_value(
"Stock Ledger Entry",
{"docstatus": 1, "batch_no": batch.batch_id, "is_cancelled": 0},
"sum(actual_qty)",
[{"SUM": "actual_qty"}],
)
or 0.0
)