Skip to content

Commit

Permalink
fix: add validation for purchase invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Nov 25, 2024
1 parent 2f1e6ba commit 7fe6f4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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 @@ -46,6 +46,9 @@ def validate(doc, method=None):
if validate_transaction(doc) is False:
return

if doc.is_reverse_charge and not doc.supplier_gstin:
validate_invoice_number(doc)

validate_hsn_codes(doc)
set_ineligibility_reason(doc)
update_itc_totals(doc)
Expand Down

0 comments on commit 7fe6f4e

Please sign in to comment.