Class GLAccount
Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
Syntax
[DataContract]
[DatabaseClassValidation(typeof(GLAccountValidation), "ValidateObject")]
public class GLAccount : BaseEntityWithPermissions, IGLAccount, IBaseEntityWithPermissions, IHasFolderStructure, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ISetCopier, ICloneableAsync<IGLAccount>
Constructors
GLAccount()
Declaration
Properties
BankAccountNumber
A unique bank account ID for this gl account.
Declaration
[StringLength(100)]
public string BankAccountNumber { get; set; }
Property Value
BankAccountOwningEntityID
The entity this bank account is owned by.
Declaration
[PropertyValidation("MyItem.BankAccountOwningEntityID.HasValue && MyItem.BankAccountOwningEntityID.Value != System.Guid.Empty", "MyItem.Type == LemonEdge.API.Entities.FinancialServices.Accounting.GLAccountType.BankAccount", "You can only set the entity that owns this account if the type is set to BankAccount.")]
public Guid? BankAccountOwningEntityID { get; set; }
Property Value
BankAccountOwningEntityID_Label
Declaration
public string BankAccountOwningEntityID_Label { get; set; }
Property Value
BankAccountOwningEntityID_Label_Silent
Declaration
[NotMapped]
public string BankAccountOwningEntityID_Label_Silent { get; set; }
Property Value
BankID
Declaration
public Guid? BankID { get; set; }
Property Value
BankID_Label
Declaration
public string BankID_Label { get; set; }
Property Value
BankID_Label_Silent
Declaration
[NotMapped]
public string BankID_Label_Silent { get; set; }
Property Value
ChartID
Declaration
[Unique(MergeWithAnyOtherUniqueProperties = true)]
public Guid? ChartID { get; set; }
Property Value
ChartID_Label
Declaration
public string ChartID_Label { get; set; }
Property Value
ChartID_Label_Silent
Declaration
[NotMapped]
public string ChartID_Label_Silent { get; set; }
Property Value
Code
[Key] A short code for this gl account.
Declaration
[Unique(MergeWithAnyOtherUniqueProperties = true)]
[StringLength(50)]
public string Code { get; set; }
Property Value
CurrencyID
Declaration
public Guid? CurrencyID { get; set; }
Property Value
CurrencyID_Label
Declaration
public string CurrencyID_Label { get; set; }
Property Value
CurrencyID_Label_Silent
Declaration
[NotMapped]
public string CurrencyID_Label_Silent { get; set; }
Property Value
DeactivationDate
Declaration
public DateTimeOffset? DeactivationDate { get; set; }
Property Value
FolderID
The link to the folder this item is contained in
Declaration
public Guid? FolderID { get; set; }
Property Value
FolderID_Label
Declaration
public string FolderID_Label { get; set; }
Property Value
FolderID_Label_Silent
Declaration
[NotMapped]
public string FolderID_Label_Silent { get; set; }
Property Value
Name
The unique name of this account
Declaration
[Required]
[StringLength(500)]
public string Name { get; set; }
Property Value
NaturalBalance
The natural balance of this GL Account. Not used in any Transaction processing, purely notional for reporting.
Declaration
[EnumDataType(typeof(GLAccountNaturalBalance))]
public GLAccountNaturalBalance NaturalBalance { get; set; }
Property Value
Declaration
[NotMapped]
public string NaturalBalance_Tooltip { get; set; }
Property Value
ParentGLAccountID
Declaration
public Guid? ParentGLAccountID { get; set; }
Property Value
ParentGLAccountID_Label
Declaration
public string ParentGLAccountID_Label { get; set; }
Property Value
ParentGLAccountID_Label_Silent
Declaration
[NotMapped]
public string ParentGLAccountID_Label_Silent { get; set; }
Property Value
PeriodEndStatus
Holds a status that can be used in period end reporting
Declaration
[EnumDataType(typeof(TransactionCodePeriodEndStatus))]
public TransactionCodePeriodEndStatus PeriodEndStatus { get; set; }
Property Value
Declaration
[NotMapped]
public string PeriodEndStatus_Tooltip { get; set; }
Property Value
Type
The type of this GL Account. Not used in any Transaction processing, purely notional for reporting.
Declaration
[EnumDataType(typeof(GLAccountType))]
public GLAccountType Type { get; set; }
Property Value
Declaration
[NotMapped]
public string Type_Tooltip { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(IGLAccount)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(IGLAccount source)
Parameters
Type |
Name |
Description |
IGLAccount |
source |
The source object to copy all values from.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods