Returns max delivery amount.

@return integer
338613
public function getMaxPayPalDeliveryAmount()
    {
        $maxDeliveryAmount = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('dMaxPayPalDeliveryAmount');
        if (!$maxDeliveryAmount) {
            $maxDeliveryAmount = $this->maxDeliveryAmount;
        }

        return $maxDeliveryAmount;
    }
1006515
public function getPaymorrowTotalVatAmount()
    {
        /** @var OxpsPaymorrowOxBasket|oxBasket $this */

        // Products VAT
        $dTotalVat = (double) array_sum( (array) $this->getProductVats( false ) );

        // Get cost and add costs VATs
        $aCosts = (array) $this->getCosts();

        foreach ( $aCosts as $oPrice ) {
            $dTotalVat += (double) $this->_getVatForValidPrice( $oPrice );
        }

        // Add surcharge VAT amount in case it is not yet included in basket
        $dTotalVat += (double) $this->_getVatForValidPrice( $this->_getPaymentMethodSurcharge() );

        return $dTotalVat;
    }
1226810
public function getMaxFileSize(): int
    {
        if ($this->maxFileSize === null) {
            $value = ini_get("upload_max_filesize");
            $units = "BKMGT";
            $unit = preg_replace("/[^$units]/i", "", $value);
            $value = floatval($value);
            if ($unit) {
                $value *= pow(1024, stripos($units, $unit[0]));
            }
            $this->maxFileSize = (int) $value;
        }
        return $this->maxFileSize;
    }
164814
protected function getMax()
	{
		if ( ! $this->locked) {
			//\Log::info('Should lock before changes');
		}

		$dql = "SELECT MAX(e.right) FROM {$this->className} e";
		$dql .= $this->getAdditionalCondition('WHERE');
		$query = $this->entityManager
				->createQuery($dql);
		$max = (int) $query->getSingleScalarResult();

		// Maybe array helper stores even bigger value.
		// In reality it won't happen because items are flushed on DQL run.
		$maxArrayHelper = $this->arrayHelper->getCurrentMax();
		$max = max($max, $maxArrayHelper);

		return $max;
	}
506060
public function getMaxHost()
    {
        if ($this->network_size === 32 || $this->network_size === 31) {
            return $this->ip_address;
        }
        return $this->maxHostCalculation(self::FORMAT_QUADS, '.');
    }
659452
public function getLastPage()
    {
        return (int) \max(self::MIN_PAGE, \ceil($this->getTotal() / $this->getLimit()));
    }
617335
public function getAmount()
    {
        $amount = $this->getRequest()->getRequestParameter('refund_amount');

        return $amount ? $amount : $this->getPaymentBeingRefunded()->getRemainingRefundAmount();
    }
1015961
protected function getPostMaxSize()
    {
        $postMaxSize = ini_get('post_max_size');

        switch (substr($postMaxSize, -1)) {
            case 'M':
            case 'm':
                return (int) $postMaxSize * 1048576;
            case 'K':
            case 'k':
                return (int) $postMaxSize * 1024;
            case 'G':
            case 'g':
                return (int) $postMaxSize * 1073741824;
        }

        return (int) $postMaxSize;
    }
541208
protected function getMax()
    {
        $params = array_filter(func_get_args() ?: [], function ($arg) {
            return !is_null($arg) && $arg !== "";
        });

        return count($params) > 0 ? max($params) : null;
    }
279793
public function getDelivery() {
        if (!isset($this->delivery)) {
            $this->delivery = $this->getData(OntologyDeliveryExecution::PROPERTY_DELIVERY);
        }
        return $this->delivery;
    }
841071
public function get()
    {
        try {
            if ($this->getRequestMethod() !== \Request::HTTP_GET) {
                throw new \common_exception_NotImplemented('Only get method is accepted to getting deliveries');
            }

            $limit = 0;
            if ($this->hasRequestParameter('limit')) {
                $limit = $this->getRequestParameter('limit');
                if (!is_numeric($limit) || (int)$limit != $limit || $limit < 0) {
                    throw new \common_exception_ValidationFailed('limit', '\'Limit\' should be a positive integer');
                }
            }

            $offset = 0;
            if ($this->hasRequestParameter('offset')) {
                $offset = $this->getRequestParameter('offset');
                if (!is_numeric($offset) || (int)$offset != $offset || $offset < 0) {
                    throw new \common_exception_ValidationFailed('offset', '\'Offset\' should be a positive integer');
                }
            }

            $service = DeliveryAssemblyService::singleton();

            /** @var \core_kernel_classes_Resource[] $deliveries */
            $deliveries = $service->getAllAssemblies();
            $overallCount = count($deliveries);
            if ($offset || $limit) {
                if ($overallCount <= $offset) {
                    throw new \common_exception_ValidationFailed('offset', '\'Offset\' is too large');
                }
                $deliveries = array_slice($deliveries, $offset, $limit);
            }

            $mappedDeliveries = [];
            foreach ($deliveries as $delivery) {
                $mappedDeliveries[] = [
                    'uri' => $delivery->getUri(),
                    'label' => $delivery->getLabel(),
                ];
            }

            $response = [
                'items' => $mappedDeliveries,
                'overallCount' => $overallCount,
            ];
            $this->returnSuccess($response);
        } catch (\Exception $e) {
            $this->returnFailure($e);
        }
    }
1002457
public function getFixtureOrder()
    {
        if ($this->def->getService() === null ||
            $this->def->getService()->getFixtureOrder() === null) {
            return 100;
        }

        return $this->def->getService()->getFixtureOrder();
    }
249992
protected function getVatBreakDownMaxAmount()
    {
        $result = array('amount' => -PHP_INT_MAX);
        foreach ($this->vatBreakdown as $breakDown) {
            if ($breakDown['amount'] > $result['amount']) {
                $result = $breakDown;
            }
        }
        return $result;
    }
264088
public function getMaxSortIndex()
    {
        return (new Query())->from($this->refTableName)->where([$this->refFieldName => $this->itemId])->max($this->sortIndexFieldName);
    }
405707
public function delivery()
    {
        $cart = ShoppingCart::get();
        
        // If we are using simple checkout, skip
        if (Checkout::config()->simple_checkout) {
            return $this->redirect($this->Link('finish'));
        }
            
        // If customer is collecting, skip
        if ($cart->isCollection()) {
            return $this->redirect($this->Link('finish'));
        }
            
        // If cart is not deliverable, also skip
        if (!$cart->isDeliverable()) {
            return $this->redirect($this->Link('finish'));
        }
        
        // Check permissions for guest checkout
        if (!Member::currentUserID() && !Checkout::config()->guest_checkout) {
            return $this->redirect($this->Link('index'));
        }
        
        $this->customise(array(
            'Title'     => _t('Checkout.DeliveryDetails', "Delivery Details"),
            'Form'      => $this->DeliveryForm()
        ));

        $this->extend("onBeforeDelivery");

        return $this->renderWith(array(
            'Checkout_delivery',
            'Checkout',
            'Page'
        ));
    }
621003
public function getIPaymentBasket()
    {
        if ($this->_dIPaymentBasket === null) {
            $this->_dIPaymentBasket = $this->getBasket()->getPrice()->getBruttoPrice() * 100;
        }

        return $this->_dIPaymentBasket;
    }
332697
public function getNextNumber()
    {
        if (0 === (int) $this->countTotal()) {
            return 1;
        }

        $qb = $this->getQueryBuilder()
            ->select('MAX(i.invoiceNumber) + 1');

        return $qb->getQuery()
            ->getSingleScalarResult();
    }