Skip to content

Commit

Permalink
fix: validate when gstin field is empty
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c8d7e2)
  • Loading branch information
Ninad1306 authored and mergify[bot] committed Sep 30, 2024
1 parent 53e0fcb commit 3bdd635
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 3bdd635

Please sign in to comment.