Promedio de boletas en informe de libro de ventas

This commit is contained in:
Daniel Cortés
2019-05-21 14:51:27 -04:00
parent 604b157e76
commit 2cec898f44
2 changed files with 8 additions and 3 deletions

BIN
dist/Programa Caja.jar vendored

Binary file not shown.

View File

@@ -45,7 +45,7 @@ public class InformeLibroDeVentasToExcel {
"TOTAL",
"INICIAL", "FINAL", "VALOR",
"INICIAL", "FINAL", "VALOR",
"TOTAL", "ACUMULADO", ""
"TOTAL", "ACUMULADO", "PROMEDIO BOLETAS"
};
private final String[] dias = {"Lunes", "Martes", "Miercoles", "Jueves", "Viernes",
@@ -154,11 +154,15 @@ public class InformeLibroDeVentasToExcel {
);
if (rowCounter == 2) {
dataRow.createCell(cellCounter).setCellFormula(("U" + (rowCounter + 1)));
dataRow.createCell(cellCounter++).setCellFormula(("U" + (rowCounter + 1)));
} else {
dataRow.createCell(cellCounter)
dataRow.createCell(cellCounter++)
.setCellFormula(("U" + (rowCounter + 1)) + ("+") + ("V" + (rowCounter)));
}
dataRow.createCell(cellCounter).setCellFormula(
String.format("J%s/(I%s-H%s)", rowCounter + 1, rowCounter + 1, rowCounter + 1)
);
rowCounter++;
currentDate = currentDate.plusDays(1);
}
@@ -273,6 +277,7 @@ public class InformeLibroDeVentasToExcel {
//Estadisticas
row.getCell(y++).setCellStyle(this.styles.get("money"));
row.getCell(y++).setCellStyle(this.styles.get("money"));
row.getCell(y).setCellStyle(this.styles.get("money"));
}