fix: update validation logic for non-GST items#4278
Open
ljain112 wants to merge 3 commits intoresilient-tech:version-15-hotfixfrom
Open
fix: update validation logic for non-GST items#4278ljain112 wants to merge 3 commits intoresilient-tech:version-15-hotfixfrom
ljain112 wants to merge 3 commits intoresilient-tech:version-15-hotfixfrom
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Confidence Score: 5/5Safe to merge — the fix is narrowly scoped, all edge cases are handled by existing guards in No P0 or P1 issues found. The refactor correctly delegates to existing class guards ( No files require special attention.
|
| Filename | Overview |
|---|---|
| india_compliance/gst_india/overrides/transaction.py | Removes early-return-False for pure non-GST invoices in validate_items and moves tax-account-for-non-GST validation into the GSTAccounts class; logic is correct and well-placed. |
| india_compliance/gst_india/overrides/test_transaction.py | Adds test_non_gst_transaction_with_gst_accounts to verify the new validation path; regex and assertion are correct. |
| india_compliance/gst_india/overrides/test_purchase_invoice.py | Adds test_itc_claim_period_is_set_for_non_gst_invoice to verify non-GST invoices now get itc_claim_period populated correctly. |
| india_compliance/gst_india/doctype/gstr_3b_report/test_gstr_3b_report.py | Removes the filter_by key from the GSTR-3B report test fixture; straightforward cleanup. |
Reviews (2): Last reviewed commit: "fix: handle empty items list in non-GST ..." | Re-trigger Greptile
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: Validation for non-GST items was skipped due to which mandatory fields and status were not set.
Now all the validations are run for non gst items also.