feat: implement document verification and seller PAN/GST API views
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 30s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 30s
This commit is contained in:
parent
722f15a89e
commit
51e74e2043
1 changed files with 2 additions and 4 deletions
|
|
@ -334,13 +334,11 @@ class SellerPanGstVerifyView(APIView):
|
|||
elif not pan_name_matched:
|
||||
overall_success = False
|
||||
overall_status = "NAME_MISMATCH"
|
||||
pan_reason = match_result.get('reason', '')
|
||||
error_msg = f"PAN Name Mismatch: The entered seller name '{seller_name}' does not match government PAN record '{verified_pan_name}'. ({pan_reason})"
|
||||
error_msg = f"PAN Name Mismatch: The entered seller name '{seller_name}' does not match"
|
||||
elif target_gstin and not gst_name_matched:
|
||||
overall_success = False
|
||||
overall_status = "GST_NAME_MISMATCH"
|
||||
gst_reason = gst_name_match.get('reason', '')
|
||||
error_msg = f"GST Name Mismatch: The entered seller name '{seller_name}' does not match government GST legal name '{verified_gst_name}'. ({gst_reason})"
|
||||
error_msg = f"GST Name Mismatch: The entered seller name '{seller_name}' does not match"
|
||||
else:
|
||||
overall_success = pan_result.is_success and pan_name_matched
|
||||
overall_status = "SUCCESS" if overall_success else "FAILED"
|
||||
|
|
|
|||
Loading…
Reference in a new issue