src/Price/Model/AdjustableTrait.php
public function calculateAdjustmentsTotal()
    {
        $this->adjustmentsTotal = 0;

        foreach ($this->adjustments as $adjustment) {
            if (!$adjustment->isNeutral()) {
                $this->adjustmentsTotal += $adjustment->getAmount();
            }
        }

        return $this;
    }
public function calculateAdjustmentsTotal()
    {
        $this->adjustmentsTotal = 0;

        foreach ($this->adjustments as $adjustment) {
            if (!$adjustment->isNeutral()) {
                $this->adjustmentsTotal += $adjustment->getAmount();
            }
        }

        return $this;
    }
public function calculateAdjustmentsTotal ( ) { $ this -> adjustmentsTotal = 0 ; foreach ( $ this -> adjustments as $ adjustment ) { if ( ! $ adjustment -> isNeutral ( ) ) { $ this -> adjustmentsTotal += $ adjustment -> getAmount ( ) ; } } return $ this ; }
Recalculates the adjustment amount

@return $this
Recalculates the adjustment amount