Housekeeping to FinancialTransactionRows
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Swarmops.Database
|
||||
/// </summary>
|
||||
public static int DbVersionExpected
|
||||
{
|
||||
get { return 42; }
|
||||
get { return 43; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -990,7 +990,7 @@ namespace Swarmops.Database
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
DbCommand command = GetDbCommand ("CreateFinancialTransactionRowPrecise", connection);
|
||||
DbCommand command = GetDbCommand ("CreateFinancialTransactionRow", connection);
|
||||
command.CommandType = CommandType.StoredProcedure;
|
||||
|
||||
AddParameterWithName (command, "financialTransactionId", financialTransactionId);
|
||||
|
||||
@@ -39,4 +39,5 @@
|
||||
0039 - VatReport.Guid added [RF]
|
||||
0040 - Document.HiresStatus added [RF]
|
||||
0041 - InboundInvoice housekeeping; added OrgSeqId [RF]
|
||||
0042 - Bugfix to SetInboundInvoiceOrganizationSequenceId [RF]
|
||||
0042 - Bugfix to SetInboundInvoiceOrganizationSequenceId [RF]
|
||||
0043 - FinancialTransactionRows housekeeping [RF]
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
ALTER TABLE `FinancialTransactionRows`
|
||||
DROP COLUMN `Amount`
|
||||
|
||||
|
||||
#
|
||||
|
||||
|
||||
DROP PROCEDURE IF EXIST `CreateFinancialTransactionRow`
|
||||
|
||||
|
||||
#
|
||||
|
||||
|
||||
DROP PROCEDURE IF EXIST `CreateFinancialTransactionRowPrecise`
|
||||
|
||||
|
||||
#
|
||||
|
||||
|
||||
CREATE PROCEDURE `CreateFinancialTransactionRow`(
|
||||
IN financialTransactionId INTEGER,
|
||||
IN financialAccountId INTEGER,
|
||||
IN amountCents BIGINT,
|
||||
IN dateTime DATETIME,
|
||||
IN personId INTEGER
|
||||
)
|
||||
BEGIN
|
||||
|
||||
INSERT INTO FinancialTransactionRows (FinancialAccountId, FinancialTransactionId, AmountCents, CreatedDateTime, CreatedByPersonId)
|
||||
VALUES (financialAccountId, financialTransactionid, amountCents, dateTime, personId);
|
||||
|
||||
SELECT LAST_INSERT_ID() AS Identity;
|
||||
|
||||
END
|
||||
Reference in New Issue
Block a user