Skip to content

Commit

Permalink
fix: validate doc name which are required in doc issue summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Sep 27, 2024
1 parent 8b93f8a commit 1100bf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion india_compliance/gst_india/overrides/purchase_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
validate_hsn_codes as _validate_hsn_codes,
)
from india_compliance.gst_india.overrides.transaction import validate_transaction
from india_compliance.gst_india.utils import is_api_enabled
from india_compliance.gst_india.utils import is_api_enabled, validate_invoice_number
from india_compliance.gst_india.utils.e_waybill import get_e_waybill_info


Expand Down Expand Up @@ -47,6 +47,7 @@ def validate(doc, method=None):
return

validate_hsn_codes(doc)
validate_invoice_number(doc)
set_ineligibility_reason(doc)
update_itc_totals(doc)
validate_supplier_invoice_number(doc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
validate_place_of_supply,
)
from india_compliance.gst_india.utils import get_gst_accounts_by_type, is_api_enabled
from india_compliance.gst_india.utils import (
validate_invoice_number as validate_transaction_name,
)
from india_compliance.gst_india.utils.e_waybill import get_e_waybill_info
from india_compliance.gst_india.utils.taxes_controller import (
CustomTaxController,
Expand Down Expand Up @@ -165,6 +168,8 @@ def onload(doc, method=None):


def validate(doc, method=None):
validate_transaction_name(doc)

if ignore_gst_validation_for_subcontracting(doc):
return

Expand Down

0 comments on commit 1100bf4

Please sign in to comment.