Recalculates the adjustment amount

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

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

        return $this;
    }
55759
protected function recalculateTotal(): void
    {
        $this->total = $this->itemsTotal + $this->adjustmentsTotal;

        if ($this->total < 0) {
            $this->total = 0;
        }
    }
1342448
public function reset()
    {
        $this->start = null;
        $this->range = null;
        $this->sort = null;
        $this->sortDirection = null;
        $this->search = null;
        $this->searchNotes = null;
        $this->condition = null;
        return $this;
    }
1019107
public function reset()
    {
        $this->table = '';
        $this->columns = [];
        $this->joins = [];
        $this->wheres = [];
        $this->whereIn = [];
        $this->groupBy = false;
        $this->orderBy = false;
        $this->offset = 0;
        $this->limit = 10;
        $this->fields = [];
        return $this;
    }
1216025
public function reset()
    {
        $this->state = self::STATE_WAITING;
        $this->result = null;
        $this->args = [];
        return $this;
    }
998602
public function reset()
    {
        if ($this->source) {
            $this->source()->reset();
        }

        $this->callback = null;
        $this->dynamicTypeField = null;

        return $this;
    }
819604
public function getTaxTotal(): int
    {
        $taxTotal = 0;

        foreach ($this->getAdjustments(AdjustmentInterface::TAX_ADJUSTMENT) as $taxAdjustment) {
            $taxTotal += $taxAdjustment->getAmount();
        }
        foreach ($this->items as $item) {
            $taxTotal += $item->getTaxTotal();
        }

        return $taxTotal;
    }
1030221
public function setAmount($value)
    {
        if ($value === null || $value === '') {
            $this->amount = new MonetaryAmount();
        } elseif (is_object($value) && $value instanceof AmountInterface) {
            $this->amount->setValue($value->getValue());
            $this->amount->setCurrency($value->getCurrency());
        } elseif (is_array($value)) {
            $this->amount->fromArray($value);
        } else {
            $this->amount->setValue($value);
        }

        return $this;
    }
1228755
public function swap()
    {
        $first = $this->first;
        $this->first = $this->second;
        $this->second = $first;
        return $this;
    }
303258
public function reset()
    {
        $this->getRepository()->getSpace()->setEntityState($this, AnDomain::STATE_CLEAN);
        $this->_modified = array();

        return $this;
    }
38125
public function reset()
    {
        $this->controllerResolver->reset();
        $this->repositoryResolver->reset();
        $this->viewResolver->reset();

        return $this;
    }
782101
public function float() {
        $this->check_role = 'float';
        $result = $this->filter($this->value, FILTER_VALIDATE_FLOAT);
        $this->checkResult($result);
        return $this;
    }
126936
public function rewind($count)
    {
        $this->pos -= $count;
        if ($this->pos < 0) {
            $this->pos = 0;
        }

        return $this;
    }
1081844
public function refreshColumnDimensions()
    {
        $currentColumnDimensions = $this->getColumnDimensions();
        $newColumnDimensions = array();

        foreach ($currentColumnDimensions as $objColumnDimension) {
            $newColumnDimensions[$objColumnDimension->getColumnIndex()] = $objColumnDimension;
        }

        $this->columnDimensions = $newColumnDimensions;

        return $this;
    }
366761
protected function updatesAfterUnset()
    {
        $this->updateHelpers();
        foreach ($this->rendererAdapters->all() as $ra) {
            $ra->onRestorePreviousRenderer($this);
        }

        return $this;
    }
311692
public function adapt()
    {
        if (method_exists($this, $this->adaptMethodName) && $this->data) {
            call_user_func([$this, $this->adaptMethodName]);
        }

        return $this;
    }
418151
public function reset()
	{
		$this->_table      = null;
		$this->_join       = array();
		$this->_set        = array();
		$this->_where      = array();
		$this->_order_by   = array();
		$this->_limit      = null;
		$this->_last_join  = null;
		$this->_parameters = array();

		return $this;
	}