InvoiceEntity::calculateNextExecutionDate

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. InvoiceEntity
  4. calculateNextExecutionDate
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/recurring/entity/item/invoiceentity.php
  • Класс: Bitrix\Crm\Recurring\Entity\Item\InvoiceEntity
  • Вызов: InvoiceEntity::calculateNextExecutionDate
protected function calculateNextExecutionDate(Date $startDate = null)
{
	$today = new Date();
	if ($startDate instanceof Date && $startDate->getTimestamp() > $today->getTimestamp())
	{
		$map = Entity\Invoice::getParameterMapper($this->calculateParameters);
		$map->fillMap($this->calculateParameters);
		if ($map->checkMatchingDate(clone $startDate))
		{
			return $startDate;
		}
	}

	return parent::calculateNextExecutionDate($startDate);
}

Добавить комментарий