source/Core/PriceList.php
public function getProportionalVatPercent()
    {
        $dTotalSum = 0;

        foreach ($this->_aList as $oPrice) {
            $dTotalSum += $oPrice->getNettoPrice();
        }

        $dProportionalVat = 0;

        foreach ($this->_aList as $oPrice) {
            if ($dTotalSum > 0) {
                $dProportionalVat += $oPrice->getNettoPrice() / $dTotalSum * $oPrice->getVat();
            }
        }

        return $dProportionalVat;
    }
public function getProportionalVatPercent()
    {
        $dTotalSum = 0;

        foreach ($this->_aList as $oPrice) {
            $dTotalSum += $oPrice->getNettoPrice();
        }

        $dProportionalVat = 0;

        foreach ($this->_aList as $oPrice) {
            if ($dTotalSum > 0) {
                $dProportionalVat += $oPrice->getNettoPrice() / $dTotalSum * $oPrice->getVat();
            }
        }

        return $dProportionalVat;
    }
public function getProportionalVatPercent ( ) { $ dTotalSum = 0 ; foreach ( $ this -> _aList as $ oPrice ) { $ dTotalSum += $ oPrice -> getNettoPrice ( ) ; } $ dProportionalVat = 0 ; foreach ( $ this -> _aList as $ oPrice ) { if ( $ dTotalSum > 0 ) { $ dProportionalVat += $ oPrice -> getNettoPrice ( ) / $ dTotalSum * $ oPrice -> getVat ( ) ; } } return $ dProportionalVat ; }
Iterates through applied VATs and calculates proportional VAT

@return double
Iterates through applied VATs and calculates proportional VAT