1
0
mirror of synced 2025-02-11 17:59:26 +03:00

fix prices format for float bigger than 10^6

This commit is contained in:
Chernyavtsev Ivan 2015-06-18 10:31:17 +03:00
parent 86cd1a74e6
commit c1d614688f

View File

@ -281,8 +281,8 @@ class MoySkladICMLParser
'id' => $exCode, // тут либо externalcode либо uuid товара
'exCode' => $exCode, // сюда пишем externalcode
'name' => (string) $v[0]['name'],
'price' => ((int) $v[0]['salePrice']) / 100,
'purchasePrice' => ((int) $v[0]['buyPrice']) / 100,
'price' => ((float) $v[0]['salePrice']) / 100,
'purchasePrice' => ((float) $v[0]['buyPrice']) / 100,
'article' => (string) $v[0]['productCode'],
'vendor' => $vendorUuid && isset($vendors[$vendorUuid]) ?
$vendors[$vendorUuid] : '',