-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue where the AmountOff percentage is cast to an int, even t… (
#2004) The admin panel allows you to enter a decimal value when creating an AmountOff Discount with a percentage discount. However, it gets cast to an int in the AmountOff class, which results in the percentage being rounded and the discount amount being slightly off. You could argue that usually percentage discounts are given as whole numbers, but since the admin panel already supports decimal values, I think this should be changed. Fixes #2003 --------- Co-authored-by: tim <tim@direct-effect.nl> Co-authored-by: Author <actions@github.com> Co-authored-by: Alec Ritson <hello@itsalec.co.uk>
- Loading branch information
1 parent
e97122e
commit 0b2d76e
Showing
2 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters