public static function getPriceWithTax($priceWithoutTax, $taxRate) | public static function getPriceWithTax($priceWithoutTax, $taxRate) | ||||
{ | { | ||||
return floatval($priceWithoutTax) * ($taxRate + 1) ; | |||||
return self::numberTwoDecimals(floatval($priceWithoutTax) * ($taxRate + 1)) ; | |||||
} | } | ||||
public static function numberTwoDecimals($number) | public static function numberTwoDecimals($number) |