src/ShopPaymentTransactionBundle/objects/TPkgShopPaymentTransactionManagerEndPoint.class.php
public function allProductsAreRefundable()
    {
        $bProductsHaveBeenRefunded = $this->hasTransactions(self::TRANSACTION_TYPE_PAYMENT_REVERSAL)
            || $this->hasTransactions(self::TRANSACTION_TYPE_CREDIT);
        if (true === $bProductsHaveBeenRefunded) {
            return false;
        }

        if ($this->order->fieldValueTotal == $this->getMaxAllowedValueFor(self::TRANSACTION_TYPE_CREDIT)) {
            return true;
        }

        return false;
    }
public function allProductsAreRefundable()
    {
        $bProductsHaveBeenRefunded = $this->hasTransactions(self::TRANSACTION_TYPE_PAYMENT_REVERSAL)
            || $this->hasTransactions(self::TRANSACTION_TYPE_CREDIT);
        if (true === $bProductsHaveBeenRefunded) {
            return false;
        }

        if ($this->order->fieldValueTotal == $this->getMaxAllowedValueFor(self::TRANSACTION_TYPE_CREDIT)) {
            return true;
        }

        return false;
    }
public function allProductsAreRefundable ( ) { $ bProductsHaveBeenRefunded = $ this -> hasTransactions ( self :: TRANSACTION_TYPE_PAYMENT_REVERSAL ) || $ this -> hasTransactions ( self :: TRANSACTION_TYPE_CREDIT ) ; if ( true === $ bProductsHaveBeenRefunded ) { return false ; } if ( $ this -> order -> fieldValueTotal == $ this -> getMaxAllowedValueFor ( self :: TRANSACTION_TYPE_CREDIT ) ) { return true ; } return false ; }
returns true if all products are refundable. That is the case if.

a) no product has been refunded
b) ALL products have been paid
returns true if all products are refundable . That is the case if .