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

bug(creditNotes) use new BE estimate endpoint to calculate totals #1300

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

ansmonjol
Copy link
Collaborator

Context

We were not receiving enough data on FE side to properly calculate credit notes totals correctly.

Also, it was very hard to calculate and be correct/aligned with BE calculation values.

So we decided to use the BE calculation on the FE side.

Description

On every key down, we send the FE computed values to the BE and it returns the totals based on their calculation logic, including the coupon and taxes pro-rata.

@ansmonjol ansmonjol added the 🐞 bug Something isn't working label Nov 10, 2023
@ansmonjol ansmonjol self-assigned this Nov 10, 2023
@ansmonjol ansmonjol force-pushed the fix-credit-note-taxes-rates branch from 5007084 to 177c14c Compare November 10, 2023 15:41
@ansmonjol ansmonjol force-pushed the fix-credit-note-taxes-rates branch from 177c14c to 2b7229d Compare November 13, 2023 14:54
@ansmonjol ansmonjol changed the title bug(creditNotes) use new BE estimate endpoint to calculate CM totals bug(creditNotes) use new BE estimate endpoint to calculate CN totals Nov 13, 2023
@ansmonjol ansmonjol changed the title bug(creditNotes) use new BE estimate endpoint to calculate CN totals bug(creditNotes) use new BE estimate endpoint to calculate totals Nov 13, 2023
@ansmonjol ansmonjol merged commit f24db05 into main Nov 13, 2023
6 checks passed
@ansmonjol ansmonjol deleted the fix-credit-note-taxes-rates branch November 13, 2023 15:45
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.

2 participants