mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
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:
@@ -1333,9 +1333,6 @@ class StockEntry(StockController):
|
|||||||
frappe.MappingMismatchError)
|
frappe.MappingMismatchError)
|
||||||
elif self.purpose == "Material Transfer" and self.add_to_transit:
|
elif self.purpose == "Material Transfer" and self.add_to_transit:
|
||||||
continue
|
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):
|
def validate_batch(self):
|
||||||
if self.purpose in ["Material Transfer for Manufacture", "Manufacture", "Repack", "Send to Subcontractor"]:
|
if self.purpose in ["Material Transfer for Manufacture", "Manufacture", "Repack", "Send to Subcontractor"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user