Skip to content

Commit

Permalink
Merge pull request #2644 from resilient-tech/mergify/bp/version-15-ho…
Browse files Browse the repository at this point in the history
…tfix/pr-2643

fix: Validate when GSTIN field is empty (backport #2643)
  • Loading branch information
mergify[bot] authored Sep 30, 2024
2 parents 53e0fcb + 3bdd635 commit a6c73d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,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 a6c73d8

Please sign in to comment.