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

Addition to the generation of VAT and unit measurements fix

This commit is contained in:
glushenkogw1990 2017-05-04 02:37:59 +03:00
parent 1fff52f754
commit d28cc3a749

View file

@ -334,10 +334,10 @@ class MoySkladICMLParser
$products[$assortiment['id']]['unit'] ='';
}
if (isset($assortiment['effectiveVat'])){
$products[$assortiment['id']]['effectiveVat'] = (string) $assortiment['effectiveVat'];
} elseif (isset($assortiment['product']['effectiveVat'])){
$products[$assortiment['id']]['effectiveVat'] = (string) $assortiment['product']['effectiveVat'];
if (isset($assortiment['effectiveVat']) && $assortiment['effectiveVat'] != 0){
$products[$assortiment['id']]['effectiveVat'] = $assortiment['effectiveVat'];
} elseif (isset($assortiment['product']['effectiveVat']) && $assortiment['product']['effectiveVat'] != 0){
$products[$assortiment['id']]['effectiveVat'] = $assortiment['product']['effectiveVat'];
} else {
$products[$assortiment['id']]['effectiveVat'] = 'none';
}