fix code style
This commit is contained in:
parent
9c73e8f050
commit
2652897bf6
2 changed files with 4 additions and 6 deletions
|
@ -618,6 +618,8 @@ class RetailCrmOrder
|
|||
|
||||
$arCustomer = [];
|
||||
$arCustomerCorporate = [];
|
||||
$methodApi = 'ordersCreate';
|
||||
|
||||
$order = self::orderObjToArr($bitrixOrder);
|
||||
$site = self::getCrmShopCodeByLid($order['LID'], $arParams['optionsSitesList']);
|
||||
|
||||
|
@ -641,11 +643,7 @@ class RetailCrmOrder
|
|||
if (isset($orderCrm['order'])) {
|
||||
$methodApi = 'ordersEdit';
|
||||
$arParams['crmOrder'] = $orderCrm['order'];
|
||||
} else {
|
||||
$methodApi = 'ordersCreate';
|
||||
}
|
||||
} else {
|
||||
$methodApi = 'ordersCreate';
|
||||
}
|
||||
|
||||
if (isset($order['RESPONSIBLE_ID']) && !empty($order['RESPONSIBLE_ID'])) {
|
||||
|
|
|
@ -324,8 +324,8 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
|
|||
UnRegisterModuleDependences('sale', 'OnSaleOrderDeleted', $mid, 'RetailCrmEvent', "orderDelete");
|
||||
UnRegisterModuleDependences('sale', 'OnSaleOrderSaved', $mid, 'RetailCrmEvent', "orderSave");
|
||||
UnRegisterModuleDependences('sale', 'OnOrderUpdate', $mid, 'RetailCrmEvent', "onUpdateOrder");
|
||||
UnRegisterModuleDependences('sale', 'OnSaleOrderSaved', 'intaro.retailcrm', $loyaltyEventClass, 'OnSaleOrderSavedHandler');
|
||||
UnRegisterModuleDependences('sale', 'OnSaleComponentOrderResultPrepared', 'intaro.retailcrm', $loyaltyEventClass, 'OnSaleComponentOrderResultPreparedHandler');
|
||||
UnRegisterModuleDependences('sale', 'OnSaleOrderSaved', $mid, $loyaltyEventClass, 'OnSaleOrderSavedHandler');
|
||||
UnRegisterModuleDependences('sale', 'OnSaleComponentOrderResultPrepared', $mid, $loyaltyEventClass, 'OnSaleComponentOrderResultPreparedHandler');
|
||||
ConfigProvider::setLoyaltyProgramStatus('N');
|
||||
|
||||
$dateAgent = new DateTime();
|
||||
|
|
Loading…
Add table
Reference in a new issue