Import of products. The imported currency is not correct.
Imported products from CSV file. They contain different kind of fields: text, currency, figures etc. Only one currency is available in the system. (second currency was deleted due to failures at the first import try).
I have RUB in the system, but imported products have EUR. There is no EUR currency in the system anymore.




#### PHP/Apache/Browser Logs
-

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
@manwenick maybe this helps:
Set RUB currency by default before import here https://gitdeveloper.yetiforce.com/index.php?parent=Settings&module=Currency&view=List&block=4&fieldid=16
@vovpff thanks for advise!
I deleted the imported products. --> changed the currency to RUB (I deleted EUR and USD completely), then I imported the data again.
Still the same. But I also see two different issues:




Guys, sorry for Russian
@manwenick вы что вообще импортировать пытаетесь? Скиньте сюда пример заголовков и строки вашего CSV?
@vovpff вот пример:
"category";"productname";"usageunit";"unit_price";"taxes";"prod_description_ru";"prod_art_no";"qtyunitsizexs";"qtyunitsizes";"qtyunitsizel";"qtyunitsizem";"qtyunitpossible";"prod_fabric_value";"qtyunitsizeallsize";
@manwenick а саму строку с данными дадите?
@vovpff конечно, если поможет. :)
"03 Брюки";"Брюки коричневое бордо.";"pcs.";"6400.00";"2";"Вельветовые бананы. Мягкие, удобные и сочетаются с практически любым топом!";"031703022";"0";"0";"0";"0";"0";"50% хлопок, 50% вискоза";"0";
@manwenick попробую подумать. А откуда экспортировали?
@vovpff из bitrix24.
Я пробовал по разному модифицировать. И в xml тоже эксопртировал даты из yeti, чтоб пример был, как выглядит один товар. Там в вальте было значение примерно такое: 9600.00000000
Но самой валюты не былл нигде. В битриксе наооборот, с ценой 9600,00 (с разделительной запятой) и в следующем стринге передается валюта. Например >RUB< или >EUR<.
Владимир, я вам по мэйлу писал, когда сервер пытался настроить. Может я там чего-то не доделал. Хотя вроде всё нормально выглядит.
Ник
@manwenick вероятно писали. Я уже не помню.
В общем, я из ваших данных сделал такой файлик
new 12.txt
Только переименовать надо в csv.
Импортирую в gitdev:


Тут по умолчанию стоит валиюта zl по этому и импортировалось так.
Дальше тот же файл импортирую в свою локальную песочницу:. Валюта по умолчанию рубли. Других валют вообще не имеется в системе.

В чем проблема?
@vovpff Я вам на емайл ответ отправил.
@vovpff I tried to import your file also in https://gitdeveloper.yetiforce.com. After importing this product I see the system default currency. BUT if I want to change it there is the same situation with currency. I can't select another currency.


Maybe bug?

@mariuszkrzaczkowski Hello Mariusz, is there some timeline when this bug will be fixed? I would like to know, when I can start with import of the prods. We have a lot of products. Without this function we can't start. :(
Thank you!
@mariuszkrzaczkowski still no assignment to a milesstone. :(
@vovpff I tried to import your file also in https://gitdeveloper.yetiforce.com. After importing this product I see the system default currency. BUT if I want to change it there is the same situation with currency. I can't select another currency.
Maybe bug?
FIxed in https://github.com/YetiForceCompany/YetiForceCRM/commit/ddaa3c7c5b74561973e552dcde356aad22ff1848
Most helpful comment