Set if payment slip has an account number specified

Resets the account number when disabling.

@param bool $withAccountNumber True if yes, false if no.
@return $this The current instance for a fluent interface.
191744
public function setWithAccountNumber($withAccountNumber = true)
    {
        $this->isBool($withAccountNumber, 'withAccountNumber');
        $this->withAccountNumber = $withAccountNumber;

        if ($withAccountNumber === false) {
            $this->accountNumber = '';
        }

        return $this;
    }
405457
public function setAcct( Account $acct )
	{
		$this->acct = $acct;
		$this->loggedOut = false;

		return $this;
	}
1115028
public function setInstallmentDataBeforeAuthorization($installmentQuantity)
    {
        if ($this->_calculator === null) {
            throw new LocalizedException(new Phrase('You need to set an installment calculator befor prior to' .
            'installments'));
        }

        /* @var Quote $quote */
        $quote = $this->_getQuote();
        $interestRate = $this->_getCalculator()->getInterestRateForInstallment($installmentQuantity);
        $interestAmount = $this->_getCalculator()->getInterestAmount($this->_getPaymentAmount(), $installmentQuantity);
        $baseinterestAmount = $this->_getCalculator()
            ->getInterestAmount($this->_getBasePaymentAmount(), $installmentQuantity);

        $quote
            ->setGabrielqsInstallmentsQty($installmentQuantity)
            ->setGabrielqsInstallmentsInterestRate($interestRate)
            ->setGabrielqsInstallmentsInterestAmount($interestAmount)
            ->setBaseGabrielqsInstallmentsInterestAmount($baseinterestAmount)
            ->setTotalsCollectedFlag(false)
            ->collectTotals();
    }
616898
public function setNotForPayment($notForPayment = true)
    {
        $this->notForPayment = $notForPayment;

        if ($notForPayment === true) {
            if ($this->getWithBank() === true) {
                $this->setBankData('XXXXXX', 'XXXXXX');
            }
            if ($this->getWithAccountNumber() === true) {
                $this->setAccountNumber('XXXXXX');
            }
            if ($this->getWithRecipient() === true) {
                $this->setRecipientData('XXXXXX', 'XXXXXX', 'XXXXXX', 'XXXXXX');
            }
            if ($this->getWithPayer() === true) {
                $this->setPayerData('XXXXXX', 'XXXXXX', 'XXXXXX', 'XXXXXX');
            }
            if ($this->getWithAmount() === true) {
                $this->setAmount('XXXXXXXX.XX');
            }
        }

        return $this;
    }
365538
public function setAccountID($accountID)
    {
        if (trim($accountID) == null)
        {
            throw new InvalidArgumentException("You must supply an account ID.");
        }

        if (!is_numeric($accountID))
        {
            throw new InvalidArgumentException("Account ID must be numeric.");
        }
        $this->accountID = intval($accountID);
    }
946819
private static function setAccountBalance($account_id, $accountSide, $value, $delete = false) {
        $account = Account::findOne($account_id);

        if ($account === null) {
            throw new Exception('account with id ' . $account_id . ' not found');
        }

        if ($accountSide === StaticEb::$accountsideDebitSign) {
            //If delete, then subtract
            If ($delete === false) {
                $account->balance_debit = StaticEb::mathAdd($account->balance_debit, $value);
            } else {
                $account->balance_debit = StaticEb::mathSubtract($account->balance_debit, $value);
            }

        }
984031
public function withCount($withs)
    {
        if ( ! is_array($withs)) {
            $withs = func_get_args();
        }

        $this->withCounts = $withs;

        return $this;
    }
716619
public function getCost($withDiscount = true)
    {
        /** @var Component|CartPositionInterface|self $this */
        $cost = $this->getQuantity() * $this->getPrice();
        $costEvent = new CostCalculationEvent([
            'baseCost' => $cost,
        ]);
        if ($this instanceof Component)
            $this->trigger(CartPositionInterface::EVENT_COST_CALCULATION, $costEvent);
        if ($withDiscount)
            $cost = max(0, $cost - $costEvent->discountValue);
        return $cost;
    }
334853
public function setSuspended($isSuspended = true)
    {
        if ($this->isSuspended != $isSuspended) {
            $this->isSuspended = $isSuspended;
        }
        return $this;
    }
622967
public function setTotalAmount($totalAmount)
	{
		$this->validateInputIsDouble(Request::ATTRIBUTE_TOTAL_AMOUNT, $totalAmount);

		$this->totalAmount = $totalAmount;

		return $this;
	}
738161
public function with($with)
    {
        if (! is_array($with)) {
            $with = func_get_args();
        }

        $this->with = $with;

        return $this;
    }
300215
public function setAmount($value)
    {
        if ($value === null) {
            $this->_amount = null;
        } elseif ($value instanceof AmountInterface) {
            $this->_amount = $value;
        } elseif (is_array($value)) {
            $this->_amount = new MonetaryAmount();
            $this->_amount->fromArray($value);
        } else {
            throw new InvalidPropertyValueTypeException(
                'Invalid B2bSberbankVatData.amount value type', 0, 'B2bSberbankVatData.amount', $value
            );
        }
    }
600777
public function setAccount(ApiAccount $account)
    {
        $account->addTokens($this);

        $this->account = $account;

        return $this;
    }
715933
public function setHouseNumber($houseNumber) {
        if (empty($houseNumber))
            throw new Exception('Housenumber must be set and cannot be empty.');

        $this->houseNumber = trim($houseNumber);

        return $this;
    }
141589
public function removeAccount(ChartAccountsAccount $account) {
        for ($i = count($this->accounts) - 1; 0 <= $i; --$i) {
            if ($account->getNumber() !== $this->accounts[$i]->getNumber()) {
                continue;
            }
            unset($this->accounts[$i]);
        }
        return $this;
    }
611651
protected function setAccount($account)
	{
		if (empty($account))
		{
			throw new \InvalidArgumentException("Label can't contain empty strings");
		}

		$this->label .= str_replace('%40', '@', rawurlencode($account));
	}
363417
public function setIndentationCount($indentationCount)
    {
        if (!is_int($indentationCount)) {
            throw new \InvalidArgumentException('The attribute indentationCount on the class Template has to be integer (' . gettype($indentationCount) . ('object' === gettype($indentationCount) ? ' ' . get_class($indentationCount) : '') . ' given).');
        }

        $this->indentationCount = $indentationCount;

        return $this;
    }