Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add default value for missing code 098 in SII CTE Form 29 #586

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

svillegas-cdd
Copy link
Contributor

  • Add code 098 to file used by schema validator
    :func:cte_f29_datos_schema_best_effort_validator, since this code is currently missing in the tipos and glosa sections of the F29 file.

  • Fixed exception message when the keys of campos and glosa are different

Ref: https://app.shortcut.com/cordada/story/3852/
Ref: FD-CL-DATA-230
Fixes: FD-CL-DATA-230

- Add code `098` to file used by schema validator
:func:`cte_f29_datos_schema_best_effort_validator`,
since this code is currently missing in the `tipos`
and `glosa` sections of the F29 file.

- Fixed exception message when the keys of `campos` and `glosa` are different

Ref: https://app.shortcut.com/cordada/story/3852/
Ref: [FD-CL-DATA-230](https://fynpal-com.sentry.io/issues/4907498672/)
@svillegas-cdd svillegas-cdd added the bug Something isn't working label Jan 23, 2024
@svillegas-cdd svillegas-cdd self-assigned this Jan 23, 2024
@svillegas-cdd svillegas-cdd requested a review from a team as a code owner January 23, 2024 20:58
Copy link

This pull request has been linked to Shortcut Story #3852: Errors creating CteForm29.

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (196b8c1) 86.98% compared to head (ca64044) 86.98%.

Files Patch % Lines
src/cl_sii/cte/f29/parse_datos_obj.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #586   +/-   ##
========================================
  Coverage    86.98%   86.98%           
========================================
  Files           34       34           
  Lines         3013     3013           
  Branches       378      378           
========================================
  Hits          2621     2621           
  Misses         250      250           
  Partials       142      142           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@svillegas-cdd
Copy link
Contributor Author

@jtrobles-cdd The error is due to codecov as I edited the error message in src/cl_sii/cte/f29/parse_datos_obj.py:185

@jtrobles-cdd
Copy link
Member

@jtrobles-cdd The error is due to codecov as I edited the error message in src/cl_sii/cte/f29/parse_datos_obj.py:185

I'll force the merge to bypass the GitHub check.

@jtrobles-cdd jtrobles-cdd merged commit fd9ab8a into develop Jan 30, 2024
19 of 20 checks passed
@jtrobles-cdd jtrobles-cdd deleted the fix/sc-3852-missing-code-098 branch January 30, 2024 14:50
@svillegas-cdd svillegas-cdd mentioned this pull request Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants