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:
@@ -67,6 +67,12 @@ namespace Ophelias.Models
|
||||
{
|
||||
using SQLiteCommand cmd = Manager.con.CreateCommand();
|
||||
cmd.CommandText = QueryBuilder.UpdateGuest(Id, FirstName, LastName, Email, CreditCard, Expiration, CCV);
|
||||
cmd.Parameters.AddWithValue("@Fname", FirstName);
|
||||
cmd.Parameters.AddWithValue("@Lname", LastName);
|
||||
cmd.Parameters.AddWithValue("@Email", Email);
|
||||
cmd.Parameters.AddWithValue("@CreditCard", CreditCard);
|
||||
cmd.Parameters.AddWithValue("@Expiry", Expiration);
|
||||
cmd.Parameters.AddWithValue("@CCV", CCV);
|
||||
cmd.ExecuteNonQuery();
|
||||
}
|
||||
if (FirstName != null)
|
||||
|
||||
Reference in New Issue
Block a user