public function prepareFields()
{
return [
'ACCOUNT_NUMBER' => $this->createField('ACCOUNT_NUMBER', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_ACCOUNT_NUMBER'),
'default' => false,
'type' => 'text',
]),
'SUM' => $this->createField('SUM', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_SUM'),
'default' => false,
'type' => 'number',
]),
'DATE_PAID' => $this->createField('DATE_PAID', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_DATE_PAID'),
'default' => true,
'type' => 'date',
'data' => [
'exclude' => [
\Bitrix\Main\UI\Filter\DateType::TOMORROW,
\Bitrix\Main\UI\Filter\DateType::NEXT_DAYS,
\Bitrix\Main\UI\Filter\DateType::NEXT_WEEK,
\Bitrix\Main\UI\Filter\DateType::NEXT_MONTH,
],
],
]),
'PAY_SYSTEM_NAME' => $this->createField('PAY_SYSTEM_NAME', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_PAY_SYSTEM_NAME'),
'default' => false,
'type' => 'list',
'partial' => true,
]),
'PAID' => $this->createField('PAID', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_PAID'),
'default' => true,
'type' => 'list',
'partial' => true,
]),
'CLIENT' => $this->createField('CLIENT', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_CLIENT'),
'default' => false,
'type' => 'dest_selector',
'partial' => true,
]),
'RESPONSIBLE_ID' => $this->createField('RESPONSIBLE_ID', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_RESPONSIBLE'),
'default' => false,
'type' => 'entity_selector',
'partial' => true,
]),
'MARKED' => $this->createField('MARKED', [
'name' => Main\Localization\Loc::getMessage('CRM_TERMINAL_PAYMENT_PROVIDER_MARKED'),
'default' => false,
'type' => 'list',
'partial' => true,
]),
];
}