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(anrok): return zero-tax breakdown if client facing taxes sum is 0 #2797

Merged
merged 7 commits into from
Nov 8, 2024

Conversation

annvelents
Copy link
Contributor

@annvelents annvelents commented Nov 8, 2024

Context

If taxes are payable by seller, line_items.tax_amount_cents will be 0, but tax_breakdown might be not 0 (these taxes the seller will pay), so we don't need to create applied taxes if in taxes returned from the tax provider, the tax_amount_cents of the line_item is 0

Description

updated Invoice::ApplyProviderTaxes and Fee::ApplyProviderTaxes to create zero-taxes if fee.tax_amount_cents is 0, but tax_breakdown contains some taxes;

@annvelents annvelents changed the title Fix(anrok): do not return tax breakdown if client facing taxes sum is 0 Fix(anrok): return 0-tax breakdown if client facing taxes sum is 0 Nov 8, 2024
@annvelents annvelents changed the title Fix(anrok): return 0-tax breakdown if client facing taxes sum is 0 Fix(anrok): return zero-tax breakdown if client facing taxes sum is 0 Nov 8, 2024
@annvelents annvelents merged commit c308ead into main Nov 8, 2024
6 checks passed
@annvelents annvelents deleted the fix-anrok-not-collecting-taxes branch November 8, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants