fix: stock entry not fetching expired batches (#44863)

This commit is contained in:
rohitwaghchaure
2024-12-23 20:28:06 +05:30
committed by GitHub
parent 7d41805d0e
commit c9b143b509
3 changed files with 39 additions and 10 deletions

View File

@@ -156,7 +156,7 @@ class StockController(AccountsController):
from erpnext.stock.doctype.serial_no.serial_no import get_serial_nos
is_material_issue = False
if self.doctype == "Stock Entry" and self.purpose == "Material Issue":
if self.doctype == "Stock Entry" and self.purpose in ["Material Issue", "Material Transfer"]:
is_material_issue = True
for d in self.get("items"):