Ejemplo n.º 1
0
 public void EditChartofAccount(int accountNumber
                                , Name name
                                , int parentId
                                , ChartofAccounts parent
                                , ICollection <ChartofAccounts> children
                                , AccountType accountType
                                , AccountGroup accountGroup
                                , AccountOrigin accountOrigin
                                , Currency currency
                                , EntityStatus status)
 {
     AccountNumber = accountNumber;
     Name          = name;
     Parent_Id     = parentId;
     Parent        = parent;
     Children      = children;
     AccountType   = accountType;
     AccountOrigin = accountOrigin;
     AccountGroup  = accountGroup;
     Currency      = currency;
     Modified      = DateTime.UtcNow;
     Status        = status;
 }
Ejemplo n.º 2
0
 public ChartofAccounts(int accountNumber
                        , Name name
                        , int parent_Id
                        , ChartofAccounts parent
                        , ICollection <ChartofAccounts> children
                        , AccountType accountType
                        , AccountGroup accountGroup
                        , AccountOrigin accountOrigin
                        , Currency currency
                        , DateTime created
                        , EntityStatus status = EntityStatus.Active)
 {
     AccountNumber = accountNumber;
     Name          = name;
     Parent_Id     = parent_Id;
     Parent        = parent;
     Children      = children;
     AccountType   = accountType;
     AccountGroup  = accountGroup;
     AccountOrigin = accountOrigin;
     Currency      = currency;
     Created       = created == DateTime.MinValue ? DateTime.UtcNow : created;
     Status        = status;
 }