public function feeTotals($format = true, $withTax = false)
    {
        $feeTotal = 0;

        foreach ($this->getFees() as $fee) {
            $feeTotal += $fee->amount;

            if ($withTax && $fee->taxable && $fee->tax > 0) {
                $feeTotal += $fee->amount * $fee->tax;
            }
        }

        return $this->formatMoney($feeTotal, null, null, $format);
    }
public function feeTotals($format = true, $withTax = false)
    {
        $feeTotal = 0;

        foreach ($this->getFees() as $fee) {
            $feeTotal += $fee->amount;

            if ($withTax && $fee->taxable && $fee->tax > 0) {
                $feeTotal += $fee->amount * $fee->tax;
            }
        }

        return $this->formatMoney($feeTotal, null, null, $format);
    }
public function feeTotals ( $ format = true , $ withTax = false ) { $ feeTotal = 0 ; foreach ( $ this -> getFees ( ) as $ fee ) { $ feeTotal += $ fee -> amount ; if ( $ withTax && $ fee -> taxable && $ fee -> tax > 0 ) { $ feeTotal += $ fee -> amount * $ fee -> tax ; } } return $ this -> formatMoney ( $ feeTotal , null , null , $ format ) ; }
Gets all the fee totals.

@param bool $format
@param bool $withTax

@return string
Gets all the fee totals .