Codeunit 6110 GL Acc. Data Migration Facade

Base Application, System.Integration

src/Layers/W1/BaseApp/System/DataMigration/GLAccDataMigrationFacade.Codeunit.al34 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 12, trigger

  1. 16raisesOnMigrateGlAccount
  2. 17raisesOnMigrateGlAccountDimensions
  3. 18raisesOnCreateOpeningBalanceTrx
  4. 19raisesOnMigratePostingGroups
  5. 20raisesOnMigrateAccountTransactions

ModifyGLAccount line 53

  1. 58writesTable 15 G/L Account Modify

CreateGLAccountIfNeeded line 61

  1. 73validatesTable 15 G/L Account No.
  2. 74validatesTable 15 G/L Account Name
  3. 75validatesTable 15 G/L Account Account Type
  4. 77writesTable 15 G/L Account Insert(true)

CreateGeneralPostingSetupIfNeeded line 84

  1. 90validatesTable 252 General Posting Setup Gen. Bus. Posting Group
  2. 91validatesTable 252 General Posting Setup Gen. Prod. Posting Group
  3. 92writesTable 252 General Posting Setup Insert(true)
  4. 98validatesTable 252 General Posting Setup Gen. Bus. Posting Group
  5. 99validatesTable 252 General Posting Setup Gen. Prod. Posting Group
  6. 100writesTable 252 General Posting Setup Insert(true)

CreateGenProductPostingGroupIfNeeded line 104

  1. 112validatesTable 251 Gen. Product Posting Group Code
  2. 113validatesTable 251 Gen. Product Posting Group Description
  3. 114validatesTable 251 Gen. Product Posting Group Auto Insert Default
  4. 115writesTable 251 Gen. Product Posting Group Insert(true)

CreateGenBusinessPostingGroupIfNeeded line 118

  1. 126validatesTable 250 Gen. Business Posting Group Code
  2. 127validatesTable 250 Gen. Business Posting Group Description
  3. 128validatesTable 250 Gen. Business Posting Group Auto Insert Default
  4. 129writesTable 250 Gen. Business Posting Group Insert(true)

CreateGeneralJournalLine line 132

  1. 134callsCodeunit 1797 Data Migration Facade Helper CreateGeneralJournalLine

CreateGeneralJournalBatchIfNeeded line 149

  1. 151callsCodeunit 1797 Data Migration Facade Helper CreateGeneralJournalBatchIfNeeded

SetIncomeBalanceType line 163

  1. 168validatesTable 15 G/L Account Income/Balance

SetTotaling line 171

  1. 176validatesTable 15 G/L Account Totaling

SetDebitCreditType line 179

  1. 184validatesTable 15 G/L Account Debit/Credit

SetExchangeRateAdjustmentType line 187

  1. 192validatesTable 15 G/L Account Exchange Rate Adjustment

SetDirectPosting line 195

  1. 200validatesTable 15 G/L Account Direct Posting

SetBlocked line 203

  1. 208validatesTable 15 G/L Account Blocked

SetLastModifiedDateTime line 211

  1. 216validatesTable 15 G/L Account Last Modified Date Time

SetLastDateModified line 219

  1. 224validatesTable 15 G/L Account Last Date Modified

SetAccountCategory line 227

  1. 232validatesTable 15 G/L Account Account Category

SetAccountSubCategory line 235

  1. 240validatesTable 15 G/L Account Account Subcategory Entry No.

SetGeneralPostingSetupSalesAccount line 243

  1. 250validatesTable 252 General Posting Setup Sales Account
  2. 251writesTable 252 General Posting Setup Modify(true)
  3. 257validatesTable 252 General Posting Setup Sales Account
  4. 258writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupSalesLineDiscAccount line 261

  1. 268validatesTable 252 General Posting Setup Sales Line Disc. Account
  2. 269writesTable 252 General Posting Setup Modify(true)
  3. 275validatesTable 252 General Posting Setup Sales Line Disc. Account
  4. 276writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupSalesInvDiscAccount line 279

  1. 286validatesTable 252 General Posting Setup Sales Inv. Disc. Account
  2. 287writesTable 252 General Posting Setup Modify(true)
  3. 293validatesTable 252 General Posting Setup Sales Inv. Disc. Account
  4. 294writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupSalesPmtDiscDebitAccount line 297

  1. 304validatesTable 252 General Posting Setup Sales Pmt. Disc. Debit Acc.
  2. 305writesTable 252 General Posting Setup Modify(true)
  3. 311validatesTable 252 General Posting Setup Sales Pmt. Disc. Debit Acc.
  4. 312writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupPurchAccount line 315

  1. 322validatesTable 252 General Posting Setup Purch. Account
  2. 323writesTable 252 General Posting Setup Modify(true)
  3. 329validatesTable 252 General Posting Setup Purch. Account
  4. 330writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupPurchLineDiscAccount line 333

  1. 340validatesTable 252 General Posting Setup Purch. Line Disc. Account
  2. 341writesTable 252 General Posting Setup Modify(true)
  3. 347validatesTable 252 General Posting Setup Purch. Line Disc. Account
  4. 348writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupPurchInvDiscAccount line 351

  1. 358validatesTable 252 General Posting Setup Purch. Inv. Disc. Account
  2. 359writesTable 252 General Posting Setup Modify(true)
  3. 365validatesTable 252 General Posting Setup Purch. Inv. Disc. Account
  4. 366writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupPurchCreditMemoAccount line 369

  1. 376validatesTable 252 General Posting Setup Purch. Credit Memo Account
  2. 377writesTable 252 General Posting Setup Modify(true)
  3. 383validatesTable 252 General Posting Setup Purch. Credit Memo Account
  4. 384writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupCOGSAccount line 387

  1. 394validatesTable 252 General Posting Setup COGS Account
  2. 395writesTable 252 General Posting Setup Modify(true)
  3. 401validatesTable 252 General Posting Setup COGS Account
  4. 402writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupInventoryAdjmtAccount line 405

  1. 412validatesTable 252 General Posting Setup Inventory Adjmt. Account
  2. 413writesTable 252 General Posting Setup Modify(true)
  3. 419validatesTable 252 General Posting Setup Inventory Adjmt. Account
  4. 420writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupSalesCreditMemoAccount line 423

  1. 430validatesTable 252 General Posting Setup Sales Credit Memo Account
  2. 431writesTable 252 General Posting Setup Modify(true)
  3. 437validatesTable 252 General Posting Setup Sales Credit Memo Account
  4. 438writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupPurchPmtDiscDebitAccount line 441

  1. 448validatesTable 252 General Posting Setup Purch. Pmt. Disc. Debit Acc.
  2. 449writesTable 252 General Posting Setup Modify(true)
  3. 455validatesTable 252 General Posting Setup Purch. Pmt. Disc. Debit Acc.
  4. 456writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupPurchPrepaymentsAccount line 459

  1. 466validatesTable 252 General Posting Setup Purch. Prepayments Account
  2. 467writesTable 252 General Posting Setup Modify(true)
  3. 473validatesTable 252 General Posting Setup Purch. Prepayments Account
  4. 474writesTable 252 General Posting Setup Modify(true)

SetGeneralPostingSetupPurchaseVarianceAccount line 477

  1. 484validatesTable 252 General Posting Setup Purchase Variance Account
  2. 485writesTable 252 General Posting Setup Modify(true)
  3. 491validatesTable 252 General Posting Setup Purchase Variance Account
  4. 492writesTable 252 General Posting Setup Modify(true)

CreateDefaultDimensionAndRequirementsIfNeeded line 500

  1. 508callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimension
  2. 509callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimensionValue
  3. 511callsCodeunit 1797 Data Migration Facade Helper CreateOnlyDefaultDimensionIfNeeded

SetGeneralJournalLineDimension line 515

  1. 519validatesTable 81 Gen. Journal Line Dimension Set ID
  2. 520callsCodeunit 1797 Data Migration Facade Helper CreateDimensionSetId
  3. 523writesTable 81 Gen. Journal Line Modify(true)