8000 Divide rate with 100 by dalholm · Pull Request #6 · archtechx/money · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Divide rate with 100 #6

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

Merged
merged 1 commit into from
Dec 28, 2021
Merged

Divide rate with 100 #6

merged 1 commit into from
Dec 28, 2021

Conversation

dalholm
Copy link
Contributor
@dalholm dalholm commented Dec 28, 2021

Needed for the calculation to be correct according to the documentation.
$money->addTax(20) and not $money->addTax(0.2)

Of course, the easy way is just to update the documentation. But i would prefer the documented version as in this pull request e.g: $money->addTax(20)

Needed for the calculation to be correct according to the documentation. `$money->addTax(20)` and not `$money->addTax(0.2)`
@stancl
Copy link
Member
stancl commented Dec 28, 2021

Ah yes, the documentation should be the source of truth in these cases. And I agree that this is better, most ecommerce platforms let admins store tax rates as e.g. "21.5" for 21.5%.

@stancl stancl merged commit 4474c2b into archtechx:master Dec 28, 2021
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
0