fixes related to Material Request; added button to make Stock Entry of type Material Transfer; calculate ordered_qty and per_ordered in Material Request using observer pattern when Stock Entry against it is submitted or cancelled

This commit is contained in:
Anand Doshi
2013-02-20 18:44:10 +05:30
parent 7ce7d7cad4
commit cf05580f8e
18 changed files with 348 additions and 85 deletions

View File

@@ -116,8 +116,9 @@ data_map = {
"columns": ["item.name as name", "item_code", "warehouse",
"(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'",
"ifnull(warehouse, '')!=''", "ifnull(qty, 0) > ifnull(ordered_qty, 0)"],
"conditions": ["item.parent = main.name", "main.docstatus=1", "main.status != 'Stopped'",
"material_request_type = 'Purchase'", "ifnull(warehouse, '')!=''",
"ifnull(qty, 0) > ifnull(ordered_qty, 0)"],
"links": {
"item_code": ["Item", "name"],
"warehouse": ["Warehouse", "name"]