fix(accounts): Fix issue with fetching loyalty point entries (#27892)
This commit is contained in:
parent
e1967870a9
commit
401e22fb8d
@ -16,7 +16,7 @@ class LoyaltyPointEntry(Document):
|
||||
|
||||
def get_loyalty_point_entries(customer, loyalty_program, company, expiry_date=None):
|
||||
if not expiry_date:
|
||||
date = today()
|
||||
expiry_date = today()
|
||||
|
||||
return frappe.db.sql('''
|
||||
select name, loyalty_points, expiry_date, loyalty_program_tier, invoice_type, invoice
|
||||
|
Loading…
x
Reference in New Issue
Block a user