Codeunit "GL Acc. Data Migration Facade"

ID 6110
Namespace: System.Integration

Properties

Name Value
TableNo Table System.Integration."Data Migration Parameters"

Methods

ModifyGLAccount

procedure ModifyGLAccount(RunTrigger: Boolean)

Parameters

Name Type Description
RunTrigger Boolean

CreateGLAccountIfNeeded

procedure CreateGLAccountIfNeeded(AccountNoToSet: Code[20], AccountNameToSet: Text[50], AccountTypeToSet: Option): Boolean

Parameters

Name Type Description
AccountNoToSet Code[20]
AccountNameToSet Text[50]
AccountTypeToSet Option

Returns

Type Description
Boolean

CreateGeneralPostingSetupIfNeeded

procedure CreateGeneralPostingSetupIfNeeded(GeneralPostingGroupCode: Code[10])

Parameters

Name Type Description
GeneralPostingGroupCode Code[10]

CreateGenProductPostingGroupIfNeeded

procedure CreateGenProductPostingGroupIfNeeded(PostingGroupCode: Code[20], PostingGroupDescription: Text[50])

Parameters

Name Type Description
PostingGroupCode Code[20]
PostingGroupDescription Text[50]

CreateGenBusinessPostingGroupIfNeeded

procedure CreateGenBusinessPostingGroupIfNeeded(PostingGroupCode: Code[20], PostingGroupDescription: Text[50])

Parameters

Name Type Description
PostingGroupCode Code[20]
PostingGroupDescription Text[50]

CreateGeneralJournalLine

procedure CreateGeneralJournalLine(GeneralJournalBatchCode: Code[10], DocumentNo: Code[20], Description: Text[50], PostingDate: Date, DueDate: Date, Amount: Decimal, AmountLCY: Decimal, Currency: Code[10], BalancingAccount: Code[20])

Parameters

Name Type Description
GeneralJournalBatchCode Code[10]
DocumentNo Code[20]
Description Text[50]
PostingDate Date
DueDate Date
Amount Decimal
AmountLCY Decimal
Currency Code[10]
BalancingAccount Code[20]

CreateGeneralJournalBatchIfNeeded

procedure CreateGeneralJournalBatchIfNeeded(GeneralJournalBatchCode: Code[10], NoSeriesCode: Code[20], PostingNoSeriesCode: Code[20])

Parameters

Name Type Description
GeneralJournalBatchCode Code[10]
NoSeriesCode Code[20]
PostingNoSeriesCode Code[20]

SetGlobalGLAccount

procedure SetGlobalGLAccount(GLAccountNo: Code[20]): Boolean

Parameters

Name Type Description
GLAccountNo Code[20]

Returns

Type Description
Boolean

SetIncomeBalanceType

procedure SetIncomeBalanceType(IncomeBalanceTypeToSet: Option)

Parameters

Name Type Description
IncomeBalanceTypeToSet Option

SetTotaling

procedure SetTotaling(TotalingToSet: Text[250])

Parameters

Name Type Description
TotalingToSet Text[250]

SetDebitCreditType

procedure SetDebitCreditType(DebitCreditTypeToSet: Option)

Parameters

Name Type Description
DebitCreditTypeToSet Option

SetExchangeRateAdjustmentType

procedure SetExchangeRateAdjustmentType(ExchangeRateAdjustmentTypeToSet: Option)

Parameters

Name Type Description
ExchangeRateAdjustmentTypeToSet Option

SetDirectPosting

procedure SetDirectPosting(DirectPostingToSet: Boolean)

Parameters

Name Type Description
DirectPostingToSet Boolean

SetBlocked

procedure SetBlocked(BlockedToSet: Boolean)

Parameters

Name Type Description
BlockedToSet Boolean

SetLastModifiedDateTime

procedure SetLastModifiedDateTime(LastModifiedDateTimeToSet: DateTime)

Parameters

Name Type Description
LastModifiedDateTimeToSet DateTime

SetLastDateModified

procedure SetLastDateModified(LastDateModifiedToSet: Date)

Parameters

Name Type Description
LastDateModifiedToSet Date

SetAccountCategory

procedure SetAccountCategory(AccountCategoryToSet: Option)

Parameters

Name Type Description
AccountCategoryToSet Option

SetAccountSubCategory

procedure SetAccountSubCategory(AccountSubCategoryToSet: Integer)

Parameters

Name Type Description
AccountSubCategoryToSet Integer

SetGeneralPostingSetupSalesAccount

procedure SetGeneralPostingSetupSalesAccount(GeneralPostingSetupCode: Code[20], SalesAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
SalesAccount Code[20]

SetGeneralPostingSetupSalesLineDiscAccount

procedure SetGeneralPostingSetupSalesLineDiscAccount(GeneralPostingSetupCode: Code[20], SalesLineDiscAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
SalesLineDiscAccount Code[20]

SetGeneralPostingSetupSalesInvDiscAccount

procedure SetGeneralPostingSetupSalesInvDiscAccount(GeneralPostingSetupCode: Code[20], SalesInvDiscAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
SalesInvDiscAccount Code[20]

SetGeneralPostingSetupSalesPmtDiscDebitAccount

procedure SetGeneralPostingSetupSalesPmtDiscDebitAccount(GeneralPostingSetupCode: Code[20], SalesPmtDiscDebitAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
SalesPmtDiscDebitAccount Code[20]

SetGeneralPostingSetupPurchAccount

procedure SetGeneralPostingSetupPurchAccount(GeneralPostingSetupCode: Code[20], PurchAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
PurchAccount Code[20]

SetGeneralPostingSetupPurchLineDiscAccount

procedure SetGeneralPostingSetupPurchLineDiscAccount(GeneralPostingSetupCode: Code[20], PurchLineDiscAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
PurchLineDiscAccount Code[20]

SetGeneralPostingSetupPurchInvDiscAccount

procedure SetGeneralPostingSetupPurchInvDiscAccount(GeneralPostingSetupCode: Code[20], PurchInvDiscAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
PurchInvDiscAccount Code[20]

SetGeneralPostingSetupPurchCreditMemoAccount

procedure SetGeneralPostingSetupPurchCreditMemoAccount(GeneralPostingSetupCode: Code[20], PurchCreditMemoAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
PurchCreditMemoAccount Code[20]

SetGeneralPostingSetupCOGSAccount

procedure SetGeneralPostingSetupCOGSAccount(GeneralPostingSetupCode: Code[20], CogsAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
CogsAccount Code[20]

SetGeneralPostingSetupInventoryAdjmtAccount

procedure SetGeneralPostingSetupInventoryAdjmtAccount(GeneralPostingSetupCode: Code[20], InventoryAdjmtAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
InventoryAdjmtAccount Code[20]

SetGeneralPostingSetupSalesCreditMemoAccount

procedure SetGeneralPostingSetupSalesCreditMemoAccount(GeneralPostingSetupCode: Code[20], SalesCreditMemoAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
SalesCreditMemoAccount Code[20]

SetGeneralPostingSetupPurchPmtDiscDebitAccount

procedure SetGeneralPostingSetupPurchPmtDiscDebitAccount(GeneralPostingSetupCode: Code[20], PurchPmtDiscDebitAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
PurchPmtDiscDebitAccount Code[20]

SetGeneralPostingSetupPurchPrepaymentsAccount

procedure SetGeneralPostingSetupPurchPrepaymentsAccount(GeneralPostingSetupCode: Code[20], PurchPrepaymentsAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
PurchPrepaymentsAccount Code[20]

SetGeneralPostingSetupPurchaseVarianceAccount

procedure SetGeneralPostingSetupPurchaseVarianceAccount(GeneralPostingSetupCode: Code[20], PurchaseVarianceAccount: Code[20])

Parameters

Name Type Description
GeneralPostingSetupCode Code[20]
PurchaseVarianceAccount Code[20]

CreateDefaultDimensionAndRequirementsIfNeeded

procedure CreateDefaultDimensionAndRequirementsIfNeeded(DimensionCode: Text[20], DimensionDescription: Text[50], DimensionValueCode: Code[20], DimensionValueName: Text[50])

Parameters

Name Type Description
DimensionCode Text[20]
DimensionDescription Text[50]
DimensionValueCode Code[20]
DimensionValueName Text[50]

SetGeneralJournalLineDimension

procedure SetGeneralJournalLineDimension(var GenJournalLine: Record "Gen. Journal Line", DimensionCode: Code[20], DimensionDescription: Text[50], DimensionValueCode: Code[20], DimensionValueName: Text[50])

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
DimensionCode Code[20]
DimensionDescription Text[50]
DimensionValueCode Code[20]
DimensionValueName Text[50]

Events

OnMigrateGlAccount

[IntegrationEvent(True,False)]
local procedure OnMigrateGlAccount(RecordIdToMigrate: RecordId)

Parameters

Name Type Description
RecordIdToMigrate RecordId

OnCreateOpeningBalanceTrx

[IntegrationEvent(True,False)]
local procedure OnCreateOpeningBalanceTrx(RecordIdToMigrate: RecordId)

Parameters

Name Type Description
RecordIdToMigrate RecordId

OnMigratePostingGroups

[IntegrationEvent(True,False)]
local procedure OnMigratePostingGroups(RecordIdToMigrate: RecordId)

Parameters

Name Type Description
RecordIdToMigrate RecordId

OnMigrateAccountTransactions

[IntegrationEvent(True,False)]
local procedure OnMigrateAccountTransactions(RecordIdToMigrate: RecordId)

Parameters

Name Type Description
RecordIdToMigrate RecordId

OnMigrateGlAccountDimensions

[IntegrationEvent(True,False)]
local procedure OnMigrateGlAccountDimensions(RecordIdToMigrate: RecordId)

Parameters

Name Type Description
RecordIdToMigrate RecordId

See also