public function getTaxPercent($obTaxList)
    {
        if (empty($obTaxList) || $obTaxList->isEmpty()) {
            return 0;
        }

        //Calculate tax percent
        $fTaxPercent = 0;
        foreach ($obTaxList as $obTaxItem) {
            $fTaxPercent += $obTaxItem->percent;
        }

        $fTaxPercent = PriceHelper::round($fTaxPercent);

        return $fTaxPercent;
    }
public function getTaxPercent($obTaxList)
    {
        if (empty($obTaxList) || $obTaxList->isEmpty()) {
            return 0;
        }

        //Calculate tax percent
        $fTaxPercent = 0;
        foreach ($obTaxList as $obTaxItem) {
            $fTaxPercent += $obTaxItem->percent;
        }

        $fTaxPercent = PriceHelper::round($fTaxPercent);

        return $fTaxPercent;
    }
public function getTaxPercent ( $ obTaxList ) { if ( empty ( $ obTaxList ) || $ obTaxList -> isEmpty ( ) ) { return 0 ; } //Calculate tax percent $ fTaxPercent = 0 ; foreach ( $ obTaxList as $ obTaxItem ) { $ fTaxPercent += $ obTaxItem -> percent ; } $ fTaxPercent = PriceHelper :: round ( $ fTaxPercent ) ; return $ fTaxPercent ; }
Get tax percent
@param \Lovata\Shopaholic\Classes\Collection\TaxCollection|\Lovata\Shopaholic\Classes\Item\TaxItem[] $obTaxList
@return float
Get tax percent