Skip to content

Commit

Permalink
Local do menu, troca de fields
Browse files Browse the repository at this point in the history
  • Loading branch information
carcaroff committed Dec 8, 2017
1 parent 753b863 commit ebd3290
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions br_account/models/account_fiscal_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,37 +146,8 @@ def _filter_rules(self, fpos_id, type_tax, partner, product, state):
# Calcula o maior valor para os resultados obtidos
greater_rule = max([(v, k) for k, v in rules_points.items()])
# Se o valor da regra for menor do que 0, a regra é descartada.
if greater_rule[0] <= 0:
# return {}
return {
('%s_rule_id' % type_tax): 0,
'cfop_id': 0,
('tax_%s_id' % type_tax): 0,
# ICMS
'icms_cst_normal': None,
'icms_aliquota_reducao_base': 0,
'incluir_ipi_base': 0,
# ICMS ST
'tax_icms_st_id': 0,
'icms_st_aliquota_mva': 0,
'icms_st_aliquota_reducao_base': 0,
'icms_st_aliquota_deducao': 0,
# ICMS Difal
'tem_difal': 0,
'tax_icms_inter_id': 0,
'tax_icms_intra_id': 0,
'tax_icms_fcp_id': 0,
# Simples
'icms_csosn_simples': 0,
'icms_aliquota_credito': 0,
# IPI
'ipi_cst': 0,
'ipi_reducao_bc': 0,
# PIS
'pis_cst': 0,
# PIS
'cofins_cst': 0,
}
if greater_rule[0] < 0:
return {}

# Procura pela regra associada ao id -> (greater_rule[1])
rules = [rules.browse(greater_rule[1])]
Expand Down

0 comments on commit ebd3290

Please sign in to comment.