Addition to the generation of VAT and unit measurements fix
This commit is contained in:
parent
1fff52f754
commit
d28cc3a749
1 changed files with 4 additions and 4 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue