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: discount rounding half up with half cents #906

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

cbarton
Copy link
Member

@cbarton cbarton commented Nov 4, 2024

Follow tax rounding rules with discounts and round the half cent up to the nearest cent: 39.495 => 39.50, not 39.49.

Follow tax rounding rules with discounts and round the half cent up to
the nearest cent: `39.495 => 39.50`, not `39.49`.
@coveralls
Copy link

Coverage Status

coverage: 91.041%. remained the same
when pulling ac86950 on discount-rounding
into 6b9d477 on master.

@chrissrogers chrissrogers merged commit da963b7 into master Nov 4, 2024
39 of 42 checks passed
@chrissrogers chrissrogers deleted the discount-rounding branch November 4, 2024 22:23
recurly-integrations pushed a commit that referenced this pull request Nov 5, 2024
[Full Changelog](v4.32.1...v4.32.2)

**Merged Pull Requests**

- fix: discount rounding half up with half cents [#906](#906) ([cbarton](https://github.com/cbarton))
- add currency to proactive preflights flow [#905](#905) ([gilv93](https://github.com/gilv93))

##### Minified MD5 Checksum
```
ab7f00b446418712f79f0f8ddb8aceb1 ./build/recurly.min.js
```
##### [SRI Hash](https://www.srihash.org/)
```
+/5uPqfBidcQzzxP08S2Wn3hA0wP4O8m20oW8sdmWLR8uRPysKuqpGtSqX6a8iss
```
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.

3 participants