partial void OnLegalEntityChanging(global::Microsoft.Dynamics.DataEntities.LegalEntity value);
public static MainAccountCompany CreateMainAccountCompany(string mainAccountId, string legalEntityId, global::Microsoft.Dynamics.DataEntities.LegalEntity legalEntity) { MainAccountCompany mainAccountCompany = new MainAccountCompany(); mainAccountCompany.MainAccountId = mainAccountId; mainAccountCompany.LegalEntityId = legalEntityId; if ((legalEntity == null)) { throw new global::System.ArgumentNullException("legalEntity"); } mainAccountCompany.LegalEntity = legalEntity; return(mainAccountCompany); }
public static RegulatoryEstablishmentDetail CreateRegulatoryEstablishmentDetail(string regulatoryEstablishmentId, string legalEntityId, global::Microsoft.Dynamics.DataEntities.LegalEntity legalEntity, global::Microsoft.Dynamics.DataEntities.RegulatoryEstablishment regulatoryEstablishment) { RegulatoryEstablishmentDetail regulatoryEstablishmentDetail = new RegulatoryEstablishmentDetail(); regulatoryEstablishmentDetail.RegulatoryEstablishmentId = regulatoryEstablishmentId; regulatoryEstablishmentDetail.LegalEntityId = legalEntityId; if ((legalEntity == null)) { throw new global::System.ArgumentNullException("legalEntity"); } regulatoryEstablishmentDetail.LegalEntity = legalEntity; if ((regulatoryEstablishment == null)) { throw new global::System.ArgumentNullException("regulatoryEstablishment"); } regulatoryEstablishmentDetail.RegulatoryEstablishment = regulatoryEstablishment; return(regulatoryEstablishmentDetail); }
partial void OnLedgerReportingCurrencyAdjustmentJournalLineCompanyChanging(global::Microsoft.Dynamics.DataEntities.LegalEntity value);
public static LegalEntityContact CreateLegalEntityContact(string description, string locator, string dataArea, global::Microsoft.Dynamics.DataEntities.LegalEntity legalEntity) { LegalEntityContact legalEntityContact = new LegalEntityContact(); legalEntityContact.Description = description; legalEntityContact.Locator = locator; legalEntityContact.DataArea = dataArea; if ((legalEntity == null)) { throw new global::System.ArgumentNullException("legalEntity"); } legalEntityContact.LegalEntity = legalEntity; return(legalEntityContact); }