fix: do not validate qc for scrap item (#44844)

This commit is contained in:
rohitwaghchaure
2024-12-23 15:39:04 +05:30
committed by GitHub
parent 2dfd7472a4
commit a2c2b8b5ad
2 changed files with 77 additions and 0 deletions

View File

@@ -1002,6 +1002,9 @@ class StockController(AccountsController):
elif self.doctype == "Stock Entry" and row.t_warehouse:
qi_required = True # inward stock needs inspection
if row.get("is_scrap_item"):
continue
if qi_required: # validate row only if inspection is required on item level
self.validate_qi_presence(row)
if self.docstatus == 1: