IO format fixes and implemented res payment

This is a small commit to include the feature for paying for a
reservation, specifically only the 60-day-in-advance reservation type as
the others are paid for at specific periods. Other fixes include just
some formatting for reports.
This commit is contained in:
雲華
2022-04-16 13:59:27 -04:00
parent f75a384d0a
commit 989a4dd65c
5 changed files with 146 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ namespace Ophelias.Reporting
entries.Add($"{r.Guest.LastName}, {r.Guest.FirstName}\t{r.Type}\t{roominfo}\t{r.EndDate}");
}
string report = $"DAILY ARRIVAL REPORT - GENERATED ON {DateTime.Now.Date.ToString("yyyy-MM-dd")}\n" +
$"Last, First\tType\tRoom\tDeparture" +
$"Last, First\tType\tRoom\tDeparture\n" +
$"{string.Join("\n", entries)}\n\n";
File.AppendAllText(Path.GetFullPath("DailyArrivals.txt"), report);