Fix composite parser arguments
This commit is contained in:
parent
e50b25567f
commit
8d75f2cb48
|
@ -36,6 +36,20 @@ public class Parser {
|
|||
public double transferNightTotal = 0.0;
|
||||
public int transferNightKwh = 0;
|
||||
public double tax = 0.0;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Period{" +
|
||||
"basicPay=" + basicPay +
|
||||
", transferDayPrice=" + transferDayPrice +
|
||||
", transferDayTotal=" + transferDayTotal +
|
||||
", transferDayKwh=" + transferDayKwh +
|
||||
", transferNightPrice=" + transferNightPrice +
|
||||
", transferNightTotal=" + transferNightTotal +
|
||||
", transferNightKwh=" + transferNightKwh +
|
||||
", tax=" + tax +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -9,8 +9,8 @@ import java.util.stream.Collectors;
|
|||
public class CarunaHelenParser {
|
||||
|
||||
public static void main(String[] args) {
|
||||
var carunaFile = Path.of("/home/john/Downloads/caruna-lasku.pdf");
|
||||
var helenFile = Path.of("/home/john/Downloads/helen-lasku.pdf");
|
||||
var carunaFile = Path.of(args[0]);
|
||||
var helenFile = Path.of(args[1]);
|
||||
|
||||
var carunaPeriods = com.devsoap.parsers.caruna.Parser.parse(carunaFile);
|
||||
var nightSiirto = carunaPeriods.entrySet().stream()
|
||||
|
|
Loading…
Reference in New Issue