1
0
mirror of synced 2024-11-22 05:16:09 +03:00

исправление генерации единиц измерения

This commit is contained in:
Sergey 2019-08-28 15:34:33 +03:00
parent a56965dcba
commit f26e36052f
4 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## 2019-08-28 v.2.5.1
* Исправление генерации единиц измерения
## 2019-07-26 v.2.5.0
* Исправление создание дублей заказов

View File

@ -657,8 +657,16 @@ class RetailCrmICML
} else {
$offer .= '<unit code="' . $this->PrepareValue($arOffer["MEASURE"]['SYMBOL_INTL']) . '" name="' . $this->PrepareValue($arOffer["MEASURE"]['MEASURE_TITLE']) . '" sym="' . $this->PrepareValue($arOffer["MEASURE"]['SYMBOL_RUS']) . '" />' . "\n";
}
} else {
$measure = \Bitrix\Catalog\ProductTable::getCurrentRatioWithMeasure($arOffer["ID"]);
if ($this->measure[$measure[$arOffer["ID"]]["MEASURE"]['SYMBOL_INTL']]) {
$offer .= '<unit code="' . $this->measure[$this->PrepareValue($measure[$arOffer["ID"]]["MEASURE"]['SYMBOL_INTL'])] . '" />' . "\n";
} else {
$offer .= '<unit code="' . $this->PrepareValue($measure[$arOffer["ID"]]["MEASURE"]['SYMBOL_INTL']) . '" name="' . $this->PrepareValue($measure[$arOffer["ID"]]["MEASURE"]['MEASURE_TITLE']) . '" sym="' . $this->PrepareValue($measure[$arOffer["ID"]]["MEASURE"]['SYMBOL_RUS']) . '" />' . "\n";
}
}
if ($arOffer["BARCODE"]) {
$offer.= "<barcode>" . $this->PrepareValue($arOffer["BARCODE"]) . "</barcode>\n";
}

View File

@ -1 +1 @@
- Исправление создание дублей заказов
- Исправление генерации единиц измерения

View File

@ -1,5 +1,5 @@
<?
$arModuleVersion = array(
"VERSION" => "2.5.0",
"VERSION_DATE" => "2019-07-26 17:40:00"
"VERSION" => "2.5.1",
"VERSION_DATE" => "2019-08-28 15:20:00"
);