1
0
mirror of synced 2025-02-06 23:39:24 +03:00

fix unit generation (#36)

This commit is contained in:
Sergey 2017-12-08 17:53:27 +03:00 committed by Alex Lushpai
parent e7ab50afee
commit 48ebb7068c

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'],