Added financial transaction tags; changed 2-D bookkeeping to tags

This commit is contained in:
Rick Falkvinge
2013-10-29 19:28:17 +00:00
parent 8472167b79
commit d82b34dafa
20 changed files with 574 additions and 123 deletions
@@ -8,17 +8,18 @@ namespace Swarmops.Basic.Types.Financial
{
public class BasicFinancialTransactionTagSet: IHasIdentity
{
public BasicFinancialTransactionTagSet (int financialTransactionTagSetId, int financialTransactionTagSetTypeId, int organizationId, int order, bool allowUntagged)
public BasicFinancialTransactionTagSet (int financialTransactionTagSetId, int financialTransactionTagSetTypeId, int organizationId, int order, bool allowUntagged, int profitLossType)
{
this.FinancialTransactionTagSetId = financialTransactionTagSetId;
this.FinancialTransactionTagSetTypeId = financialTransactionTagSetTypeId;
this.OrganizationId = organizationId;
this.Order = order;
this.AllowUntagged = allowUntagged;
this.ProfitLossType = profitLossType;
}
public BasicFinancialTransactionTagSet (BasicFinancialTransactionTagSet original):
this (original.FinancialTransactionTagSetId, original.FinancialTransactionTagSetTypeId, original.OrganizationId, original.Order, original.AllowUntagged)
this (original.FinancialTransactionTagSetId, original.FinancialTransactionTagSetTypeId, original.OrganizationId, original.Order, original.AllowUntagged, original.ProfitLossType)
{
// copy ctor
}
@@ -28,6 +29,7 @@ namespace Swarmops.Basic.Types.Financial
public int OrganizationId { get; private set; }
public int Order { get; protected set; }
public bool AllowUntagged { get; protected set; }
public int ProfitLossType { get; protected set; }
#region Implementation of IHasIdentity