Material Issue added to Material Request Type

This commit is contained in:
Neil Trini Lasrado 2014-10-20 16:04:19 +05:30
parent ae1dcabcb5
commit f24407e119
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

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