fixes [bug#5630]
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@37712 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
807f7e2a61
commit
8bfda54284
|
@ -2,7 +2,6 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -15,6 +14,7 @@ import com.rjconsultores.ventaboletos.entidad.Clasificacion;
|
||||||
import com.rjconsultores.ventaboletos.entidad.DetAbastoBoleto;
|
import com.rjconsultores.ventaboletos.entidad.DetAbastoBoleto;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
import com.rjconsultores.ventaboletos.entidad.Estacion;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EstacionImpresora;
|
||||||
import com.rjconsultores.ventaboletos.entidad.FolioPreimpreso;
|
import com.rjconsultores.ventaboletos.entidad.FolioPreimpreso;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.RequisicionBoleto;
|
import com.rjconsultores.ventaboletos.entidad.RequisicionBoleto;
|
||||||
|
@ -29,6 +29,9 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
|
||||||
@Service("autorizaFolioService")
|
@Service("autorizaFolioService")
|
||||||
public class AutorizaFolioServiceImpl implements AutorizaFolioService {
|
public class AutorizaFolioServiceImpl implements AutorizaFolioService {
|
||||||
|
// Numero max de folios por estacion
|
||||||
|
public static final Integer MAX_CANT_FOLIOS = Integer.MAX_VALUE;
|
||||||
|
public static final Integer INICIO_FOLIO = 1;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ArticuloService articuloService;
|
private ArticuloService articuloService;
|
||||||
|
@ -149,15 +152,12 @@ public class AutorizaFolioServiceImpl implements AutorizaFolioService {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Numero max de folios por estacion
|
|
||||||
public static final Integer MAX_CANT_FOLIOS = Integer.MAX_VALUE;
|
|
||||||
public static final Integer INICIO_FOLIO = 1;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean noChequeFolioPreimpresos(Estacion estacion) {
|
public Boolean noChequeFolioPreimpresos(Estacion estacion) {
|
||||||
|
|
||||||
List<Empresa> empresasUsuario = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
|
||||||
for (Empresa empresa : empresasUsuario) {
|
for (EstacionImpresora estacionImpresora : estacion.getLsEstacionImpresora()) {
|
||||||
|
Empresa empresa = estacionImpresora .getEmpresa();
|
||||||
|
|
||||||
FolioPreimpreso folio = folioPreimpresoService.buscaFolioPreImpressoEstacionImpresora(estacion, empresa);
|
FolioPreimpreso folio = folioPreimpresoService.buscaFolioPreImpressoEstacionImpresora(estacion, empresa);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue