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

[12.0][FIX] negative price_tax for refunds #12

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

victor-champonnois
Copy link
Member

Although the subtotal price is negative for refunds in csv exports, the price_tax is still positive. This PR computes a "signed" price tax based on the type of invoice.

internal task : https://gestion.coopiteasy.be/web#id=12045&model=project.task&view_type=form&menu_id=

@robinkeunen for review

Although the subtotal price is negative for refunds in csv exports, the price_tax is still positive.
This commit adds the computation of a "signed" price_tax based on the type of invoice.
@victor-champonnois victor-champonnois changed the title [12.0][FIX] sign price_tax for refunds [12.0][FIX] negative price_tax for refunds Feb 14, 2024
@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (112bde5) 70.26% compared to head (d8c31bc) 70.05%.

Files Patch % Lines
csv_export_invoice/models/csv_export_invoice.py 33.33% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             12.0      #12      +/-   ##
==========================================
- Coverage   70.26%   70.05%   -0.21%     
==========================================
  Files          24       24              
  Lines         528      531       +3     
  Branches       67       68       +1     
==========================================
+ Hits          371      372       +1     
- Misses        143      144       +1     
- Partials       14       15       +1     

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

Copy link
Member

@robinkeunen robinkeunen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brilliant 👍

@victor-champonnois
Copy link
Member Author

/ocabot merge nobump

@github-grap-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 12.0-ocabot-merge-pr-12-by-victor-champonnois-bump-nobump, awaiting test results.

@github-grap-bot github-grap-bot merged commit 11453c4 into 12.0 Feb 16, 2024
2 checks passed
@github-grap-bot
Copy link
Contributor

Congratulations, your PR was merged at b114b52. Thanks a lot for contributing to coopiteasy. ❤️

@github-grap-bot github-grap-bot deleted the 12.0-fix-tax-unsigned-in-invoice-export branch February 16, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants