fixes bug#7638
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@57481 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
61ce7922f4
commit
350550b908
|
@ -413,6 +413,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
tarifaNueva.setClaseServicio(tarifa.getClaseServicio());
|
tarifaNueva.setClaseServicio(tarifa.getClaseServicio());
|
||||||
tarifaNueva.setMarca(tarifa.getMarca());
|
tarifaNueva.setMarca(tarifa.getMarca());
|
||||||
tarifaNueva.setMoneda(tarifa.getMoneda());
|
tarifaNueva.setMoneda(tarifa.getMoneda());
|
||||||
|
tarifaNueva.setPreciooriginal(tarifa.getPreciooriginal());
|
||||||
|
|
||||||
if (componentePreco.equals(EnumTarifaPedagio.TARIFA.getDescricao()) ||
|
if (componentePreco.equals(EnumTarifaPedagio.TARIFA.getDescricao()) ||
|
||||||
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_PRECIO) != null)) {
|
(componentePreco.equals(EnumTarifaPedagio.TODOS.getDescricao()) && row.getCell(CELL_NOVO_PRECIO) != null)) {
|
||||||
|
@ -422,10 +423,10 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
|
|
||||||
//mantis 7621
|
//mantis 7621
|
||||||
if (radAlterarPrecoOriginalSim.isChecked()){
|
if (radAlterarPrecoOriginalSim.isChecked()){
|
||||||
tarifa.setPreciooriginal(novoPrecio);
|
tarifaNueva.setPreciooriginal(novoPrecio);
|
||||||
}
|
}
|
||||||
|
|
||||||
tarifa.setPrecio(novoPrecio);
|
tarifaNueva.setPrecio(novoPrecio);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentePreco.equals(EnumTarifaPedagio.PEDAGIO.getDescricao()) ||
|
if (componentePreco.equals(EnumTarifaPedagio.PEDAGIO.getDescricao()) ||
|
||||||
|
@ -434,7 +435,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
||||||
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
||||||
|
|
||||||
tarifa.setImportepedagio(novoPrecio);
|
tarifaNueva.setImportepedagio(novoPrecio);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentePreco.equals(EnumTarifaPedagio.TX_EMBARQUE.getDescricao()) ||
|
if (componentePreco.equals(EnumTarifaPedagio.TX_EMBARQUE.getDescricao()) ||
|
||||||
|
@ -443,7 +444,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
||||||
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
||||||
|
|
||||||
tarifa.setImportetaxaembarque(novoPrecio);
|
tarifaNueva.setImportetaxaembarque(novoPrecio);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (componentePreco.equals(EnumTarifaPedagio.SEGURO.getDescricao()) ||
|
if (componentePreco.equals(EnumTarifaPedagio.SEGURO.getDescricao()) ||
|
||||||
|
@ -452,10 +453,9 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
BigDecimal novoPrecio = new BigDecimal(cellNovoPrecio.getNumericCellValue());
|
||||||
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
novoPrecio = novoPrecio.setScale(2, RoundingMode.HALF_UP);
|
||||||
|
|
||||||
tarifa.setImporteseguro(novoPrecio);
|
tarifaNueva.setImporteseguro(novoPrecio);
|
||||||
}
|
}
|
||||||
|
|
||||||
tarifaNueva.setPreciooriginal(tarifa.getPreciooriginal());
|
|
||||||
tarifaNueva.setPrecioredabierto(tarifa.getPrecioredabierto());
|
tarifaNueva.setPrecioredabierto(tarifa.getPrecioredabierto());
|
||||||
tarifaNueva.setStatustarifa("A");
|
tarifaNueva.setStatustarifa("A");
|
||||||
tarifaNueva.setTramo(tarifa.getTramo());
|
tarifaNueva.setTramo(tarifa.getTramo());
|
||||||
|
@ -481,7 +481,7 @@ public class ModificacionMasivaTarifasUploadController extends MyGenericForwardC
|
||||||
if (existeTarifa) {
|
if (existeTarifa) {
|
||||||
strDuplicidade = strDuplicidade + Labels.getLabel("modificacionMasivaTarifasController.MSG.tarifaExiste") + " (" + tarifa.getTarifaId() + "). \n";
|
strDuplicidade = strDuplicidade + Labels.getLabel("modificacionMasivaTarifasController.MSG.tarifaExiste") + " (" + tarifa.getTarifaId() + "). \n";
|
||||||
} else {
|
} else {
|
||||||
tarifa = tarifaService.suscribir(tarifaNueva);
|
tarifaNueva = tarifaService.suscribir(tarifaNueva);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue