Last active
August 9, 2022 19:05
-
-
Save mikemix/d9f982a60393f073b433a6fc26658058 to your computer and use it in GitHub Desktop.
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
<?php | |
function getTotalWithTax(Payment $payment, int $taxPercent): float | |
{ | |
// is the order correct at all? | |
return (float) (int) $payment->getTotal() * (1 + $taxPercent / 100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment