update requested quantity in bin for both Purchase as well as Transfer type material request

This commit is contained in:
Anand Doshi
2013-02-21 16:55:14 +05:30
parent f210f1f359
commit 1678f6d4ae
6 changed files with 95 additions and 44 deletions

View File

@@ -117,8 +117,7 @@ data_map = {
"(ifnull(qty, 0) - ifnull(ordered_qty, 0)) as qty"],
"from": "`tabMaterial Request Item` item, `tabMaterial Request` main",
"conditions": ["item.parent = main.name", "main.docstatus=1", "main.status != 'Stopped'",
"material_request_type = 'Purchase'", "ifnull(warehouse, '')!=''",
"ifnull(qty, 0) > ifnull(ordered_qty, 0)"],
"ifnull(warehouse, '')!=''", "ifnull(qty, 0) > ifnull(ordered_qty, 0)"],
"links": {
"item_code": ["Item", "name"],
"warehouse": ["Warehouse", "name"]