From 0dc5a8e3a2443fc561ac2fdb561a79a5090f7935 Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Wed, 16 Jan 2019 21:15:37 -0500 Subject: [PATCH] Rename sales_tax_amount to sale_tax_amount --- application/libraries/Sale_lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/libraries/Sale_lib.php b/application/libraries/Sale_lib.php index a367e774d..5263c87de 100644 --- a/application/libraries/Sale_lib.php +++ b/application/libraries/Sale_lib.php @@ -1272,9 +1272,9 @@ class Sale_lib if(!$this->CI->config->item('tax_included')) { - foreach($this->CI->tax_lib->get_taxes($this->get_cart()) as $tax) + foreach($this->CI->tax_lib->get_taxes($this->get_cart())[0] as $tax) { - $total = bcadd($total, $tax['sales_tax_amount']); + $total = bcadd($total, $tax['sale_tax_amount']); } }