Class CompanyStructure
Inheritance
CompanyStructure
Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
Syntax
[DataContract]
public class CompanyStructure : BaseEntityWithPermissions, ICompanyStructure, IInheritingObject, IEntitySetBase, IBaseEntityWithPermissions, IHasFolderStructure, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<ICompanyStructure>
Constructors
CompanyStructure()
Declaration
public CompanyStructure()
Properties
CSERoundingDecimalPlaces
Any CSE rounding applied throughout this EntitySet can use this rounding decimal places as default.
0 is the default to indicate no rounding, max is 12 decimal places of rounding
Declaration
[PropertyValidation("true", "MyItem.CSERoundingDecimalPlaces >= 0 && MyItem.CSERoundingDecimalPlaces <= 12", "CSERoundingDecimalPlaces must have a number of decimal places to round to between 0 and 12 inclusive.")]
public short CSERoundingDecimalPlaces { get; set; }
Property Value
Code
[Key] The unique code for this Entity Set
Declaration
[Required]
[Unique]
[StringLength(500)]
public string Code { get; set; }
Property Value
CurrencyID
Links to ICurrency. Any Transactions booked against legal Entities within this Entity Set will use
this currency as the Reporting Currency of those Transactions. This provides a common currency across all
Transactions within the Entity Set that can be used for consolidated reporting.
Declaration
[RequiredNoDefaultIDValidation]
[PropertyValidation("Item.HasTrackedPropertyChanged(nameof(LemonEdge.API.Entities.FinancialServices.LegalEntity.IEntitySet.CurrencyID)) && MyData.HasChange(Item) && MyData.GetChange(Item) != LemonEdge.API.Core.Data.EntityOperation.Insert", "\r\nvar entities = await Data.ExecuteQuery(Data.GetItems<LemonEdge.API.Entities.FinancialServices.LegalEntity.ISetEntity>().Where(nameof(LemonEdge.API.Entities.FinancialServices.LegalEntity.ISetEntity.EntitySetID), LemonEdge.Utils.Database.SQLOperator.Equals, Item.ID));\r\nforeach(var items in entities.Chunk(20))\r\n{\r\n var cnt =(await Data.ExecuteQuery(Data.GetItems<LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting>().Where(nameof(LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting.EntityID), LemonEdge.Utils.Database.SQLOperator.IsContainedIn, items.Select(x => x.EntityID).ToArray()))).Count();\r\n if (cnt > 0) return false;\r\n}\r\nreturn true;\r\n", "You can not change the currency of an entity set 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
ExchangeRateCategoryID
Links to IExchangeRateCategory. The default exchange rate to use for processing transactions in this entity set.
Declaration
public Guid? ExchangeRateCategoryID { get; set; }
Property Value
ExchangeRateCategoryID_Label
Declaration
public string ExchangeRateCategoryID_Label { get; set; }
Property Value
ExchangeRateCategoryID_Label_Silent
Declaration
[NotMapped]
public string ExchangeRateCategoryID_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
Name
The unique name of this entity set
Declaration
[Required]
[Unique(MergeWithAnyOtherUniqueProperties = true)]
[StringLength(500)]
public string Name { get; set; }
Property Value
Links to IPeriodEndTransformation. The default period end transformation to use for processing period ends in this entity set.
Declaration
public Guid? PeriodEndTransformationID { get; set; }
Property Value
Declaration
public string PeriodEndTransformationID_Label { get; set; }
Property Value
Declaration
[NotMapped]
public string PeriodEndTransformationID_Label_Silent { get; set; }
Property Value
RoundingLevel
Any rounding applied throughout this EntitySet can use this rounding level as default.
Declaration
[EnumDataType(typeof(RoundingLevel))]
public RoundingLevel RoundingLevel { get; set; }
Property Value
Declaration
[NotMapped]
public string RoundingLevel_Tooltip { get; set; }
Property Value
UnitRoundingDecimalPlaces
Any unit rounding applied throughout this EntitySet can use this rounding decimal places as default, instruments have their own unit rounding decimal places.
0 is the default to indicate no rounding, max is 12 decimal places of rounding
Declaration
[PropertyValidation("true", "MyItem.UnitRoundingDecimalPlaces >= 0 && MyItem.UnitRoundingDecimalPlaces <= 12", "UnitRoundingDecimalPlaces must have a number of decimal places to round to between 0 and 12 inclusive.")]
public short UnitRoundingDecimalPlaces { get; set; }
Property Value
YearEnd
When processing Period End 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.
Declaration
public DateTimeOffset YearEnd { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(ICompanyStructure)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(ICompanyStructure source)
Parameters
Type |
Name |
Description |
ICompanyStructure |
source |
The source object to copy all values from.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods