Initialized loyalty_point_details
This commit is contained in:
parent
64238ee91f
commit
a1d015cc2f
@ -479,6 +479,8 @@ def get_dashboard_info(party_type, party, loyalty_program=None):
|
||||
fields=["company", "sum(grand_total) as grand_total", "sum(base_grand_total) as base_grand_total"]
|
||||
)
|
||||
|
||||
loyalty_point_details = []
|
||||
|
||||
if party_type == "Customer":
|
||||
loyalty_point_details = frappe._dict(frappe.get_all("Loyalty Point Entry",
|
||||
filters={
|
||||
|
Loading…
x
Reference in New Issue
Block a user