From f24407e1199a07256628f35268fd221896e1314c Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Mon, 20 Oct 2014 16:04:19 +0530 Subject: [PATCH] Material Issue added to Material Request Type --- erpnext/stock/doctype/material_request/material_request.json | 4 ++-- erpnext/stock/doctype/material_request/material_request.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/stock/doctype/material_request/material_request.json b/erpnext/stock/doctype/material_request/material_request.json index a9ace56d11..4b93d60310 100644 --- a/erpnext/stock/doctype/material_request/material_request.json +++ b/erpnext/stock/doctype/material_request/material_request.json @@ -17,7 +17,7 @@ "fieldtype": "Select", "in_list_view": 1, "label": "Type", - "options": "Purchase\nTransfer", + "options": "Purchase\nTransfer\nMaterial Issue", "permlevel": 0, "reqd": 1 }, @@ -235,7 +235,7 @@ "icon": "icon-ticket", "idx": 1, "is_submittable": 1, - "modified": "2014-09-09 05:35:31.735821", + "modified": "2014-10-20 14:13:11.043631", "modified_by": "Administrator", "module": "Stock", "name": "Material Request", diff --git a/erpnext/stock/doctype/material_request/material_request.py b/erpnext/stock/doctype/material_request/material_request.py index f78c0a7bbf..3217513b8b 100644 --- a/erpnext/stock/doctype/material_request/material_request.py +++ b/erpnext/stock/doctype/material_request/material_request.py @@ -73,7 +73,7 @@ class MaterialRequest(BuyingController): from erpnext.utilities import validate_status validate_status(self.status, ["Draft", "Submitted", "Stopped", "Cancelled"]) - self.validate_value("material_request_type", "in", ["Purchase", "Transfer"]) + self.validate_value("material_request_type", "in", ["Purchase", "Transfer", "Material Issue"]) pc_obj = frappe.get_doc('Purchase Common') pc_obj.validate_for_items(self) @@ -112,7 +112,7 @@ class MaterialRequest(BuyingController): frappe.db.set(self,'status','Cancelled') def update_completed_qty(self, mr_items=None): - if self.material_request_type != "Transfer": + if self.material_request_type == "Purchase": return item_doclist = self.get("indent_details")