Correção em tela de cadastro de totalizadores não fiscais.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@45380 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4637e571f1
commit
f20f635f76
|
@ -4,7 +4,6 @@ import java.util.ArrayList;
|
|||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -42,9 +41,6 @@ public class EditarTotnaofiscalEmpresaController extends MyGenericForwardCompose
|
|||
ImpressaoPost,
|
||||
SeguroOpcional,
|
||||
CancSeguroOpcional,
|
||||
ExcessoBagagem,
|
||||
TaxaEmbarque,
|
||||
TaxaConveniencia,
|
||||
Multa,
|
||||
DiferencaMaior,
|
||||
DiferencaMenor,
|
||||
|
@ -127,6 +123,13 @@ public class EditarTotnaofiscalEmpresaController extends MyGenericForwardCompose
|
|||
totnaofiscalEmpresa.setActivo(true);
|
||||
totnaofiscalEmpresa.setFecmodif(Calendar.getInstance().getTime());
|
||||
totnaofiscalEmpresa.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
if(totnaofiscalEmpresa.getTipototalizador()!= TipoTotalizadorNaoFiscal.CUSTOM.name() && totnaofiscalEmpresaList.getListData().contains(totnaofiscalEmpresa)){
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarTotnaofiscalEmpresaController.MSG.suscribirOK"),
|
||||
Labels.getLabel("editarTotnaofiscalEmpresaController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
if(totnaofiscalEmpresa.getFiscaltotnaofiscalId() == null){
|
||||
fiscalImpressoraService.suscribirTotnaofiscalEmpresa(totnaofiscalEmpresa);
|
||||
|
|
Loading…
Reference in New Issue