Skip to content

Commit

Permalink
Merge pull request #2643 from Ninad1306/validate_for_empty_gstin_field
Browse files Browse the repository at this point in the history
fix: Validate when GSTIN field is empty
  • Loading branch information
vorasmit authored Sep 30, 2024
2 parents 8b93f8a + 5c8d7e2 commit 7a817f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ def validate(self, doc, is_sales_transaction=False):
self.validate_for_charge_type()

def validate_for_same_party_gstin(self):
company_gstin = self.doc.get("company_gstin") or self.doc.bill_from_gstin
party_gstin = self.doc.get("supplier_gstin") or self.doc.bill_to_gstin
company_gstin = self.doc.get("company_gstin") or self.doc.get("bill_from_gstin")
party_gstin = self.doc.get("supplier_gstin") or self.doc.get("bill_to_gstin")

if not party_gstin or company_gstin != party_gstin:
return
Expand Down

0 comments on commit 7a817f8

Please sign in to comment.