diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java index 4c3b5b803..c6b949430 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioEstoque.java @@ -36,7 +36,7 @@ public class RelatorioEstoque extends Relatorio { dataResult.put("forminicio", rset.getString("forminicial")); dataResult.put("formfinal", rset.getString("formfinal")); dataResult.put("estado", rset.getString("nombestado")); - dataResult.put("descestacion", rset.getString("estacao")); + dataResult.put("tipo", rset.getString("tipo")); this.dados.add(dataResult); } @@ -51,13 +51,14 @@ public class RelatorioEstoque extends Relatorio { private String getSql() { StringBuilder sql = new StringBuilder(); - sql.append(" select dab.aidf_id as aidf, e.nombempresa, p.nombpuntoventa, dab.NUMSERIEPREIMPRESA as serie, es.descestacion as estacao, "); + sql.append(" select dab.aidf_id as aidf, e.nombempresa, p.nombpuntoventa, dab.NUMSERIEPREIMPRESA as serie, es.descestacion as estacao, tp.desctipo as tipo, "); sql.append(" case when dab.STATUSOPERACION = 0 then dab.NUMFOLIOINICIAL else coalesce(fp.FOLIOPREIMPRESO,dab.NUMFOLIOINICIAL) end as forminicial, dab.NUMFOLIOFINAL as formfinal, "); sql.append(" est.nombestado, ar.descarticulo "); sql.append(" from abasto_boleto ab "); sql.append(" inner join empresa e on e.empresa_id = ab.empresa_id and ab.ACTIVO = 1 "); sql.append(" inner join det_abasto_boleto dab on dab.abastoboleto_id = ab.abastoboleto_id and dab.ACTIVO = 1 "); sql.append(" inner join punto_venta p on p.puntoventa_id = ab.puntoventa_id and p.ACTIVO = 1 "); + sql.append(" left join TIPO_PTOVTA tp on tp.TIPOPTOVTA_ID = p.TIPOPTOVTA_ID and tp.ACTIVO = 1 "); sql.append(" inner join estacion es on es.ESTACION_ID = ab.ESTACION_ID "); sql.append(" inner join ARTICULO ar on ar.ARTICULO_ID = ab.ARTICULO_ID "); sql.append(" left join FOLIO_PREIMPRESO fp on fp.AIDF_ID = dab.AIDF_ID and fp.EMPRESA_ID = e.EMPRESA_ID and fp.ESTACION_ID = ab.ESTACION_ID and fp.activo = 1 "); diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jasper b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jasper index cfe8a9076..95809d320 100644 Binary files a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jasper and b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jasper differ diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jrxml b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jrxml index 9af226f8d..83b3c756b 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jrxml +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/templates/RelatorioEstoque.jrxml @@ -1,7 +1,7 @@ - + @@ -23,7 +23,7 @@ - + @@ -31,7 +31,7 @@ - + @@ -39,14 +39,14 @@ - + - + @@ -54,10 +54,10 @@ - + - + @@ -65,7 +65,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -81,10 +81,10 @@ - + - + @@ -95,66 +95,66 @@ - + - + - + - + - + - + - + - + - + - + @@ -165,14 +165,14 @@ - + - + @@ -180,28 +180,28 @@ - + - + - + - + - + @@ -209,7 +209,7 @@ - + @@ -217,14 +217,14 @@ - + - + @@ -238,7 +238,7 @@ - +