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 tax calculations on next object with single-use coupons #858

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

wsethbrown
Copy link
Contributor

When utilizing single-use coupons, the next object in RJS was miscalculating the tax, falling back on the now objects subtotal for calculations. This resulted in lower taxes for the next object.
image

Gating the logic of the next object's discountAmount behind whether coupon.single_use is being used ensures the next object's discount amount applies properly.

@chrissrogers chrissrogers merged commit fc1253f into master Nov 3, 2023
24 checks passed
@chrissrogers chrissrogers deleted the coop-taxes branch November 3, 2023 19:52
recurly-integrations pushed a commit that referenced this pull request Nov 3, 2023
[Full Changelog](v4.26.0...v4.26.1)

**Merged Pull Requests**

- fix tax calculations on next object with single-use coupons [#858](#858) ([wsethbrown](https://github.com/wsethbrown))

##### Minified MD5 Checksum
```
dbca2bfcf5cbc77760ea23a8920c2246 ./build/recurly.min.js
```
##### [SRI Hash](https://www.srihash.org/)
```
KHsKcMNzRZu9sJmVX8eA0LOD5rjeIDWkzQeq2c+83MJXr/Zw88BGBrcyIryPu/x5
```
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