mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +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'""")
|
||||
@@ -219,4 +219,5 @@ patch_list = [
|
||||
"execute:webnotes.conn.set_value('Accounts Settings', None, 'frozen_accounts_modifier', 'Accounts Manager') # 2013-09-24",
|
||||
"patches.september_2013.p04_unsubmit_serial_nos",
|
||||
"patches.september_2013.p05_fix_customer_in_pos",
|
||||
"patches.october_2013.fix_is_cancelled_in_sle",
|
||||
]
|
||||
Reference in New Issue
Block a user