Added issue penalties function

This commit adds another piece of functinality allowing the staff to
issue penalties. This currently just charges users for their owed amount
and there are no actual penalty fees. The design document did not call
for that. There is also some documentation that was written. The next
several set of commits are likely to be documentation.
This commit is contained in:
雲華
2022-04-16 15:28:06 -04:00
parent 989a4dd65c
commit 972a968994
4 changed files with 52 additions and 14 deletions

View File

@@ -188,6 +188,16 @@ namespace Ophelias.Models
cmd.ExecuteNonQuery();
}
}
if (Type == ReservationType.Conventional && _DateChanged.Date >= StartDate.AddDays(-3).Date)
{
Transaction.Pay(Transaction.Owed, Guest.CreditCard);
} else if (Type == ReservationType.Incentive && _DateChanged.Date >= StartDate.AddDays(-3).Date)
{
Transaction.Pay(Transaction.Owed, Guest.CreditCard);
} else if (_DateChanged.Date > StartDate.Date)
{
Transaction.Pay(Transaction.Owed, Guest.CreditCard);
}
}
}
internal enum ReservationStatus