From 2177e71f4707ca1e8916891d838574793df9e107 Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Sat, 12 Aug 2017 21:17:52 -0400 Subject: [PATCH] Fix cash rounding issue --- application/libraries/Sale_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Sale_lib.php b/application/libraries/Sale_lib.php index 276731a3e..4166f9057 100644 --- a/application/libraries/Sale_lib.php +++ b/application/libraries/Sale_lib.php @@ -1155,7 +1155,7 @@ class Sale_lib $cash_rounding_code = $this->CI->config->item('cash_rounding_code'); $rounded_total = $total; - return Rounding_mode::round_number($total, $cash_decimals); + return Rounding_mode::round_number($cash_rounding_code, $total, $cash_decimals); } }