Skip to content

Commit

Permalink
fix: do not validate batch qty for LCV
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Apr 12, 2024
1 parent 140fdd4 commit fbd7c4d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,9 @@ def validate_serial_and_batch_inventory(self):
self.validate_batch_inventory()

def validate_batch_inventory(self):
if self.voucher_type in ["Purchase Invoice", "Purchase Receipt"] and frappe.db.get_value(self.voucher_type, self.voucher_no, "docstatus") == 1:
return

if not self.has_batch_no:
return

Expand Down

0 comments on commit fbd7c4d

Please sign in to comment.