Class Person
Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
Syntax
[DataContract]
public class Person : BaseEntityWithPermissions, IPerson, IInheritingObject, IObjectEntityBase, IBaseEntityWithPermissions, IHasFolderStructure, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IPerson>
Constructors
Person()
Declaration
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
CanBeCounterparty
Indicates if this object entity can act as a counterparty to transactions in the system
Declaration
public bool CanBeCounterparty { get; set; }
Property Value
CanOwnInstruments
Indicates if this object entity can own financial instruments
Declaration
public bool CanOwnInstruments { get; set; }
Property Value
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
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
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
DomicileID
Links to IDomicile. The domicile this person is located within
Declaration
public Guid? DomicileID { get; set; }
Property Value
DomicileID_Label
Declaration
public string DomicileID_Label { get; set; }
Property Value
DomicileID_Label_Silent
Declaration
[NotMapped]
public string DomicileID_Label_Silent { get; set; }
Property Value
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
ExchangeRateCategoryOverrideID_Label
Declaration
public string ExchangeRateCategoryOverrideID_Label { get; set; }
Property Value
ExchangeRateCategoryOverrideID_Label_Silent
Declaration
[NotMapped]
public string ExchangeRateCategoryOverrideID_Label_Silent { 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
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
LegalName
The legal name of this object entity
Declaration
[StringLength(500)]
public string LegalName { get; set; }
Property Value
Name
The unique name of this entity.
Declaration
[Required]
[StringLength(500)]
public string Name { get; set; }
Property Value
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
ReportingCurrencyOverrideID_Label
Declaration
public string ReportingCurrencyOverrideID_Label { get; set; }
Property Value
ReportingCurrencyOverrideID_Label_Silent
Declaration
[NotMapped]
public string ReportingCurrencyOverrideID_Label_Silent { get; set; }
Property Value
TypeID
Declaration
public Guid? TypeID { get; set; }
Property Value
TypeID_Label
Declaration
public string TypeID_Label { get; set; }
Property Value
TypeID_Label_Silent
Declaration
[NotMapped]
public string TypeID_Label_Silent { get; set; }
Property Value
UserLinkID
Links to IUser. The user this person is linked to
Declaration
public Guid? UserLinkID { get; set; }
Property Value
UserLinkID_Label
Declaration
public string UserLinkID_Label { get; set; }
Property Value
UserLinkID_Label_Silent
Declaration
[NotMapped]
public string UserLinkID_Label_Silent { get; set; }
Property Value
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
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(IPerson)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(IPerson source)
Parameters
Type |
Name |
Description |
IPerson |
source |
The source object to copy all values from.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods