commit
7da2d5cdf0
@ -1,3 +1,6 @@
|
||||
## 2015-05-18 v.1.1.2
|
||||
* Добавлена возможность изменять файлы основных классов(ICMLLoader и ICrmOrderActions) и экспорт каталога без потери обновлений
|
||||
* Исправлены мелкие ошибки
|
||||
## 2015-03-19 v.1.1.1
|
||||
* Исправлена ошибка, связанная с версионностью PHP в History.
|
||||
* Добавлена выгрузка закупочной цены вместе с заказом
|
||||
|
@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/ICMLLoader.php")){
|
||||
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/ICMLLoader.php");
|
||||
}
|
||||
else{
|
||||
global $MESS;
|
||||
IncludeModuleLangFile(__FILE__);
|
||||
|
||||
@ -540,3 +543,4 @@ class ICMLLoader {
|
||||
return $offer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,8 @@
|
||||
<?php
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/ICrmOrderActions.php")){
|
||||
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/ICrmOrderActions.php");
|
||||
}
|
||||
else{
|
||||
IncludeModuleLangFile(__FILE__);
|
||||
class ICrmOrderActions
|
||||
{
|
||||
@ -292,9 +296,9 @@ class ICrmOrderActions
|
||||
}
|
||||
}
|
||||
if (function_exists('intarocrm_before_order_send')) {
|
||||
$newResOrder = intarocrm_before_order_send($resOrder);
|
||||
$newResOrder = intarocrm_before_order_send($order);
|
||||
if (is_array($newResOrder) && !empty($newResOrder)) {
|
||||
$resOrder = $newResOrder;
|
||||
$order = $newResOrder;
|
||||
}
|
||||
}
|
||||
|
||||
@ -500,7 +504,7 @@ class ICrmOrderActions
|
||||
'CANCELED' => 'N',
|
||||
'STATUS_ID' => 'N',
|
||||
'PRICE' => 0,
|
||||
'CURRENCY' => 'RUB',
|
||||
'CURRENCY' => CCurrency::GetBaseCurrency(),
|
||||
'USER_ID' => $order['customer']['externalId'],
|
||||
'PAY_SYSTEM_ID' => 0,
|
||||
'PRICE_DELIVERY' => 0,
|
||||
@ -1057,3 +1061,4 @@ class RetailUser extends CUser
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/export_run.php")){
|
||||
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/export_run.php");
|
||||
}
|
||||
else{
|
||||
ignore_user_abort(true);
|
||||
set_time_limit(0);
|
||||
|
||||
@ -81,3 +84,4 @@ $loader->serverName = $SERVER_NAME;
|
||||
$loader->application = $APPLICATION;
|
||||
$loader->loadPurchasePrice = $LOAD_PURCHASE_PRICE == 'Y';
|
||||
$loader->Load();
|
||||
}
|
@ -1,5 +1,8 @@
|
||||
<?
|
||||
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/export_setup.php")){
|
||||
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/retailcrm/export_setup.php");
|
||||
}
|
||||
else{
|
||||
$iblockProperties = Array(
|
||||
"article" => "article",
|
||||
"manufacturer" => "manufacturer",
|
||||
@ -695,5 +698,5 @@ elseif ($STEP==2)
|
||||
COption::SetOptionString($MODULE_ID, $CRM_CATALOG_BASE_PRICE . '_' . $_REQUEST['PROFILE_ID'], htmlspecialchars(trim($_POST['price-types'])));
|
||||
$FINITE = true;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user