fix(stock): Allow expired batches to be flushed out of the system (#17477)

This commit is contained in:
Rohan
2019-05-04 22:40:42 +05:30
committed by Nabin Hait
parent c068b6a885
commit 7395716476

View File

@@ -1068,7 +1068,7 @@ class StockEntry(StockController):
frappe.MappingMismatchError)
def validate_batch(self):
if self.purpose in ["Material Transfer for Manufacture", "Manufacture", "Repack", "Subcontract", "Material Issue"]:
if self.purpose in ["Material Transfer for Manufacture", "Manufacture", "Repack", "Subcontract"]:
for item in self.get("items"):
if item.batch_no:
disabled = frappe.db.get_value("Batch", item.batch_no, "disabled")