mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
fix: Ambigous column in picklist query
(cherry picked from commit 517fbf1d1f)
This commit is contained in:
committed by
mergify-bot
parent
07b8dd0300
commit
b9ccbd50b4
@@ -273,9 +273,9 @@ def get_available_item_locations_for_batched_item(item_code, from_warehouses, re
|
|||||||
and IFNULL(batch.`expiry_date`, '2200-01-01') > %(today)s
|
and IFNULL(batch.`expiry_date`, '2200-01-01') > %(today)s
|
||||||
{warehouse_condition}
|
{warehouse_condition}
|
||||||
GROUP BY
|
GROUP BY
|
||||||
`warehouse`,
|
sle.`warehouse`,
|
||||||
`batch_no`,
|
sle.`batch_no`,
|
||||||
`item_code`
|
sle.`item_code`
|
||||||
HAVING `qty` > 0
|
HAVING `qty` > 0
|
||||||
ORDER BY IFNULL(batch.`expiry_date`, '2200-01-01'), batch.`creation`
|
ORDER BY IFNULL(batch.`expiry_date`, '2200-01-01'), batch.`creation`
|
||||||
""".format(warehouse_condition=warehouse_condition), { #nosec
|
""".format(warehouse_condition=warehouse_condition), { #nosec
|
||||||
|
|||||||
Reference in New Issue
Block a user