1
0
Fork 0
mirror of synced 2025-04-09 12:02:04 +00:00

fix unit generation

This commit is contained in:
Sergey 2017-12-08 17:50:20 +03:00
parent e7ab50afee
commit 922eebc092

View file

@ -266,7 +266,6 @@ class MoySkladICMLParser
foreach ($response['rows'] as $assortiment) {
//var_dump($assortiment['uom']['externlaCode']);
if (!empty($assortiment['modificationsCount']) ||
$assortiment['meta']['type'] == 'service' ||
$assortiment['meta']['type'] == 'consignment') {
@ -376,7 +375,7 @@ class MoySkladICMLParser
);
}
} elseif (isset($assortiment['product']['uom'])) {
if (isset($assortiment['uom']['code'])){
if (isset($assortiment['product']['uom']['code'])){
$products[$assortiment['id']]['unit'] = array (
'code' => $assortiment['product']['uom']['code'],
'name' => $assortiment['product']['uom']['name'],