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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user