src/ShopPaymentTransactionBundle/objects/TPkgShopPaymentTransactionManagerEndPoint.class.php
public function getBillableProducts($bIncludeUnconfirmedTransactions = true)
    {
        $aProductList = array();
        $oOrderItemList = $this->order->GetFieldShopOrderItemList();
        $oOrderItemList->GoToStart();
        while ($oOrderItem = $oOrderItemList->Next()) {
            $iBilled = $this->getProductAmountWithTransactionType(
                $oOrderItem->id,
                self::TRANSACTION_TYPE_PAYMENT,
                $bIncludeUnconfirmedTransactions
            );
            $iRemaining = round($oOrderItem->fieldOrderAmount - $iBilled);
            if ($iRemaining > 0) {
                $aProductList[$oOrderItem->id] = $iRemaining;
            }
        }
        $oOrderItemList->GoToStart();

        return $aProductList;
    }
public function getBillableProducts($bIncludeUnconfirmedTransactions = true)
    {
        $aProductList = array();
        $oOrderItemList = $this->order->GetFieldShopOrderItemList();
        $oOrderItemList->GoToStart();
        while ($oOrderItem = $oOrderItemList->Next()) {
            $iBilled = $this->getProductAmountWithTransactionType(
                $oOrderItem->id,
                self::TRANSACTION_TYPE_PAYMENT,
                $bIncludeUnconfirmedTransactions
            );
            $iRemaining = round($oOrderItem->fieldOrderAmount - $iBilled);
            if ($iRemaining > 0) {
                $aProductList[$oOrderItem->id] = $iRemaining;
            }
        }
        $oOrderItemList->GoToStart();

        return $aProductList;
    }
public function getBillableProducts ( $ bIncludeUnconfirmedTransactions = true ) { $ aProductList = array ( ) ; $ oOrderItemList = $ this -> order -> GetFieldShopOrderItemList ( ) ; $ oOrderItemList -> GoToStart ( ) ; while ( $ oOrderItem = $ oOrderItemList -> Next ( ) ) { $ iBilled = $ this -> getProductAmountWithTransactionType ( $ oOrderItem -> id , self :: TRANSACTION_TYPE_PAYMENT , $ bIncludeUnconfirmedTransactions ) ; $ iRemaining = round ( $ oOrderItem -> fieldOrderAmount - $ iBilled ) ; if ( $ iRemaining > 0 ) { $ aProductList [ $ oOrderItem -> id ] = $ iRemaining ; } } $ oOrderItemList -> GoToStart ( ) ; return $ aProductList ; }
returns an array with all products that have not been billed via a transaction.

@param $bIncludeUnconfirmedTransactions

@return array [shop_order_item_id] = amount
returns an array with all products that have not been billed via a transaction .