setup the account hierarchy, cost centre hierarchy, and other data relevant for a General Ledger
More...
|
static GLSetupTDS | LoadLedgerInfo (Int32 ALedgerNumber) |
| returns general ledger information More...
|
|
static GLSetupTDS | LoadLedgerSettings (Int32 ALedgerNumber, out DateTime ACalendarStartDate, out bool ACurrencyChangeAllowed, out bool ACalendarChangeAllowed) |
| returns general ledger settings More...
|
|
static bool | IsCalendarChangeAllowed (Int32 ALedgerNumber) |
| returns true if calendar change is allowed for given ledger More...
|
|
static int | NumberOfAccountingPeriods (Int32 ALedgerNumber) |
| returns number of accounting periods for given ledger More...
|
|
static void | GetActivatedSubsystems (Int32 ALedgerNumber, out bool AAccountsPayableSubsystemActivated, out bool AGiftProcessingSubsystemActivated) |
| Gets the active/deactivated state of the Accounts Payable (AP) subsystem and of the Gift Processing subsystem for a given Ledger. More...
|
|
static bool | IsGiftProcessingSubsystemActivated (Int32 ALedgerNumber, TDataBase ADataBase=null) |
| Returns true if the Gift Processing subsystem is activated for a given Ledger. More...
|
|
static bool | IsAccountsPayableSubsystemActivated (Int32 ALedgerNumber, TDataBase ADataBase=null) |
| Returns true if the Accounts Payable (AP) subsystem is activated for a given Ledger. More...
|
|
static void | ActivateGiftProcessingSubsystem (Int32 ALedgerNumber, Int32 AStartingReceiptNumber, TDataBase ADataBase=null) |
| activate subsystem for gift processing for given ledger More...
|
|
static void | ActivateAccountsPayableSubsystem (Int32 ALedgerNumber) |
| activate subsystem for accounts payable for given ledger More...
|
|
static bool | CanGiftProcessingSubsystemBeDeactivated (Int32 ALedgerNumber) |
| returns true if gift processing subsystem can be deactivated for given ledger More...
|
|
static bool | CanAccountsPayableSubsystemBeDeactivated (Int32 ALedgerNumber) |
| returns true if accounts payable subsystem can be deactivated for given ledger More...
|
|
static bool | DeactivateGiftProcessingSubsystem (Int32 ALedgerNumber) |
| deactivate subsystem for gift processing for given ledger More...
|
|
static bool | DeactivateAccountsPayableSubsystem (Int32 ALedgerNumber) |
| deactivate subsystem for accounts payable for given ledger More...
|
|
static GLSetupTDS | LoadAccountHierarchies (Int32 ALedgerNumber) |
| returns all account hierarchies available for this ledger More...
|
|
static string | LoadAccountHierarchyHtmlCode (Int32 ALedgerNumber, string AAccountHierarchyCode) |
| returns the selected account hierarchy available for this ledger, formatted for the html client More...
|
|
static string | LoadCostCentreHierarchyHtmlCode (Int32 ALedgerNumber) |
| returns the cost centre hierarchy available for this ledger, formatted for the html client More...
|
|
static GLSetupTDS | LoadCostCentreHierarchy (Int32 ALedgerNumber) |
| returns cost centre hierarchy and cost centre details for this ledger More...
|
|
static DataTable | LoadLocalCostCentres (Int32 ALedgerNumber) |
|
static Boolean | LoadCostCentrePartnerLinks (Int32 ALedgerNumber, Int64 APartnerKey, out DataTable APartnerCostCentreTbl, TDataBase ADataBase=null) |
| LoadCostCentrePartnerLinks More...
|
|
static Boolean | CostCentrePartnerLinksExist (Int32 ALedgerNumber, Int64 APartnerKey) |
| LoadCostCentrePartnerLinks More...
|
|
static DataTable | GetLinkedPartners (Int32 ALedgerNumber, String ACostCentreFilter) |
| Get Partners linked to Cost Centres so that I can email reports to them. Extended Dec 2014 to alternatively return a list of email addresses for HOSAs More...
|
|
static void | SaveCostCentrePartnerLinks (Int32 ALedgerNumber, DataTable APartnerCostCentreTbl) |
|
static TSubmitChangesResult | SaveLedgerSettings (Int32 ALedgerNumber, DateTime ACalendarStartDate, ref GLSetupTDS AInspectDS) |
| save general ledger settings More...
|
|
static TSubmitChangesResult | SaveGLSetupTDS (Int32 ALedgerNumber, ref GLSetupTDS AInspectDS, out TVerificationResultCollection AVerificationResult) |
| save modified account hierarchy etc; does not support moving accounts; also used for saving cost centre hierarchy and cost centre details More...
|
|
static Boolean | GetAccountCodeAttributes (Int32 ALedgerNumber, String AAccountCode, out bool ACanBeParent, out bool ACanDelete, out String AMsg) |
| I can add child accounts to this account if it's a summary account, or if there have never been transactions posted to it, and no current budget. More...
|
|
static bool | ExportAccountHierarchy (Int32 ALedgerNumber, string AAccountHierarchyName, out string AHierarchyXml) |
| return a simple XMLDocument (encoded into a string) with the account hierarchy and account details; root account can be calculated (find which account is reporting nowhere) More...
|
|
static bool | ExportAccountHierarchyYml (Int32 ALedgerNumber, string AAccountHierarchyName, out string AHierarchyYml) |
| export account hierarchy as yml string encoded in base64 More...
|
|
static string | ExportCostCentreHierarchy (Int32 ALedgerNumber) |
| return a simple XMLDocument (encoded into a string) with the cost centre hierarchy and cost centre details; More...
|
|
static bool | ExportCostCentreHierarchyYml (Int32 ALedgerNumber, out string AHierarchyYml) |
| export cost centre hierarchy as yml string encoded in base64 More...
|
|
static bool | ImportAccountHierarchy (Int32 ALedgerNumber, string AHierarchyName, string AYmlAccountHierarchy, out TVerificationResultCollection AVerificationResult) |
| only works if there are no balances/transactions yet for the accounts that are deleted More...
|
|
static bool | ImportCostCentreHierarchy (Int32 ALedgerNumber, string AYmlHierarchy, out TVerificationResultCollection VerificationResult) |
| only works if there are no balances/transactions yet for the cost centres that are deleted. Returns false with helpful error message otherwise. More...
|
|
static string | GetLedgerSetupAssistant () |
| Is this user a finance user, but there is no ledger yet? More...
|
|
static bool | CreateSite (ref GLSetupTDS AMainDS, string ALedgerName, Int64 ASiteKey, TDBTransaction ATransaction) |
| create a site so that self sign up works even without a ledger More...
|
|
static bool | GetCountryCodes (out PCountryTable AResultTable) |
| get the country codes More...
|
|
static bool | GetCurrencyCodes (out ACurrencyTable AResultTable) |
| get the currency codes More...
|
|
static bool | CreateNewLedger (Int32 ANewLedgerNumber, String ALedgerName, String ACountryCode, String ABaseCurrency, String AIntlCurrency, DateTime ACalendarStartDate, Int32 ANumberOfAccountingPeriods, Int32 ACurrentPeriod, Int32 ANumberFwdPostingPeriods, bool AWithILT, out TVerificationResultCollection AVerificationResult) |
| create a new ledger and do the initial setup More...
|
|
static bool | ContainsTransactions (Int32 ALedgerNumber) |
| return true if the ledger contains any transactions More...
|
|
static bool | DeleteLedger (Int32 ALedgerNumber, out TVerificationResultCollection AVerificationResult) |
| deletes the complete ledger, with all finance data. useful for testing purposes More...
|
|
static bool | MaintainLedger (string action, Int32 ALedgerNumber, String ALedgerName, string ASepaCreditorName, string ASepaCreditorIban, string ASepaCreditorBic, string ASepaCreditorSchemeId, string AReceiptEmailPublicationCode, out TVerificationResultCollection AVerificationResult) |
| maintain ledger settings More...
|
|
static ALedgerTable | GetAvailableLedgers () |
| get the ledger numbers that are available for the current user More...
|
|
static bool | GetLedgerSystemDefaults (Int32 ALedgerNumber, out String ASepaCreditorName, out String ASepaCreditorIban, out String ASepaCreditorBic, out string ASepaCreditorSchemeId, out String AReceiptEmailPublicationCode) |
| get the sepa creditor and other details of the ledger More...
|
|
static AFreeformAnalysisTable | LoadAFreeformAnalysis (Int32 ALedgerNumber) |
| Load the table AFREEFORMANALSYSIS More...
|
|
static Boolean | CanDetachTypeCodeFromAccount (Int32 ALedgerNumber, String AAccountCode, String ATypeCode, out String AMessage) |
| Check if a AnalysisAttribute Row can be removed from an Account (not if it's in use!) More...
|
|
static int | CheckDeleteAFreeformAnalysis (Int32 ALedgerNumber, String ATypeCode, String AAnalysisValue) |
| Check if a value in AFREEFORMANALSYSIS can be deleted (count the references in ATRansANALATTRIB) More...
|
|
static int | CheckDeleteAAnalysisType (Int32 ALedgerNumber, String ATypeCode) |
| Check if a TypeCode in AnalysisType can be deleted (count the references in ATRansAnalysisAtrributes) More...
|
|
static StringCollection | RequiredAnalysisAttributesForAccount (Int32 ALedgerNumber, String AAccountCode, Boolean AActiveOnly=false) |
| Get a list of Analysis Attributes that must be used with this account. More...
|
|
static bool | AccountHasAnalysisAttributes (Int32 ALedgerNumber, String AAccountCode, out Int32 ANumberOfAttributes, bool AActiveOnly=false) |
| Check if this account code for Ledger ALedgerNumber requires one or more analysis attributes More...
|
|
static bool | AccountHasAnalysisAttributes (Int32 ALedgerNumber, String AAccountCode, bool AActiveOnly=false) |
| Check if this account code for Ledger ALedgerNumber requires one or more analysis attributes More...
|
|
static bool | AccountAnalysisAttributeRequiresValues (Int32 ALedgerNumber, string AAnalysisTypeCode, bool AActiveOnly) |
| Check if this account type code for Ledger ALedgerNumber requires one or more analysis attribute values More...
|
|
static bool | RenameAccountCode (String AOldCode, String ANewCode, Int32 ALedgerNumber, out TVerificationResultCollection AVerificationResults) |
| Use this new account code instead of that old one. THIS RENAMES THE FIELD IN LOTS OF PLACES! More...
|
|
static Boolean | GetCostCentreAttributes (Int32 ALedgerNumber, String ACostCentreCode, out bool ACanBeParent, out bool ACanDelete, out String AMsg) |
| I can add child accounts to this account if it's a summary Cost Centre, or if there have never been transactions posted to it, or if it's linked to a partner. More...
|
|
static bool | RenameCostCentreCode (String AOldCode, String ANewCode, Int32 ALedgerNumber, out TVerificationResultCollection AVerificationResults) |
| Use this new Cost Centre code instead of that old one. THIS RENAMES THE FIELD IN LOTS OF PLACES! More...
|
|
static bool | CheckAccountCanBeMadeForeign (Int32 ALedgerNumber, string AAccountCode) |
| Checks an account can be made a foreign currency account. More...
|
|
static bool | CheckForeignAccountHasBalances (Int32 ALedgerNumber, Int32 AYear, string AAccountCode) |
| Checks if a foreign currency account has no balances. More...
|
|
static bool | ZeroForeignCurrencyBalances (Int32 ALedgerNumber, Int32 AYear, string[] AAccountCode) |
| Makes all foreign currency balances zero for the given account on the given year for all posting cost centres More...
|
|
setup the account hierarchy, cost centre hierarchy, and other data relevant for a General Ledger