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): Taxes not fully applied #2842

Merged
merged 10 commits into from
Nov 22, 2024
Merged

Conversation

annvelents
Copy link
Contributor

Context

We faced a bug when an invoice has more than one fee related to the same item_id, as in anrok payload we're using the item_id to identify line_item.
as result, we might have more than one line_item with the same item_id - one of them with 0 tax, as fee amount_cents is 0, one with more than 0, as fee amount_cents is not 0, and we can't correctly assign the returned line_item with taxes to the right fee.

Description

when sending a payload to Anrok, send fee.id instead of item_id, as fee_id is uniquely identifies the line_item

@annvelents annvelents marked this pull request as ready for review November 22, 2024 09:09
@annvelents annvelents merged commit e142bf1 into main Nov 22, 2024
6 checks passed
@annvelents annvelents deleted the fix-taxes-not-fully-applied branch November 22, 2024 10:28
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