• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/correctioncheck.php
  • Класс: BitrixSaleCashboxCorrectionCheck
  • Вызов: CorrectionCheck::getCorrectionFields
public function getCorrectionFields()
{
	if ($this->correction)
	{
		return $this->correction;
	}

	if ($this->getField('ID') > 0)
	{
		$dbRes = InternalsCashboxCheckCorrectionTable::getList([
			'select' => static::getAvailableCorrectionFields(),
			'filter' => [
				'=CHECK_ID' => $this->getField('ID')
			]
		]);
		if ($data = $dbRes->fetch())
		{
			return $data;
		}
	}

	return [];
}