Skip to content

Commit

Permalink
fix: failing test case fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vishakhdesai committed May 30, 2024
1 parent a87d2cb commit 0fc37d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion india_compliance/gst_india/doctype/gstin/gstin.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def validate_gst_transporter_id(transporter_id):
)

# If GSTIN status is not Active and transporter_id_status is None, use Transporter ID API
if gstin.status and gstin.status != "Active" and not gstin.transporter_id_status:
if gstin and gstin.status != "Active" and not gstin.transporter_id_status:
gstin = create_or_update_gstin_status(

Check warning on line 354 in india_compliance/gst_india/doctype/gstin/gstin.py

View check run for this annotation

Codecov / codecov/patch

india_compliance/gst_india/doctype/gstin/gstin.py#L354

Added line #L354 was not covered by tests
transporter_id,
is_transporter_id=True,
Expand Down

0 comments on commit 0fc37d4

Please sign in to comment.