fixed bug #7245 - Inclusão de campo em empresas para venda dentro do ponto de venda, que valida se , ao fechar o caixa do ponto de venda, será exibido o relatório de caixa ou não.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@54023 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago 2016-03-18 20:10:32 +00:00
parent d31912562c
commit ec457cafb8
6 changed files with 19 additions and 2 deletions

View File

@ -334,6 +334,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Radio radIndPermisoTasaEmbarqueNo;
private Checkbox checkPtoVtaEmpresaIndTerceirizada;
private Checkbox checkPtoVtaEmpresaIndBloqueada;
private Checkbox checkPtoVtaEmpresaIndMostrarCaja;
private Textbox txtNumeroSitef;
private Checkbox ckIsento;
private Checkbox checkSimulaIntegracion;
@ -1750,6 +1751,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
ptovtaEmpresa.setFecmodif(Calendar.getInstance().getTime());
ptovtaEmpresa.setIndTerceirizada(checkPtoVtaEmpresaIndTerceirizada.isChecked());
ptovtaEmpresa.setIndBloqueada(checkPtoVtaEmpresaIndBloqueada.isChecked());
ptovtaEmpresa.setIndMostrarCaja(checkPtoVtaEmpresaIndMostrarCaja.isChecked());
ptovtaEmpresa.setNumeroSitef(txtNumeroSitef.getText());
if (cmbEmpresasContaBancarias.getSelectedItem() != null){

View File

@ -96,6 +96,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
compactarArquivos(files, fileZip);
File filez = new File(fileZip);
log.info(filez.exists());
if (filez.exists()) {
log.debug("download dos arquivos");
inputStream = new FileInputStream(filez);
@ -133,6 +134,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
private void compactarArquivos(List<File> arquivosEOuPastas, String arquivoDeSaida){
System.out.println(arquivoDeSaida);
log.debug(arquivoDeSaida);
// Create a buffer for reading the files
byte[] buf = new byte[1024];
@ -163,6 +165,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
// Complete the ZIP file
out.close();
} catch (IOException e) {
log.error(e.getMessage(),e);
e.printStackTrace();
}
}

View File

@ -35,6 +35,9 @@ public class PtovtaEmpresaRender implements ListitemRenderer {
lc = new Listcell(ptoVta.getEmpresaContaBancaria() != null ? ptoVta.getEmpresaContaBancaria().toString() : "");
lc.setParent(lstm);
lc = new Listcell(ptoVta.getIndMostrarCaja() != null && ptoVta.getIndMostrarCaja() ? Labels.getLabel("MSG.SI") : Labels.getLabel("MSG.NO"));
lc.setParent(lstm);
lstm.setAttribute("data", ptoVta);
}

View File

@ -940,6 +940,7 @@ editarPuntoVentaController.lbNodo.value = Servidor
editarPuntoVentaController.lbEmpresa.value = Empresa
editarPuntoVentaController.lbEmpresaContaBancaria.value = Conta Bancária
editarPuntoVentaController.lbEmpresaBloqueada.value = Bloqueada
editarPuntoVentaController.lbMostrarCaja.value = Mostrar Caja en el Cierre
editarPuntoVentaController.lbNumeroSitef.value = Número SITEF
editarPuntoVentaController.lbEmpresaTerceirizada.value = Terceirizada
editarPuntoVentaController.lbparada.value = Parada

View File

@ -981,6 +981,7 @@ editarPuntoVentaController.lbNodo.value = Servidor
editarPuntoVentaController.lbEmpresa.value = Empresa
editarPuntoVentaController.lbEmpresaContaBancaria.value = Conta Bancária
editarPuntoVentaController.lbEmpresaBloqueada.value = Bloqueada
editarPuntoVentaController.lbMostrarCaja.value = Exibir Caixa no Fechamento
editarPuntoVentaController.lbNumeroSitef.value = Número SITEF
editarPuntoVentaController.lbEmpresaTerceirizada.value = Terceirizada
editarPuntoVentaController.lbparada.value = Localidade

View File

@ -955,6 +955,12 @@
<checkbox id="checkPtoVtaEmpresaIndBloqueada"
checked="false" />
</row>
<row>
<label
value="${c:l('editarPuntoVentaController.lbMostrarCaja.value')}" />
<checkbox id="checkPtoVtaEmpresaIndMostrarCaja"
checked="false" />
</row>
<row>
<label
value="${c:l('editarPuntoVentaController.lbNumeroSitef.value')}" />
@ -987,6 +993,7 @@
<listheader image="/gui/img/builder.gif" label="${c:l('editarPuntoVentaController.lbEmpresaBloqueada.value')}" width="20%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarPuntoVentaController.lbNumeroSitef.value')}" width="20%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarPuntoVentaController.lbEmpresaContaBancaria.value')}" width="20%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarPuntoVentaController.lbMostrarCaja.value')}" width="20%" />
</listhead>
</listbox>
</tabpanel>