paymentTypesList()->paymentTypes; $arResult['PAYMENT_TYPES'] = unserialize(COption::GetOptionString($MODULE_ID, $CRM_PAYMENT_TYPES, 0)); } if (!isset($arResult['bitrixStatusesList'])) { $arResult['bitrixStatusesList'] = RCrmActions::StatusesList(); $arResult['paymentList'] = $RETAIL_CRM_API->statusesList()->statuses; $arResult['paymentGroupList'] = $RETAIL_CRM_API->statusGroupsList()->statusGroups; } if (!isset($arResult['orderTypesList'])) { $arResult['bitrixOrderTypesList'] = RCrmActions::OrderTypesList($arResult['arSites']); $arResult['orderTypesList'] = $RETAIL_CRM_API->orderTypesList()->orderTypes; } if (!isset($arResult['paymentStatusesList'])) { $arResult['paymentStatusesList'] = $RETAIL_CRM_API->paymentStatusesList()->paymentStatuses; $arResult['PAYMENT_STATUSES'] = unserialize(COption::GetOptionString($MODULE_ID, $CRM_PAYMENT_STATUSES, 0)); } if (!isset($arResult['bitrixDeliveryTypesList'])) { $arResult['bitrixDeliveryTypesList'] = RCrmActions::DeliveryList(); $arResult['deliveryTypesList'] = $RETAIL_CRM_API->deliveryTypesList()->deliveryTypes; $arResult['DELIVERY_TYPES'] = unserialize(COption::GetOptionString($MODULE_ID, $CRM_DELIVERY_TYPES_ARR, 0)); } //bitrix pyament Y/N $arResult['bitrixPaymentList'][0]['NAME'] = GetMessage('PAYMENT_Y'); $arResult['bitrixPaymentList'][0]['ID'] = 'Y'; $arResult['bitrixPaymentList'][1]['NAME'] = GetMessage('PAYMENT_N'); $arResult['bitrixPaymentList'][1]['ID'] = 'N'; if(isset($arResult['ORDER_TYPES'])){ $defaultOrderTypes = $arResult['ORDER_TYPES']; } else{ $defaultOrderTypes = array ( 1 => 'eshop-individual', 2 => 'eshop-legal' ); } if(isset($arResult['DELIVERY_TYPES'])){ $defaultDelivTypes = $arResult['DELIVERY_TYPES']; } else{ $defaultDelivTypes = array ( 1 => 'courier', 2 => 'self-delivery' ); } if(isset($arResult['PAYMENT_TYPES'])){ $defaultPayTypes = $arResult['PAYMENT_TYPES']; } else{ $defaultPayTypes = array ( 1 => 'cash', 4 => 'e-money', 5 => 'bank-card', 9 => 'bank-transfer' ); } if(isset($arResult['PAYMENT_STATUSES'])){ $defaultPayStatuses = $arResult['PAYMENT_STATUSES']; } else{ $defaultPayStatuses = array ( 'N' => 'new', 'P' => 'prepayed', 'F' => 'complete', ); } if(isset($arResult['PAYMENT'])){ $defaultPayment = $arResult['PAYMENT']; } else{ $defaultPayment = array( 'Y' => 'paid', 'N' => 'not-paid' ); } ?>
" . GetMessage('URL_1') . "" . " " . 'RetailCRM.'; ?>


" class="adm-btn-save">
" class="adm-btn-save">