fix: Dont validate warehouse values between MR to Stock Entry

- Remove validation thta checks if warehouse in Stock Entry is the same as MR that it was pulled from
This commit is contained in:
marination 2021-01-04 18:48:50 +05:30
parent a245f667d0
commit 0c883853b3

View File

@ -1333,9 +1333,6 @@ class StockEntry(StockController):
frappe.MappingMismatchError)
elif self.purpose == "Material Transfer" and self.add_to_transit:
continue
elif mreq_item.warehouse != (item.s_warehouse if self.purpose == "Material Issue" else item.t_warehouse):
frappe.throw(_("Warehouse for row {0} does not match Material Request").format(item.idx),
frappe.MappingMismatchError)
def validate_batch(self):
if self.purpose in ["Material Transfer for Manufacture", "Manufacture", "Repack", "Send to Subcontractor"]: