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

View File

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

View File

@ -34,6 +34,9 @@ public class PtovtaEmpresaRender implements ListitemRenderer {
lc = new Listcell(ptoVta.getEmpresaContaBancaria() != null ? ptoVta.getEmpresaContaBancaria().toString() : ""); lc = new Listcell(ptoVta.getEmpresaContaBancaria() != null ? ptoVta.getEmpresaContaBancaria().toString() : "");
lc.setParent(lstm); 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); lstm.setAttribute("data", ptoVta);

View File

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

View File

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

View File

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