models/oxpspaymorrowoxbasket.php
protected function _getPaymorrowAdditionalCostsSummary( $iLineItemCount )
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        // Line Item numbering after all basket items were summarized
        $iLineItem = (int) $iLineItemCount;

        // Get cost and add costs VATs
        list( $aCostItems, $iLineItem ) = $this->_getDefaultCostsSummary( $iLineItem );

        // Get payment method surcharge item data in case payment form have just been posted
        $aItemData = (array) $this->_getPaymentMethodSurcharge( $iLineItem );

        if ( !empty( $aItemData ) ) {
            $aCostItems = array_merge( $aCostItems, $aItemData );
            $iLineItem++;
        }

        // Add voucher discount line item
        if ( $this->getVoucherDiscount() and $this->getVoucherDiscount()->getBruttoPrice() != 0 ) {
            $aCostItems = array_merge( $aCostItems, $this->_getPaymorrowVouchersSummary( $iLineItem ) );
        }

        return $aCostItems;
    }
protected function _getPaymorrowAdditionalCostsSummary( $iLineItemCount )
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        // Line Item numbering after all basket items were summarized
        $iLineItem = (int) $iLineItemCount;

        // Get cost and add costs VATs
        list( $aCostItems, $iLineItem ) = $this->_getDefaultCostsSummary( $iLineItem );

        // Get payment method surcharge item data in case payment form have just been posted
        $aItemData = (array) $this->_getPaymentMethodSurcharge( $iLineItem );

        if ( !empty( $aItemData ) ) {
            $aCostItems = array_merge( $aCostItems, $aItemData );
            $iLineItem++;
        }

        // Add voucher discount line item
        if ( $this->getVoucherDiscount() and $this->getVoucherDiscount()->getBruttoPrice() != 0 ) {
            $aCostItems = array_merge( $aCostItems, $this->_getPaymorrowVouchersSummary( $iLineItem ) );
        }

        return $aCostItems;
    }
protected function _getPaymorrowAdditionalCostsSummary ( $ iLineItemCount ) { /** @var OxpsPaymorrowOxBasket|oxBasket $this */ // Line Item numbering after all basket items were summarized $ iLineItem = ( int ) $ iLineItemCount ; // Get cost and add costs VATs list ( $ aCostItems , $ iLineItem ) = $ this -> _getDefaultCostsSummary ( $ iLineItem ) ; // Get payment method surcharge item data in case payment form have just been posted $ aItemData = ( array ) $ this -> _getPaymentMethodSurcharge ( $ iLineItem ) ; if ( ! empty ( $ aItemData ) ) { $ aCostItems = array_merge ( $ aCostItems , $ aItemData ) ; $ iLineItem ++ ; } // Add voucher discount line item if ( $ this -> getVoucherDiscount ( ) and $ this -> getVoucherDiscount ( ) -> getBruttoPrice ( ) != 0 ) { $ aCostItems = array_merge ( $ aCostItems , $ this -> _getPaymorrowVouchersSummary ( $ iLineItem ) ) ; } return $ aCostItems ; }
Checks if there are any additional costs and returns Line Items array as summary.

@param int $iLineItemCount

@return array
Checks if there are any additional costs and returns Line Items array as summary .