repost projected qty
This commit is contained in:
parent
ec83e0abee
commit
598dd99144
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',
|
||||||
|
},
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user