From e2ea11c43721f752c6d46f8e0bc48f2318f7c72b Mon Sep 17 00:00:00 2001 From: Himanshu Date: Wed, 25 Dec 2019 15:15:35 +0530 Subject: [PATCH] fix: remove quote (#20076) --- erpnext/stock/doctype/batch/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/batch/batch.py b/erpnext/stock/doctype/batch/batch.py index 114925469b..0524eee2d5 100644 --- a/erpnext/stock/doctype/batch/batch.py +++ b/erpnext/stock/doctype/batch/batch.py @@ -270,5 +270,5 @@ def get_batches(item_code, warehouse, qty=1, throw=False): where `tabStock Ledger Entry`.item_code = %s and `tabStock Ledger Entry`.warehouse = %s and (`tabBatch`.expiry_date >= CURDATE() or `tabBatch`.expiry_date IS NULL) group by batch_id - order by `tabBatch`.expiry_date ASC, `tabBatch`.creation ASC' + order by `tabBatch`.expiry_date ASC, `tabBatch`.creation ASC """, (item_code, warehouse), as_dict=True) \ No newline at end of file