fixes bug #9386
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@74768 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d17de6b6f8
commit
06c34f923c
|
@ -3837,13 +3837,15 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
sql.append(" join estado eie on eie.estado_id = cie.estado_id ");
|
||||
sql.append(" join empresa_imposto ei on ei.empresa_id = b.empresacorrida_id ");
|
||||
sql.append(" and ei.estado_id = coalesce(ae.estado_id, eos.estado_id) and ei.activo = 1 ");
|
||||
sql.append("where ");
|
||||
sql.append(" b.tipoventa_id = 3 ");
|
||||
sql.append("where b.tipoventa_id = 3 ");
|
||||
sql.append(" and (b.motivocancelacion_id is null or b.motivocancelacion_id <> 35) ");
|
||||
sql.append(" and b.indcancelacion = 0 ");
|
||||
sql.append(" and b.preciopagado > 0 ");
|
||||
sql.append(" and b.indstatusboleto = 'V' and b.indreimpresion = 0 ");
|
||||
sql.append(" and b.empresacorrida_id = :EMPRESA_ID ");
|
||||
sql.append(" and b.feccreacion between :DATE_INICIO and :DATE_FIM ");
|
||||
sql.append(" and coalesce(ae.cveestado, eos.cveestado) = :CVEESTADO ");
|
||||
sql.append(" and b.rmd_id is null ");
|
||||
sql.append(" and b.rmd_id is null ");
|
||||
sql.append("order by estadoId, fechorVenta, nombPuntoVenta, numPuntoVenta ");
|
||||
|
||||
return sql.toString();
|
||||
|
|
|
@ -419,9 +419,9 @@ public class ExportacaoFiscal {
|
|||
municipioOrigem = municipioOrigem.substring(municipioOrigem.length() - 5, municipioOrigem.length());
|
||||
}
|
||||
|
||||
if (item.getTributacao() != null && item.getTributacao().compareTo(BigDecimal.ZERO) > 0) {
|
||||
valorICMS = MoneyHelper.multiplicar(valorBaseCalculoICMS, item.getTributacao());
|
||||
}
|
||||
// if (item.getTributacao() != null && item.getTributacao().compareTo(BigDecimal.ZERO) > 0) {
|
||||
// valorICMS = MoneyHelper.multiplicar(valorBaseCalculoICMS, item.getTributacao());
|
||||
// }
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("PRC").append(SEPARADOR);
|
||||
|
|
Loading…
Reference in New Issue