This commit is contained in:
2025-09-29 16:46:10 -04:00
parent 6cabfec4e9
commit 0a9f014392
32 changed files with 69 additions and 53 deletions

View File

@@ -1,6 +1,6 @@
/**
* license: GPLv3
* lodge.reservationsystem
reservationsystem
*/
package lodge.datamodel;
@@ -227,7 +227,7 @@ public abstract class Reservation implements IReservation{
// @TODO write reservation out in json
public void Write(Reservation reservation) throws IOException {
String dataRoot = DataRepository.getPath();
dataRoot = dataRoot + "/rsv-" + reservation.reservation_number + ".json";
dataRoot = dataRoot + "/res-" + reservation.reservation_number + ".json";
Path path = Paths.get(dataRoot);
try (BufferedWriter writer = Files.newBufferedWriter(path, StandardCharsets.UTF_8)) {