fixed totalPrice calculation
This commit is contained in:
parent
35d4789088
commit
5d39a70e5b
@ -24,7 +24,7 @@ public class TicketPrinter {
|
||||
receipt.append("=====================================================\n");
|
||||
|
||||
receipt.append("Ticket ID: ").append(getNextId()).append("\n");
|
||||
saveCounter();
|
||||
|
||||
receipt.append("Date: ").append(currentDate).append("\n");
|
||||
receipt.append("From: ").append(departures.getFirst().getFrom()).append("\n");
|
||||
receipt.append("To: ").append(departures.getLast().getTo()).append("\n");
|
||||
@ -48,7 +48,7 @@ public class TicketPrinter {
|
||||
receipt.append("=====================================================\n");
|
||||
receipt.append("Thank you for choosing our service!\n");
|
||||
folderExists();
|
||||
|
||||
saveCounter();
|
||||
writeReceipt(receipt.toString());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user