fix: do not validate stock during inward (backport #44417) (#44427)

fix: do not validate stock during inward (#44417)

(cherry picked from commit d37d7b9811)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-11-29 15:49:18 +05:30
committed by GitHub
parent 821f39203c
commit e607795bae

View File

@@ -972,6 +972,9 @@ class SerialandBatchBundle(Document):
):
return
if self.voucher_type in ["Sales Invoice", "Delivery Note"] and self.type_of_transaction == "Inward":
return
if not self.has_batch_no:
return