Merge pull request #16963 from itusedyetnew/develop

Fix:stock_values_on removed append function on string
This commit is contained in:
Rushabh Mehta 2019-03-25 12:03:53 +05:30 committed by GitHub
commit 5770ad9e8c
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