From d1d129edf014682811efda5538f1facb9b00bcab Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Mon, 19 Sep 2016 00:22:37 +0530 Subject: [PATCH] Actual Qty added to Material Request Item --- .../purchase_common/purchase_common.js | 2 +- .../material_request_item.json | 28 ++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.js b/erpnext/buying/doctype/purchase_common/purchase_common.js index 3083acb325..5d74760392 100644 --- a/erpnext/buying/doctype/purchase_common/purchase_common.js +++ b/erpnext/buying/doctype/purchase_common/purchase_common.js @@ -183,7 +183,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({ var item = frappe.get_doc(cdt, cdn); if(item.item_code && item.warehouse) { return this.frm.call({ - method: "erpnext.stock.get_item_details.get_projected_qty", + method: "erpnext.stock.get_item_details.get_bin_details", child: item, args: { item_code: item.item_code, diff --git a/erpnext/stock/doctype/material_request_item/material_request_item.json b/erpnext/stock/doctype/material_request_item/material_request_item.json index 85388a7372..dd087c4bc1 100644 --- a/erpnext/stock/doctype/material_request_item/material_request_item.json +++ b/erpnext/stock/doctype/material_request_item/material_request_item.json @@ -614,6 +614,32 @@ "unique": 0, "width": "70px" }, + { + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "columns": 0, + "fieldname": "actual_qty", + "fieldtype": "Float", + "hidden": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_filter": 0, + "in_list_view": 0, + "label": "Actual Qty", + "length": 0, + "no_copy": 1, + "permlevel": 0, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "read_only": 1, + "report_hide": 1, + "reqd": 0, + "search_index": 0, + "set_only_once": 0, + "unique": 0 + }, { "allow_on_submit": 0, "bold": 0, @@ -679,7 +705,7 @@ "issingle": 0, "istable": 1, "max_attachments": 0, - "modified": "2016-08-26 02:24:43.340269", + "modified": "2016-09-18 14:38:38.517137", "modified_by": "Administrator", "module": "Stock", "name": "Material Request Item",