Common/EventListener/AbstractSaleListener.php
protected function handleContentChange(SaleInterface $sale)
    {
        // Shipment method and amount
        $changed = $this->saleUpdater->updateShipmentMethodAndAmount($sale);

        // Shipment taxation
        if ($this->isShipmentTaxationUpdateNeeded($sale)) {
            $changed = $this->saleUpdater->updateShipmentTaxation($sale, true);
        }

        // Update totals
        $changed |= $this->saleUpdater->updateTotals($sale);

        // Update state
        $changed |= $this->updateState($sale);

        // Update outstanding date
        $changed |= $this->saleUpdater->updateOutstandingDate($sale);

        return $changed;
    }
protected function handleContentChange(SaleInterface $sale)
    {
        // Shipment method and amount
        $changed = $this->saleUpdater->updateShipmentMethodAndAmount($sale);

        // Shipment taxation
        if ($this->isShipmentTaxationUpdateNeeded($sale)) {
            $changed = $this->saleUpdater->updateShipmentTaxation($sale, true);
        }

        // Update totals
        $changed |= $this->saleUpdater->updateTotals($sale);

        // Update state
        $changed |= $this->updateState($sale);

        // Update outstanding date
        $changed |= $this->saleUpdater->updateOutstandingDate($sale);

        return $changed;
    }
Handles the content change.

@param SaleInterface $sale

@return bool

@throws \Ekyna\Component\Commerce\Exception\CommerceExceptionInterface