1
0
Fork 0
mirror of synced 2025-04-03 13:53:32 +03:00

fix code style

This commit is contained in:
anton 2024-11-02 08:35:53 +03:00
parent 9c73e8f050
commit 2652897bf6
2 changed files with 4 additions and 6 deletions

View file

@ -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'])) {

View file

@ -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();