parent
62248e99cf
commit
7a59c61c2c
|
@ -96,7 +96,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
private String puntoventa;
|
private String puntoventa;
|
||||||
private Conferencia conferencia;
|
private Conferencia conferencia;
|
||||||
|
|
||||||
//Vari<EFBFBD>vel de controle que indica se j<> passou pela cria<69><61>o do grid.
|
//Variavel de controle que indica se ja passou pela criacao do grid.
|
||||||
private Boolean jaPassou = false;
|
private Boolean jaPassou = false;
|
||||||
|
|
||||||
private MyListbox ecfListBox;
|
private MyListbox ecfListBox;
|
||||||
|
@ -691,7 +691,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
PtovtaComissao ptovtaComissao = ptovtaComissaoService.buscarPuntaVentaEmpresa(puntoventaId, empresa.getEmpresaId());
|
PtovtaComissao ptovtaComissao = ptovtaComissaoService.buscarPuntaVentaEmpresa(puntoventaId, empresa.getEmpresaId());
|
||||||
if (ptovtaComissao != null && (ptovtaComissao.getIndretercomissao() == null || !ptovtaComissao.getIndretercomissao())) {
|
if (ptovtaComissao != null && (ptovtaComissao.getIndretercomissao() == null || !ptovtaComissao.getIndretercomissao())) {
|
||||||
// hboxValoresCaixaComissao.setVisible(false);
|
// hboxValoresCaixaComissao.setVisible(false);
|
||||||
} else { // reter comiss<EFBFBD>o
|
} else { // reter comissao
|
||||||
Date dataIni = null;
|
Date dataIni = null;
|
||||||
Date datafim = null;
|
Date datafim = null;
|
||||||
if (isPeriodo) {
|
if (isPeriodo) {
|
||||||
|
@ -721,10 +721,10 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
/**
|
/**
|
||||||
* Metodo criado com o objetivo de adicionar os bilhetes Não classificados previamente.
|
* Metodo criado com o objetivo de adicionar os bilhetes Não classificados previamente.
|
||||||
*
|
*
|
||||||
* Ou seja, casos ainda existam bilhetes ap<EFBFBD>s a classifica<EFBFBD><EFBFBD>o, os mesmos ser<EFBFBD>o separadas em cancelados e vendidos
|
* Ou seja, casos ainda existam bilhetes apos a classificacao, os mesmos serao separadas em cancelados e vendidos
|
||||||
*
|
*
|
||||||
* @param boletosComissaos
|
* @param boletosComissaos
|
||||||
* @throws BusinessException
|
* @throws BusinessException
|
||||||
*/
|
*/
|
||||||
private void ajustarPendentes(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
private void ajustarPendentes(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||||
|
|
||||||
|
@ -756,17 +756,17 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// recarrega as informa<EFBFBD><EFBFBD>es
|
// recarrega as informacoes
|
||||||
if (vendidosAtualizado) {
|
if (vendidosAtualizado) {
|
||||||
this.carregarBilhetesVendidos(this.lsBilhetes, true);
|
this.carregarBilhetesVendidos(this.lsBilhetes, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// recarrega as informa<EFBFBD><EFBFBD>es
|
// recarrega as informacoes
|
||||||
if (canceladoAtualizado) {
|
if (canceladoAtualizado) {
|
||||||
this.carregarBilhetesCancelados(this.lsBilhetesCancelados, true);
|
this.carregarBilhetesCancelados(this.lsBilhetesCancelados, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// recarrega as informa<EFBFBD><EFBFBD>es
|
// recarrega as informacoes
|
||||||
if (devolvidoAtualizado) {
|
if (devolvidoAtualizado) {
|
||||||
this.carregarBilhetesDevolvidos(this.lsBilhetesDevolvidos, true);
|
this.carregarBilhetesDevolvidos(this.lsBilhetesDevolvidos, true);
|
||||||
}
|
}
|
||||||
|
@ -775,7 +775,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
private void carregarResumo(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
private void carregarResumo(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||||
if (isPeriodo) {
|
if (isPeriodo) {
|
||||||
// m<EFBFBD>todo apenas usa empresa e punto venda da conferencia, ent<6E>o pode ser passado o primeiro da lista
|
// metodo apenas usa empresa e punto venda da conferencia, entao pode ser passado o primeiro da lista
|
||||||
resumo = conferenciaComissaoService.gerarResumo(conferencias.isEmpty() ? null : conferencias.get(0), boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
resumo = conferenciaComissaoService.gerarResumo(conferencias.isEmpty() ? null : conferencias.get(0), boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
||||||
} else {
|
} else {
|
||||||
resumo = conferenciaComissaoService.gerarResumo(conferencia, boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
resumo = conferenciaComissaoService.gerarResumo(conferencia, boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
||||||
|
@ -1232,7 +1232,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// valida<EFBFBD><EFBFBD>o do campo com o getValue, se tentar recuperar o valor em string <20> lan<61>ada exce<63><65>o
|
// validacao do campo com o getValue, se tentar recuperar o valor em string e lancada excecao
|
||||||
txtObservacaoLog.getValue();
|
txtObservacaoLog.getValue();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.observacaoObrigatorio"),
|
Messagebox.show(Labels.getLabel("conferenciaController.MSG.observacaoObrigatorio"),
|
||||||
|
@ -1482,7 +1482,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
public Boolean isExibirBotaoReabrirMovimento() {
|
public Boolean isExibirBotaoReabrirMovimento() {
|
||||||
if (isPeriodo) {
|
if (isPeriodo) {
|
||||||
for (Conferencia c : conferencias) {
|
for (Conferencia c : conferencias) {
|
||||||
// caso exista pelo menos uma conferencia que seja poss<EFBFBD>vel reabrir o movimento, habilitar
|
// caso exista pelo menos uma conferencia que seja possivel reabrir o movimento, habilitar
|
||||||
if (isMovimentoEncerrado(c) && isPermissaoReabrirMovimento()) {
|
if (isMovimentoEncerrado(c) && isPermissaoReabrirMovimento()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1497,7 +1497,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
public Boolean isExibirBotaoLancamentoObservacao() {
|
public Boolean isExibirBotaoLancamentoObservacao() {
|
||||||
if (isPeriodo) {
|
if (isPeriodo) {
|
||||||
// caso Periodo, a valida<EFBFBD><EFBFBD>o <20> feita no combo de dias de conferencia
|
// caso Periodo, a validacao e feita no combo de dias de conferencia
|
||||||
return exibirBtnLogPeriodo;
|
return exibirBtnLogPeriodo;
|
||||||
} else {
|
} else {
|
||||||
return !isMovimentoEncerrado() && (isMaloteRecebido() || !isNaopermiteconfsemmalote());
|
return !isMovimentoEncerrado() && (isMaloteRecebido() || !isNaopermiteconfsemmalote());
|
||||||
|
@ -1507,7 +1507,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
public Boolean isExibirBotaoEncerrarMovimento() {
|
public Boolean isExibirBotaoEncerrarMovimento() {
|
||||||
if (isPeriodo) {
|
if (isPeriodo) {
|
||||||
for (Conferencia c : conferencias) {
|
for (Conferencia c : conferencias) {
|
||||||
// caso exista pelo menos uma conferencia que seja poss<EFBFBD>vel encerrar o movimento, habilitar
|
// caso exista pelo menos uma conferencia que seja possivel encerrar o movimento, habilitar
|
||||||
if ((isMaloteRecebido(c) || !isNaopermiteconfsemmalote()) && isMovimentoNaoEncerrado(c) && isPermissaoEncerrarMovimento()) {
|
if ((isMaloteRecebido(c) || !isNaopermiteconfsemmalote()) && isMovimentoNaoEncerrado(c) && isPermissaoEncerrarMovimento()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1521,7 +1521,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
public Boolean isExibirBotaoChegadaMalote() {
|
public Boolean isExibirBotaoChegadaMalote() {
|
||||||
if (isPeriodo) {
|
if (isPeriodo) {
|
||||||
for (Conferencia c : conferencias) {
|
for (Conferencia c : conferencias) {
|
||||||
// caso exista pelo menos uma conferencia que seja poss<EFBFBD>vel entregar malote, habilitar
|
// caso exista pelo menos uma conferencia que seja possivel entregar malote, habilitar
|
||||||
if (!isMaloteRecebido(c) && isMovimentoNaoEncerrado(c)) {
|
if (!isMaloteRecebido(c) && isMovimentoNaoEncerrado(c)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue