Adding new dbcall
This commit is contained in:
@@ -966,7 +966,7 @@ namespace Swarmops.Database
|
||||
}
|
||||
|
||||
public int CreateFinancialTransactionStub (int organizationId, DateTime dateTime, int financialAccountId,
|
||||
Int64 amountCents, string comment, string importHash, int personId)
|
||||
Int64 amountCents, string comment, string importHash, string importSha256, int personId)
|
||||
{
|
||||
using (DbConnection connection = GetMySqlDbConnection())
|
||||
{
|
||||
@@ -979,8 +979,9 @@ namespace Swarmops.Database
|
||||
AddParameterWithName (command, "organizationId", organizationId);
|
||||
AddParameterWithName (command, "financialAccountId", financialAccountId);
|
||||
AddParameterWithName (command, "comment", comment);
|
||||
AddParameterWithName (command, "importHash", importHash);
|
||||
AddParameterWithName (command, "amountCents", amountCents);
|
||||
AddParameterWithName(command, "importHash", importHash);
|
||||
AddParameterWithName(command, "importSha256", importSha256);
|
||||
AddParameterWithName(command, "amountCents", amountCents);
|
||||
AddParameterWithName (command, "personId", personId);
|
||||
|
||||
return Convert.ToInt32 (command.ExecuteScalar());
|
||||
|
||||
@@ -51,12 +51,12 @@ namespace Swarmops.Logic.Financial
|
||||
|
||||
|
||||
public static FinancialTransaction ImportWithStub (int organizationId, DateTime dateTime, int financialAccountId,
|
||||
Int64 amountCents, string description, string importHash, int personId)
|
||||
Int64 amountCents, string description, string importHash, string importSha256, int personId)
|
||||
{
|
||||
int transactionId = SwarmDb.GetDatabaseForWriting()
|
||||
.CreateFinancialTransactionStub (organizationId, dateTime,
|
||||
financialAccountId, amountCents,
|
||||
description, importHash, personId);
|
||||
description, importHash, importSha256, personId);
|
||||
|
||||
if (transactionId <= 0)
|
||||
{
|
||||
|
||||
@@ -182,7 +182,7 @@ namespace Swarmops.Utility.Financial
|
||||
|
||||
transaction = FinancialTransaction.ImportWithStub (organization.Identity, row.DateTime,
|
||||
payPalAccount.Identity, amountCents,
|
||||
row.Comment, importKey,
|
||||
row.Comment, importKey, "" /* new SHA256 field */,
|
||||
importingPerson.Identity);
|
||||
result.ImportedTransactionCount++;
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace Swarmops.Utility.Financial
|
||||
|
||||
transaction = FinancialTransaction.ImportWithStub (organization.Identity, row.DateTime,
|
||||
paysonAccount.Identity, amountCents,
|
||||
row.Comment, importKey,
|
||||
row.Comment, importKey, "" /* new SHA256 field */,
|
||||
importingPerson.Identity);
|
||||
result.ImportedTransactionCount++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user