fix unit generation (#36)
This commit is contained in:
parent
e7ab50afee
commit
48ebb7068c
@ -266,7 +266,6 @@ class MoySkladICMLParser
|
|||||||
|
|
||||||
foreach ($response['rows'] as $assortiment) {
|
foreach ($response['rows'] as $assortiment) {
|
||||||
|
|
||||||
//var_dump($assortiment['uom']['externlaCode']);
|
|
||||||
if (!empty($assortiment['modificationsCount']) ||
|
if (!empty($assortiment['modificationsCount']) ||
|
||||||
$assortiment['meta']['type'] == 'service' ||
|
$assortiment['meta']['type'] == 'service' ||
|
||||||
$assortiment['meta']['type'] == 'consignment') {
|
$assortiment['meta']['type'] == 'consignment') {
|
||||||
@ -376,7 +375,7 @@ class MoySkladICMLParser
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} elseif (isset($assortiment['product']['uom'])) {
|
} elseif (isset($assortiment['product']['uom'])) {
|
||||||
if (isset($assortiment['uom']['code'])){
|
if (isset($assortiment['product']['uom']['code'])){
|
||||||
$products[$assortiment['id']]['unit'] = array (
|
$products[$assortiment['id']]['unit'] = array (
|
||||||
'code' => $assortiment['product']['uom']['code'],
|
'code' => $assortiment['product']['uom']['code'],
|
||||||
'name' => $assortiment['product']['uom']['name'],
|
'name' => $assortiment['product']['uom']['name'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user