mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix(accounts): Fix issue with fetching loyalty point entries (#27892)
This commit is contained in:
@@ -16,7 +16,7 @@ class LoyaltyPointEntry(Document):
|
|||||||
|
|
||||||
def get_loyalty_point_entries(customer, loyalty_program, company, expiry_date=None):
|
def get_loyalty_point_entries(customer, loyalty_program, company, expiry_date=None):
|
||||||
if not expiry_date:
|
if not expiry_date:
|
||||||
date = today()
|
expiry_date = today()
|
||||||
|
|
||||||
return frappe.db.sql('''
|
return frappe.db.sql('''
|
||||||
select name, loyalty_points, expiry_date, loyalty_program_tier, invoice_type, invoice
|
select name, loyalty_points, expiry_date, loyalty_program_tier, invoice_type, invoice
|
||||||
|
|||||||
Reference in New Issue
Block a user