Package net.sf.dynamicreports.jasper.builder

Examples of net.sf.dynamicreports.jasper.builder.JasperReportBuilder.subtotalsAtSummary()


                report.title(cmp.text("Gastos (C)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Gasto", "0", type.stringType()));
                report.addColumn(col.column("Observaciones", "1", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Egresos"));
            } else if ( masterRowNumber == 3 ){
                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Ingreso", "0", type.stringType()));
                report.addColumn(col.column("Nombre del Banco", "1", type.stringType()));
View Full Code Here


                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Ingreso", "0", type.stringType()));
                report.addColumn(col.column("Nombre del Banco", "1", type.stringType()));
                report.addColumn(col.column("Lote", "2", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Ingresos"));
            } else if ( masterRowNumber == 4 ) {
                try {
                    Double receiptTotal = ConnectionDrivers.getSumTotalWithIva(myDay,"factura","Facturada", true , null) - ConnectionDrivers.getSumTotalWithIva(myDay,"nota_de_credito","Nota",false, null);
                    Double income = ConnectionDrivers.getTotalIncomming(myDay);
                    System.out.println(income);
View Full Code Here

                            + "\nImpresoras Fiscales (E)").setStyle(Templates.bold12CenteredStyle));
                    TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                    report.addColumn(col.column("Maquina Fiscal Nro", "0", type.stringType()));
                    report.addColumn(col.column("Numero Z", "1", type.stringType()));
                    report.addColumn(tcb);
                    report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>) sbt.sum(tcb).setLabel("Total Ingresos"));
                } catch (SQLException ex) {
                    Logger.getLogger(CreateClosingDayReport.class.getName()).log(Level.SEVERE, null, ex);
                }
            }else{
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.