bug#11600
dev: julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@85899 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
38b1fd1e4c
commit
ed4c772d47
|
@ -4144,9 +4144,11 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
|||
private BigDecimal valorPassagem(DetalhadoFiscal det, boolean isReceitaTerceiros) {
|
||||
BigDecimal total = BigDecimal.ZERO;
|
||||
total = total.add(det.getTarifa() == null ? BigDecimal.ZERO : det.getTarifa());
|
||||
total = total.add(det.getTaxaEmbarque() == null ? BigDecimal.ZERO : det.getTaxaEmbarque());
|
||||
total = total.add(det.getPedagio() == null ? BigDecimal.ZERO : det.getPedagio());
|
||||
total = total.add(det.getSeguro() == null ? BigDecimal.ZERO : det.getSeguro());
|
||||
if (isReceitaTerceiros) {
|
||||
total = total.add(det.getTaxaEmbarque() == null ? BigDecimal.ZERO : det.getTaxaEmbarque());
|
||||
total = total.add(det.getPedagio() == null ? BigDecimal.ZERO : det.getPedagio());
|
||||
total = total.add(det.getSeguro() == null ? BigDecimal.ZERO : det.getSeguro());
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue