fixes bug#22020

dev: Valdir
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@106817 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2021-05-21 20:11:05 +00:00
parent 4d0cc7e850
commit 79f914c53a
1 changed files with 10 additions and 4 deletions

View File

@ -185,13 +185,19 @@ public class EditarFechamentoParamgeralController extends MyGenericForwardCompos
getFechamentoParamgeral().setBoletoBancoConta(txtBoletoBancoConta.getText()); getFechamentoParamgeral().setBoletoBancoConta(txtBoletoBancoConta.getText());
getFechamentoParamgeral().setBoletoBancoContaDigito(txtBoletoBancoContaDigito.getText()); getFechamentoParamgeral().setBoletoBancoContaDigito(txtBoletoBancoContaDigito.getText());
getFechamentoParamgeral().setBoletoDiasVenc(Integer.valueOf(txtBoletoDiasVenc.getText())); getFechamentoParamgeral().setBoletoDiasVenc(Integer.valueOf(txtBoletoDiasVenc.getText()));
getFechamentoParamgeral().setBoletoJuros(new BigDecimal(txtBoletoJuros.getText().replace(",", ".")));
getFechamentoParamgeral().setBoletoMulta(new BigDecimal(txtBoletoMulta.getText().replace(",", ".")));
getFechamentoParamgeral().setBoletoBancoInstrucao(txtBoletoBancoInstrucao.getText()); getFechamentoParamgeral().setBoletoBancoInstrucao(txtBoletoBancoInstrucao.getText());
getFechamentoParamgeral().setBoletoBancoInstrucao2(txtBoletoBancoInstrucao2.getText()); getFechamentoParamgeral().setBoletoBancoInstrucao2(txtBoletoBancoInstrucao2.getText());
getFechamentoParamgeral().setBoletoBancoInstrucao3(txtBoletoBancoInstrucao3.getText()); getFechamentoParamgeral().setBoletoBancoInstrucao3(txtBoletoBancoInstrucao3.getText());
getFechamentoParamgeral().setBoletoBancoInstrucaoSacado(txtBoletoBancoInstrucaoSacado.getText()); getFechamentoParamgeral().setBoletoBancoInstrucaoSacado(txtBoletoBancoInstrucaoSacado.getText());
if(! txtBoletoJuros.getText().trim().isEmpty()) {
getFechamentoParamgeral().setBoletoJuros(new BigDecimal(txtBoletoJuros.getText().replace(",", ".")));
}
if(! txtBoletoMulta.getText().trim().isEmpty()) {
getFechamentoParamgeral().setBoletoMulta(new BigDecimal(txtBoletoMulta.getText().replace(",", ".")));
}
if(cmbEmpresa.getSelectedItem() != null) { if(cmbEmpresa.getSelectedItem() != null) {
getFechamentoParamgeral().setEmpresa((Empresa) cmbEmpresa.getSelectedItem().getValue()); getFechamentoParamgeral().setEmpresa((Empresa) cmbEmpresa.getSelectedItem().getValue());
} }
@ -214,7 +220,7 @@ public class EditarFechamentoParamgeralController extends MyGenericForwardCompos
closeWindow(); closeWindow();
} catch (Exception ex) { } catch (Exception ex) {
log.info(ex.getLocalizedMessage()); log.info(ex.getLocalizedMessage());
Clients.alert(ex.getLocalizedMessage(), Clients.alert(ex.getLocalizedMessage()!=null?ex.getLocalizedMessage():ex.getCause().getLocalizedMessage(),
Labels.getLabel("editarFechamentoParamgeralController.window.title"), Messagebox.INFORMATION); Labels.getLabel("editarFechamentoParamgeralController.window.title"), Messagebox.INFORMATION);
} }
} }