stock_values_on append function on string

This commit is contained in:
itusedyetnew 2019-03-20 11:10:41 +05:30 committed by GitHub
parent f3e5213190
commit 8aafbd22de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ def get_stock_value_on(warehouse=None, posting_date=None, item_code=None):
if item_code:
values.append(item_code)
condition.append(" AND item_code = %s")
condition += " AND item_code = %s"
stock_ledger_entries = frappe.db.sql("""
SELECT item_code, stock_value, name, warehouse