Common/Calculator/AmountCalculator.php
protected function getRealGrossBase(Model\SaleInterface $sale): float
    {
        // Store previous cache mode
        $cache = $this->cache;

        // Disable cache
        $this->cache = false;

        // Calculate real gross base
        $base = $this->calculateSaleItems($sale)->getBase();

        // Restore cache mode
        $this->cache = $cache;

        return $base;
    }
protected function getRealGrossBase(Model\SaleInterface $sale): float
    {
        // Store previous cache mode
        $cache = $this->cache;

        // Disable cache
        $this->cache = false;

        // Calculate real gross base
        $base = $this->calculateSaleItems($sale)->getBase();

        // Restore cache mode
        $this->cache = $cache;

        return $base;
    }
Calculates the real sale gross base amount.

@param Model\SaleInterface $sale

@return float

@throws Exception\LogicException