repost projected qty

This commit is contained in:
Nabin Hait 2012-12-05 15:58:57 +05:30
parent ec83e0abee
commit 598dd99144
2 changed files with 9 additions and 0 deletions

View 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)""")

View File

@ -713,4 +713,8 @@ patch_list = [
'patch_module': 'patches.december_2012',
'patch_file': 'repost_ordered_qty',
},
{
'patch_module': 'patches.december_2012',
'patch_file': 'repost_projected_qty',
},
]