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:
@@ -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
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace Ophelias.Models
|
||||
{
|
||||
return PaymentStatus.MissingCreditCard;
|
||||
}
|
||||
if (Amount >= Owed)
|
||||
if (AmountPaid >= Owed)
|
||||
{
|
||||
return PaymentStatus.AlreadyPaid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user