src/PrestaShop/Invoice/Creator.php
protected function getItemLineTaxRuleGroupId(array $item)
    {
        if (isset($item['id_tax_rules_group'])) {
            return (int) $item['id_tax_rules_group'];
        } elseif (isset($item['id_tax'])) {
            $query = 'select distinct id_tax_rules_group from ps_tax_rule where id_tax = ' . (int) $item['id_tax'];
            $results = Db::getInstance()->executeS($query);
            return count($results) === 1 ? (int) $results[0]['id_tax_rules_group'] : 0;
        }
        return 0;
    }
protected function getItemLineTaxRuleGroupId(array $item)
    {
        if (isset($item['id_tax_rules_group'])) {
            return (int) $item['id_tax_rules_group'];
        } elseif (isset($item['id_tax'])) {
            $query = 'select distinct id_tax_rules_group from ps_tax_rule where id_tax = ' . (int) $item['id_tax'];
            $results = Db::getInstance()->executeS($query);
            return count($results) === 1 ? (int) $results[0]['id_tax_rules_group'] : 0;
        }
        return 0;
    }
protected function getItemLineTaxRuleGroupId ( array $ item ) { if ( isset ( $ item [ 'id_tax_rules_group' ] ) ) { return ( int ) $ item [ 'id_tax_rules_group' ] ; } elseif ( isset ( $ item [ 'id_tax' ] ) ) { $ query = 'select distinct id_tax_rules_group from ps_tax_rule where id_tax = ' . ( int ) $ item [ 'id_tax' ] ; $ results = Db :: getInstance ( ) -> executeS ( $ query ) ; return count ( $ results ) === 1 ? ( int ) $ results [ 0 ] [ 'id_tax_rules_group' ] : 0 ; } return 0 ; }
Returns the tax rule group id of the product in the given order line.

@param array $item

@return int
The id of the tax rule group, or 0 if none or multiple were found.

@throws \PrestaShopDatabaseException
Returns the tax rule group id of the product in the given order line .