From 6dd7edec97cb7ce4056752c8451f15cb4085059f Mon Sep 17 00:00:00 2001 From: Jeremy Quinton Date: Tue, 10 Jul 2018 17:03:16 +0200 Subject: [PATCH] introduced a bug when I added number_format fixed --- app/Services/Order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Order.php b/app/Services/Order.php index 17859ac7..5e22b434 100644 --- a/app/Services/Order.php +++ b/app/Services/Order.php @@ -74,7 +74,7 @@ class Order public function getOrderTotalWithBookingFee($currencyFormatted = false) { if ($currencyFormatted == false ) { - return number_format($this->grandTotal, 2, '.', ''); + return number_format($this->orderTotalWithBookingFee, 2, '.', ''); } return money($this->orderTotalWithBookingFee, $this->event->currency); @@ -87,7 +87,7 @@ class Order public function getTaxAmount($currencyFormatted = false) { if ($currencyFormatted == false ) { - return number_format($this->grandTotal, 2, '.', ''); + return number_format($this->taxAmount, 2, '.', ''); } return money($this->taxAmount, $this->event->currency);