fix codestyle
This commit is contained in:
parent
15d47def7d
commit
2027253043
3 changed files with 9 additions and 8 deletions
|
@ -4,5 +4,3 @@ $filePath = $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/intaro.retailcrm/lib
|
|||
if (file_exists($filePath)) {
|
||||
require_once($filePath);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ if (class_exists('intaro_retailcrm')) {
|
|||
|
||||
class intaro_retailcrm extends CModule
|
||||
{
|
||||
public const LP_ORDER_GROUP_NAME = 'Программа лояльности';
|
||||
public const BONUS_COUNT = 'Количество бонусов';
|
||||
public const LP_ORDER_GROUP_NAME = 'Программа лояльности';
|
||||
public const BONUS_COUNT = 'Количество бонусов';
|
||||
public const BONUS_PAY_SYSTEM_NAME = 'Оплата бонусами';
|
||||
public const BONUS_PAY_SYSTEM_CODE = 'retailcrmbonus';
|
||||
public const BONUS_PAY_SYSTEM_DESCRIPTION = 'Оплата бонусами программы лояльности retailCRM';
|
||||
|
@ -239,6 +239,7 @@ class intaro_retailcrm extends CModule
|
|||
$this->addBonusPaySystem();
|
||||
$this->addLPUserFields();
|
||||
$this->addLPEvents();
|
||||
|
||||
try {
|
||||
$this->addLPOrderProps();
|
||||
} catch (ObjectPropertyException | ArgumentException | SystemException $e) {
|
||||
|
@ -1291,7 +1292,9 @@ class intaro_retailcrm extends CModule
|
|||
|
||||
public function CopyFiles(): void
|
||||
{
|
||||
$path_from = $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install';
|
||||
$path_from = $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install';
|
||||
$saleSystemPath = COption::GetOptionString('sale', 'path2user_ps_files');
|
||||
|
||||
CopyDirFiles(
|
||||
$path_from . '/export',
|
||||
$_SERVER['DOCUMENT_ROOT'],
|
||||
|
@ -1299,7 +1302,6 @@ class intaro_retailcrm extends CModule
|
|||
true,
|
||||
false
|
||||
);
|
||||
$saleSystemPath = COption::GetOptionString('sale', 'path2user_ps_files');
|
||||
CopyDirFiles(
|
||||
$path_from . '/export_sale_payment',
|
||||
$_SERVER['DOCUMENT_ROOT'] . $saleSystemPath,
|
||||
|
@ -1562,7 +1564,7 @@ class intaro_retailcrm extends CModule
|
|||
'PERSON_TYPE_ID' => $personId,
|
||||
'NAME' => self::LP_ORDER_GROUP_NAME,
|
||||
];
|
||||
$result = OrderPropsGroupTable::add($groupFields);
|
||||
$result = OrderPropsGroupTable::add($groupFields);
|
||||
|
||||
return $result->getId();
|
||||
}
|
||||
|
@ -1668,6 +1670,7 @@ class intaro_retailcrm extends CModule
|
|||
|
||||
try {
|
||||
$events = ToModuleRepository::getCollectionByWhere($select, $where);
|
||||
|
||||
if ($events !== null && count($events) === 0) {
|
||||
$eventManager->registerEventHandler(
|
||||
$event['FROM_MODULE'],
|
||||
|
|
|
@ -93,6 +93,6 @@ class EventsHandlers
|
|||
public function OnSaleComponentOrderOneStepProcessHandler($arResult, $arUserResult, $arParams)
|
||||
{
|
||||
AddMessage2Log('OnSaleComponentOrderOneStepProcessHandler work! '. $arUserResult. $arParams);
|
||||
return $arResult;
|
||||
return $arResult;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue