introduced a bug when I added number_format

fixed
This commit is contained in:
Jeremy Quinton 2018-07-10 17:03:16 +02:00
parent a588b634b6
commit 6dd7edec97
1 changed files with 2 additions and 2 deletions

View File

@ -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);