models/oxpspaymorrowoxbasket.php
protected function _getCostSummary( $iLineItem, $sCostName, $oPrice )
    {
        $sPmPrefix = OxpsPaymorrowOxBasketItem::getPaymorrowBasketSummaryLineItemPrefix( $iLineItem );

        list( $sId, $sName, $sType ) = $this->_getCostMetadata( $sCostName );

        if ( empty( $sId ) ) {
            return array();
        }

        $this->filterCostPrice($oPrice, $sCostName);

        return array(
            $sPmPrefix . 'quantity'       => 1,
            $sPmPrefix . 'articleId'      => $sId,
            $sPmPrefix . 'name'           => $sName,
            $sPmPrefix . 'type'           => $sType,
            $sPmPrefix . 'unitPriceGross' => (double) $oPrice->getBruttoPrice(),
            $sPmPrefix . 'grossAmount'    => (double) $oPrice->getBruttoPrice(),
            $sPmPrefix . 'vatAmount'      => (double) $oPrice->getVatValue(),
            $sPmPrefix . 'vatRate'        => (double) $oPrice->getVat(),
        );
    }
protected function _getCostSummary( $iLineItem, $sCostName, $oPrice )
    {
        $sPmPrefix = OxpsPaymorrowOxBasketItem::getPaymorrowBasketSummaryLineItemPrefix( $iLineItem );

        list( $sId, $sName, $sType ) = $this->_getCostMetadata( $sCostName );

        if ( empty( $sId ) ) {
            return array();
        }

        $this->filterCostPrice($oPrice, $sCostName);

        return array(
            $sPmPrefix . 'quantity'       => 1,
            $sPmPrefix . 'articleId'      => $sId,
            $sPmPrefix . 'name'           => $sName,
            $sPmPrefix . 'type'           => $sType,
            $sPmPrefix . 'unitPriceGross' => (double) $oPrice->getBruttoPrice(),
            $sPmPrefix . 'grossAmount'    => (double) $oPrice->getBruttoPrice(),
            $sPmPrefix . 'vatAmount'      => (double) $oPrice->getVatValue(),
            $sPmPrefix . 'vatRate'        => (double) $oPrice->getVat(),
        );
    }
protected function _getCostSummary ( $ iLineItem , $ sCostName , $ oPrice ) { $ sPmPrefix = OxpsPaymorrowOxBasketItem :: getPaymorrowBasketSummaryLineItemPrefix ( $ iLineItem ) ; list ( $ sId , $ sName , $ sType ) = $ this -> _getCostMetadata ( $ sCostName ) ; if ( empty ( $ sId ) ) { return array ( ) ; } $ this -> filterCostPrice ( $ oPrice , $ sCostName ) ; return array ( $ sPmPrefix . 'quantity' => 1 , $ sPmPrefix . 'articleId' => $ sId , $ sPmPrefix . 'name' => $ sName , $ sPmPrefix . 'type' => $ sType , $ sPmPrefix . 'unitPriceGross' => ( double ) $ oPrice -> getBruttoPrice ( ) , $ sPmPrefix . 'grossAmount' => ( double ) $ oPrice -> getBruttoPrice ( ) , $ sPmPrefix . 'vatAmount' => ( double ) $ oPrice -> getVatValue ( ) , $ sPmPrefix . 'vatRate' => ( double ) $ oPrice -> getVat ( ) , ) ; }
Get cost line item summary data as array.

@param integer                              $iLineItem
@param string                               $sCostName
@param oxPrice $oPrice

@return array
Get cost line item summary data as array .