예제 #1
0
     if ($arParams["MODIFICATION_LABEL"] > 0) {
         if (ToUpper($GLOBALS["DB"]->type) == "MSSQL") {
             $arParams["MODIFICATION_LABEL"] += 1;
         }
         $arParams["MODIFICATION_LABEL"] += $arParams["ZZZ"] - date("Z");
         $arFilter[">DATE_UPDATE"] = ConvertTimeStamp($arParams["MODIFICATION_LABEL"], "FULL");
     }
     $arParams["IMPORT_SIZE"] = intval($arParams["IMPORT_SIZE"]);
     if ($arParams["IMPORT_SIZE"] > 0) {
         $nTopCount = $arParams["IMPORT_SIZE"];
     }
     $arParams["REPLACE_CURRENCY"] = '';
     if (strlen($_SESSION["BX_CML2_EXPORT"]["version"]) > 0 && IntVal($arParams["INTERVAL"]) <= 0) {
         $arParams["INTERVAL"] = 30;
     }
     CSaleExport::setLanguage('en');
 }
 if (strlen($_SESSION["BX_CML2_EXPORT"]["version"]) <= 0) {
     $arParams["INTERVAL"] = 0;
 }
 $options = array();
 if ($bExportFromCrm) {
     $options['EXPORT_FROM_CRM'] = "Y";
 }
 if ($lid) {
     $options['LID'] = $lid;
 }
 CTimeZone::Disable();
 $arResultStat = CSaleExport::ExportOrders2Xml($arFilter, $nTopCount, $arParams["REPLACE_CURRENCY"], $bCrmMode, $arParams["INTERVAL"], $_SESSION["BX_CML2_EXPORT"]["version"], $options);
 CTimeZone::Enable();
 if ($bCrmMode) {