Skip to content

Commit

Permalink
fix: do not validate stock during inward (backport #44417) (#44427)
Browse files Browse the repository at this point in the history
fix: do not validate stock during inward (#44417)

(cherry picked from commit d37d7b9)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Nov 29, 2024
1 parent 821f392 commit e607795
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,9 @@ def validate_batch_inventory(self):
):
return

if self.voucher_type in ["Sales Invoice", "Delivery Note"] and self.type_of_transaction == "Inward":
return

if not self.has_batch_no:
return

Expand Down

0 comments on commit e607795

Please sign in to comment.