mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
5
patches/december_2012/repost_projected_qty.py
Normal file
5
patches/december_2012/repost_projected_qty.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
def execute():
|
||||||
|
import webnotes
|
||||||
|
webnotes.conn.sql("""update `tabBin`
|
||||||
|
set projected_qty = ifnull(actual_qty, 0) + ifnull(indented_qty, 0) +
|
||||||
|
ifnull(ordered_qty, 0) + ifnull(planned_qty, 0) - ifnull(reserved_qty, 0)""")
|
||||||
@@ -713,4 +713,8 @@ patch_list = [
|
|||||||
'patch_module': 'patches.december_2012',
|
'patch_module': 'patches.december_2012',
|
||||||
'patch_file': 'repost_ordered_qty',
|
'patch_file': 'repost_ordered_qty',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.december_2012',
|
||||||
|
'patch_file': 'repost_projected_qty',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
Reference in New Issue
Block a user