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;
    }