Movido el porcentaje de ppm
Fue movido a la columna B para poder cambiar todas las columnas en el resumen general a la columna B, con el fin de obtener mayor uniformidad.
This commit is contained in:
BIN
dist/Programa Caja.jar
vendored
BIN
dist/Programa Caja.jar
vendored
Binary file not shown.
@@ -234,6 +234,7 @@ public class InformeEstadoResultado {
|
|||||||
|
|
||||||
Row header = sheet.createRow(startId++);
|
Row header = sheet.createRow(startId++);
|
||||||
Row utilidad = sheet.createRow(startId++);
|
Row utilidad = sheet.createRow(startId++);
|
||||||
|
Row porcentajePPM = sheet.createRow(startId++);
|
||||||
Row ppmMes = sheet.createRow(startId++);
|
Row ppmMes = sheet.createRow(startId++);
|
||||||
Row ivaMes = sheet.createRow(startId++);
|
Row ivaMes = sheet.createRow(startId++);
|
||||||
Row ivaMesPpm = sheet.createRow(startId++);
|
Row ivaMesPpm = sheet.createRow(startId++);
|
||||||
@@ -243,6 +244,7 @@ public class InformeEstadoResultado {
|
|||||||
|
|
||||||
this.headers.add(header);
|
this.headers.add(header);
|
||||||
this.resumenGeneralRows.add(utilidad);
|
this.resumenGeneralRows.add(utilidad);
|
||||||
|
this.resumenGeneralRows.add(porcentajePPM);
|
||||||
this.resumenGeneralRows.add(ppmMes);
|
this.resumenGeneralRows.add(ppmMes);
|
||||||
this.resumenGeneralRows.add(ivaMes);
|
this.resumenGeneralRows.add(ivaMes);
|
||||||
this.resumenGeneralRows.add(ivaMesPpm);
|
this.resumenGeneralRows.add(ivaMesPpm);
|
||||||
@@ -252,35 +254,30 @@ public class InformeEstadoResultado {
|
|||||||
|
|
||||||
header.createCell(0).setCellValue("Resumen General");
|
header.createCell(0).setCellValue("Resumen General");
|
||||||
header.createCell(1);
|
header.createCell(1);
|
||||||
header.createCell(2);
|
|
||||||
|
|
||||||
utilidad.createCell(0).setCellValue("Utilidad");
|
utilidad.createCell(0).setCellValue("Utilidad");
|
||||||
utilidad.createCell(1);
|
utilidad.createCell(1).setCellFormula("B4 - B20 - B28 - B37");
|
||||||
utilidad.createCell(2).setCellFormula("B4 - B20 - B28 - B37");
|
|
||||||
|
porcentajePPM.createCell(0).setCellValue("Porcentaje PPM");
|
||||||
|
porcentajePPM.createCell(1).setCellValue(this.estadoResultado.getPpm() / 100);
|
||||||
|
|
||||||
ppmMes.createCell(0).setCellValue("PPM Mes");
|
ppmMes.createCell(0).setCellValue("PPM Mes");
|
||||||
ppmMes.createCell(1).setCellValue(this.estadoResultado.getPpm() / 100);
|
ppmMes.createCell(1).setCellFormula("B8 * B41");
|
||||||
ppmMes.createCell(2).setCellFormula("B8 * B41");
|
|
||||||
|
|
||||||
ivaMes.createCell(0).setCellValue("+ IVA Mes");
|
ivaMes.createCell(0).setCellValue("+ IVA Mes");
|
||||||
ivaMes.createCell(1);
|
ivaMes.createCell(1).setCellFormula("B6");
|
||||||
ivaMes.createCell(2).setCellFormula("B6");
|
|
||||||
|
|
||||||
ivaMesPpm.createCell(0);
|
ivaMesPpm.createCell(0).setCellValue("Total PPM + IVA");
|
||||||
ivaMesPpm.createCell(1);
|
ivaMesPpm.createCell(1).setCellFormula("B42 + B43");
|
||||||
ivaMesPpm.createCell(2).setCellFormula("C41 + C42");
|
|
||||||
|
|
||||||
ivaFavor.createCell(0).setCellValue("- IVA a Favor");
|
ivaFavor.createCell(0).setCellValue("- IVA a Favor");
|
||||||
ivaFavor.createCell(1);
|
ivaFavor.createCell(1).setCellValue(this.estadoResultado.getIvaFavor());
|
||||||
ivaFavor.createCell(2).setCellValue(this.estadoResultado.getIvaFavor());
|
|
||||||
|
|
||||||
aPagar.createCell(0).setCellValue("A Pagar PPM + IVA");
|
aPagar.createCell(0).setCellValue("A Pagar PPM + IVA");
|
||||||
aPagar.createCell(1);
|
aPagar.createCell(1).setCellFormula("B44 - B45");
|
||||||
aPagar.createCell(2).setCellFormula("C43 - C44");
|
|
||||||
|
|
||||||
footer.createCell(0).setCellValue("Resultado");
|
footer.createCell(0).setCellValue("Resultado");
|
||||||
footer.createCell(1);
|
footer.createCell(1).setCellFormula("B40 - B46");
|
||||||
footer.createCell(2).setCellFormula("C40 - C45");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setStyles() {
|
private void setStyles() {
|
||||||
@@ -296,11 +293,6 @@ public class InformeEstadoResultado {
|
|||||||
footer.setHeightInPoints(20);
|
footer.setHeightInPoints(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Adicionalmente, el footer y el header de resumen general tiene una columna mas de datos
|
|
||||||
headers.get(headers.size() - 1).getCell(2).setCellStyle(this.styles.get("header"));
|
|
||||||
footers.get(footers.size() - 1).getCell(1).setCellStyle(this.styles.get("footer"));
|
|
||||||
footers.get(footers.size() - 1).getCell(2).setCellStyle(this.styles.get("footer_money"));
|
|
||||||
|
|
||||||
for (Row row : this.ventaRows) {
|
for (Row row : this.ventaRows) {
|
||||||
row.getCell(0).setCellStyle(this.styles.get("regular"));
|
row.getCell(0).setCellStyle(this.styles.get("regular"));
|
||||||
row.getCell(1).setCellStyle(this.styles.get("money"));
|
row.getCell(1).setCellStyle(this.styles.get("money"));
|
||||||
@@ -323,8 +315,7 @@ public class InformeEstadoResultado {
|
|||||||
}
|
}
|
||||||
for (Row row : this.resumenGeneralRows) {
|
for (Row row : this.resumenGeneralRows) {
|
||||||
row.getCell(0).setCellStyle(this.styles.get("regular"));
|
row.getCell(0).setCellStyle(this.styles.get("regular"));
|
||||||
row.getCell(1).setCellStyle(this.styles.get("regular"));
|
row.getCell(1).setCellStyle(this.styles.get("money"));
|
||||||
row.getCell(2).setCellStyle(this.styles.get("money"));
|
|
||||||
row.setHeightInPoints(15);
|
row.setHeightInPoints(15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user