Search Results for

    Show / Hide Table of Contents

    Class Company

    Inheritance
    object
    BaseEntity
    BaseEntityWithPermissions
    Company
    Implements
    ICompany
    IInheritingObject
    IObjectEntityBase
    IBaseEntityWithPermissions
    IHasFolderStructure
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<ICompany>
    Inherited Members
    BaseEntityWithPermissions.IsLocked(object)
    BaseEntityWithPermissions.CanWriteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.PreLoadPermissions<T>(IEnumerable<T>, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanDeleteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanChangeItemPermissions(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntity.HISTORY_ENDROWUPDATE_COLNAME
    BaseEntity.HasTrackedPropertyChanged(string)
    BaseEntity.OriginalTrackedPropertyValue(string)
    BaseEntity.OriginalTrackedPropertyValue<T>(string)
    BaseEntity.ClearTrackedOriginalValues()
    BaseEntity.GetAllOriginalTrackedPropertyValues()
    BaseEntity.GetLabel(string)
    BaseEntity.SetLabel(string, string)
    BaseEntity.SetSilentLabel(string, string)
    BaseEntity.ResetChangedTrackedPropertiesToOriginalValues()
    BaseEntity.AddTrackedOriginalValue(string, object)
    BaseEntity.SnapshotProperties()
    BaseEntity.RestoreFromSnapshot(Dictionary<string, object>)
    BaseEntity.IsBasePropertyName(string)
    BaseEntity.IsBaseRelationshipID(string)
    BaseEntity.OnPropertyChanging(string)
    BaseEntity.OnPropertyChanged(string)
    BaseEntity.Equals(IBaseEntity)
    BaseEntity.GetHashCode()
    BaseEntity.Equals(object)
    BaseEntity.Clone(object)
    BaseEntity.CopyFromSource(object)
    BaseEntity.TrackChanges
    BaseEntity.ModifiedByUserID_Label
    BaseEntity.ModifiedByUserID_Label_Silent
    BaseEntity.CanvasID_Label
    BaseEntity.CanvasID_Label_Silent
    BaseEntity.AlgorithmStepID_Label
    BaseEntity.AlgorithmStepID_Label_Silent
    BaseEntity.SafeID_Label
    BaseEntity.SafeID_Label_Silent
    BaseEntity.AccountID
    BaseEntity.ID
    BaseEntity.LastUpdated
    BaseEntity.ModifiedByUserID
    BaseEntity.CanvasID
    BaseEntity.AlgorithmStepID
    BaseEntity.SafeID
    BaseEntity.PropertyChanged
    BaseEntity.PropertyChanging
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Entities.FinancialServices.LegalEntity
    Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
    Syntax
    [DataContract]
    public class Company : BaseEntityWithPermissions, ICompany, IInheritingObject, IObjectEntityBase, IBaseEntityWithPermissions, IHasFolderStructure, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<ICompany>

    Constructors

    Company()

    Declaration
    public Company()

    Properties

    AllowRuleAllocations

    Indicates if this object entity can be allocated to in Allocation Rules. If it can then it can belong as part of an Entity Structure within an Entity Set. Typically if an object entity can be part of an Allocation Rule, it will also have a GL.

    Declaration
    public bool AllowRuleAllocations { get; set; }
    Property Value
    Type Description
    bool

    CanBeCounterparty

    Indicates if this object entity can act as a counterparty to transactions in the system

    Declaration
    public bool CanBeCounterparty { get; set; }
    Property Value
    Type Description
    bool

    CanOwnInstruments

    Indicates if this object entity can own financial instruments

    Declaration
    public bool CanOwnInstruments { get; set; }
    Property Value
    Type Description
    bool

    Code

    The unique code of this entity.

    Part of the key for this entity

    Declaration
    [Unique(MergeWithAnyOtherUniqueProperties = true)]
    [Required]
    [StringLength(150)]
    public string Code { get; set; }
    Property Value
    Type Description
    string

    CurrencyID

    Links to ICurrency. The currency this object entity operates in.

    When used in a transaction this would be the functional currency for the transaction

    Declaration
    [RequiredNoDefaultIDValidation]
    [PropertyValidation("Item.HasTrackedPropertyChanged(nameof(LemonEdge.API.Entities.FinancialServices.LegalEntity.IObjectEntity.CurrencyID)) && MyData.HasChange(Item) && MyData.GetChange(Item) != LemonEdge.API.Core.Data.EntityOperation.Insert", "(await Data.ExecuteQuery(Data.GetItems<LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting>().Where(nameof(LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting.EntityID), LemonEdge.Utils.Database.SQLOperator.Equals, Item.ID))).Count() == 0", "You can not change the currency of an entity if it has existing gl postings against it. You have to delete those first.")]
    public Guid CurrencyID { get; set; }
    Property Value
    Type Description
    Guid

    CurrencyID_Label

    Declaration
    public string CurrencyID_Label { get; set; }
    Property Value
    Type Description
    string

    CurrencyID_Label_Silent

    Declaration
    [NotMapped]
    public string CurrencyID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    DomicileID

    Links to IDomicile. The domicile for the company

    Declaration
    public Guid? DomicileID { get; set; }
    Property Value
    Type Description
    Guid?

    DomicileID_Label

    Declaration
    public string DomicileID_Label { get; set; }
    Property Value
    Type Description
    string

    DomicileID_Label_Silent

    Declaration
    [NotMapped]
    public string DomicileID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    ExchangeRateCategoryOverrideID

    Links to IExchangeRateCategory. The overridden exchange rate to use for processing transactions in this entity set.

    Declaration
    public Guid? ExchangeRateCategoryOverrideID { get; set; }
    Property Value
    Type Description
    Guid?

    ExchangeRateCategoryOverrideID_Label

    Declaration
    public string ExchangeRateCategoryOverrideID_Label { get; set; }
    Property Value
    Type Description
    string

    ExchangeRateCategoryOverrideID_Label_Silent

    Declaration
    [NotMapped]
    public string ExchangeRateCategoryOverrideID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    FolderID

    The link to the folder this item is contained in

    Declaration
    public Guid? FolderID { get; set; }
    Property Value
    Type Description
    Guid?

    FolderID_Label

    Declaration
    public string FolderID_Label { get; set; }
    Property Value
    Type Description
    string

    FolderID_Label_Silent

    Declaration
    [NotMapped]
    public string FolderID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    HasGL

    Indicates if this object entity has a GL. If it does then it can have Transactions booked against it, and will have Period Closing functionality.

    Declaration
    public bool HasGL { get; set; }
    Property Value
    Type Description
    bool

    IndustryID

    Links to IIndustry. The industry for the company

    Declaration
    public Guid? IndustryID { get; set; }
    Property Value
    Type Description
    Guid?

    IndustryID_Label

    Declaration
    public string IndustryID_Label { get; set; }
    Property Value
    Type Description
    string

    IndustryID_Label_Silent

    Declaration
    [NotMapped]
    public string IndustryID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    LegalName

    The legal name of this object entity

    Declaration
    [StringLength(500)]
    public string LegalName { get; set; }
    Property Value
    Type Description
    string

    Name

    The unique name of this entity.

    Declaration
    [Required]
    [StringLength(500)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    ReportingCurrencyOverrideID

    Links to ICurrency. The reporting overridden currency this object entity operates in.

    When used in a transaction this would be the functional currency for the transaction

    Declaration
    [PropertyValidation("Item.HasTrackedPropertyChanged(nameof(LemonEdge.API.Entities.FinancialServices.LegalEntity.IObjectEntity.ReportingCurrencyOverrideID)) && MyData.HasChange(Item) && MyData.GetChange(Item) != LemonEdge.API.Core.Data.EntityOperation.Insert", "(await Data.ExecuteQuery(Data.GetItems<LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting>().Where(nameof(LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting.EntityID), LemonEdge.Utils.Database.SQLOperator.Equals, Item.ID))).Count() == 0", "You can not change the reporting currency of an entity if it has existing gl postings against it. You have to delete those first.")]
    public Guid? ReportingCurrencyOverrideID { get; set; }
    Property Value
    Type Description
    Guid?

    ReportingCurrencyOverrideID_Label

    Declaration
    public string ReportingCurrencyOverrideID_Label { get; set; }
    Property Value
    Type Description
    string

    ReportingCurrencyOverrideID_Label_Silent

    Declaration
    [NotMapped]
    public string ReportingCurrencyOverrideID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    TypeID

    Declaration
    public Guid? TypeID { get; set; }
    Property Value
    Type Description
    Guid?

    TypeID_Label

    Declaration
    public string TypeID_Label { get; set; }
    Property Value
    Type Description
    string

    TypeID_Label_Silent

    Declaration
    [NotMapped]
    public string TypeID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    YearEnd

    When processing GLPostings retained earnings calculations the calculations are done on a year to date basis. This Year End is used to determine the last Year End closing balances, and which transactions to look at going forward that participate within the current year. Only the month/day component is used the year depends on the context.

    Declaration
    public DateTimeOffset? YearEnd { get; set; }
    Property Value
    Type Description
    DateTimeOffset?

    Methods

    CopyFromEntity(IBaseEntity)

    Declaration
    protected override void CopyFromEntity(IBaseEntity src)
    Parameters
    Type Name Description
    IBaseEntity src
    Overrides
    BaseEntity.CopyFromEntity(IBaseEntity)

    CopyFromSource(ICompany)

    Updates all properties in this item to have the same properties as the source object.

    Declaration
    public void CopyFromSource(ICompany source)
    Parameters
    Type Name Description
    ICompany source

    The source object to copy all values from.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    ICompany
    IInheritingObject
    IObjectEntityBase
    IBaseEntityWithPermissions
    IHasFolderStructure
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<T>

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.