SMall work on attestation loc
This commit is contained in:
@@ -134,9 +134,6 @@ namespace Swarmops.Database
|
||||
}
|
||||
|
||||
|
||||
// TODO: SetCashAdvanceAttested
|
||||
|
||||
|
||||
public void SetCashAdvanceOpen(int cashAdvanceId, bool open)
|
||||
{
|
||||
using (DbConnection connection = GetMySqlDbConnection())
|
||||
@@ -154,6 +151,25 @@ namespace Swarmops.Database
|
||||
}
|
||||
|
||||
|
||||
public void SetCashAdvanceAttested(int cashAdvanceId, bool attested, int attestedByPersonId)
|
||||
{
|
||||
using (DbConnection connection = GetMySqlDbConnection())
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
DbCommand command = GetDbCommand("SetCashAdvanceAttested", connection);
|
||||
command.CommandType = CommandType.StoredProcedure;
|
||||
|
||||
AddParameterWithName(command, "cashAdvanceId", cashAdvanceId);
|
||||
AddParameterWithName(command, "attested", attested);
|
||||
AddParameterWithName(command, "attestedByPersonId", attestedByPersonId);
|
||||
AddParameterWithName(command, "attestedDateTime", DateTime.Now);
|
||||
|
||||
command.ExecuteNonQuery();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SetCashAdvancePaidOut(int cashAdvanceId, bool paidOut)
|
||||
{
|
||||
using (DbConnection connection = GetMySqlDbConnection())
|
||||
|
||||
Reference in New Issue
Block a user