src/Sylius/Component/Order/Model/OrderItem.php
protected function recalculateTotal(): void
    {
        $this->total = $this->unitsTotal + $this->adjustmentsTotal;

        if ($this->total < 0) {
            $this->total = 0;
        }

        if (null !== $this->order) {
            $this->order->recalculateItemsTotal();
        }
    }
protected function recalculateTotal(): void
    {
        $this->total = $this->unitsTotal + $this->adjustmentsTotal;

        if ($this->total < 0) {
            $this->total = 0;
        }

        if (null !== $this->order) {
            $this->order->recalculateItemsTotal();
        }
    }
protected function recalculateTotal ( ) : void { $ this -> total = $ this -> unitsTotal + $ this -> adjustmentsTotal ; if ( $ this -> total < 0 ) { $ this -> total = 0 ; } if ( null !== $ this -> order ) { $ this -> order -> recalculateItemsTotal ( ) ; } }
Recalculates total after units total or adjustments total change.
Recalculates total after units total or adjustments total change .