mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
[minor] fixes in stock balance report, bin uom and sle is_cancelled
This commit is contained in:
0
patches/october_2013/__init__.py
Normal file
0
patches/october_2013/__init__.py
Normal file
13
patches/october_2013/fix_is_cancelled_in_sle.py
Normal file
13
patches/october_2013/fix_is_cancelled_in_sle.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.conn.sql("""update `tabStock Ledger Entry` set is_cancelled = 'No'
|
||||
where ifnull(is_cancelled, '') = ''""")
|
||||
|
||||
webnotes.conn.sql("""update tabBin b set b.stock_uom =
|
||||
(select i.stock_uom from tabItem i where i.name = b.item_code)
|
||||
where b.created_on>='2013-09-01'""")
|
||||
Reference in New Issue
Block a user