Codeunit 6111 Vendor Data Migration Facade

Base Application, System.Integration

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

OnRun line 12, trigger

  1. 17callsCodeunit 6101 Data Migration Status Facade HasMigratedChartOfAccounts
  2. 20raisesOnMigrateVendor
  3. 21raisesOnMigrateVendorDimensions
  4. 24raisesOnMigrateVendorPostingGroups
  5. 25raisesOnMigrateVendorTransactions

CreateVendorIfNeeded line 51

  1. 62validatesTable 23 Vendor No.
  2. 63validatesTable 23 Vendor Name
  3. 65writesTable 23 Vendor Insert(true)

CreatePostingSetupIfNeeded line 72

  1. 78validatesTable 93 Vendor Posting Group Code
  2. 79validatesTable 93 Vendor Posting Group Description
  3. 80validatesTable 93 Vendor Posting Group Payables Account
  4. 81writesTable 93 Vendor Posting Group Insert(true)
  5. 84validatesTable 93 Vendor Posting Group Payables Account
  6. 85writesTable 93 Vendor Posting Group Modify(true)

CreateGeneralJournalBatchIfNeeded line 89

  1. 91callsCodeunit 1797 Data Migration Facade Helper CreateGeneralJournalBatchIfNeeded

CreateGeneralJournalLine line 94

  1. 96callsCodeunit 1797 Data Migration Facade Helper CreateGeneralJournalLine

SetGeneralJournalLineDimension line 111

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

SetGeneralJournalLineDocumentType line 125

  1. 130validatesTable 81 Gen. Journal Line Document Type
  2. 131writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLineBalAccountNo line 134

  1. 139validatesTable 81 Gen. Journal Line Bal. Account No.
  2. 140writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLineSourceCode line 143

  1. 148validatesTable 81 Gen. Journal Line Source Code
  2. 149writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLineExternalDocumentNo line 152

  1. 157validatesTable 81 Gen. Journal Line External Document No.
  2. 158writesTable 81 Gen. Journal Line Modify(true)

SetGeneralJournalLinePaymentTerms line 161

  1. 166validatesTable 81 Gen. Journal Line Payment Terms Code
  2. 167writesTable 81 Gen. Journal Line Modify(true)

ModifyVendor line 176

  1. 181writesTable 23 Vendor Modify

SetSearchName line 184

  1. 189validatesTable 23 Vendor Search Name

SetAddress line 192

  1. 197validatesTable 23 Vendor Address
  2. 198validatesTable 23 Vendor Address 2
  3. 199validatesTable 23 Vendor Country/Region Code
  4. 200validatesTable 23 Vendor Post Code
  5. 201validatesTable 23 Vendor City

SetPhoneNo line 204

  1. 209validatesTable 23 Vendor Phone No.

SetTelexNo line 212

  1. 217validatesTable 23 Vendor Telex No.

SetOurAccountNo line 220

  1. 225validatesTable 23 Vendor Our Account No.

SetCurrencyCode line 228

  1. 233validatesTable 23 Vendor Currency Code
  2. 233callsCodeunit 1797 Data Migration Facade Helper FixIfLcyCode

SetLanguageCode line 236

  1. 241validatesTable 23 Vendor Language Code

SetPaymentTermsCode line 244

  1. 249validatesTable 23 Vendor Payment Terms Code

SetPaymentMethod line 252

  1. 257validatesTable 23 Vendor Payment Method Code

SetPurchaserCode line 260

  1. 265validatesTable 23 Vendor Purchaser Code

SetShipmentMethodCode line 268

  1. 273validatesTable 23 Vendor Shipment Method Code

SetInvoiceDiscCode line 276

  1. 281validatesTable 23 Vendor Invoice Disc. Code

SetBlocked line 284

  1. 289validatesTable 23 Vendor Blocked

SetFaxNo line 292

  1. 297validatesTable 23 Vendor Fax No.

SetVATRegistrationNo line 300

  1. 305validatesTable 23 Vendor VAT Registration No.

SetHomePage line 308

  1. 313validatesTable 23 Vendor Home Page

SetPayToVendorNo line 316

  1. 321validatesTable 23 Vendor Pay-to Vendor No.

SetContact line 324

  1. 329validatesTable 23 Vendor Contact

SetLastDateModified line 332

  1. 337validatesTable 23 Vendor Last Date Modified

SetLastModifiedDateTime line 340

  1. 345validatesTable 23 Vendor Last Modified Date Time

SetVendorPostingGroup line 348

  1. 358validatesTable 23 Vendor Vendor Posting Group

SetGenBusPostingGroup line 363

  1. 373validatesTable 23 Vendor Gen. Bus. Posting Group

SetEmail line 378

  1. 383validatesTable 23 Vendor E-Mail

SetName2 line 386

  1. 391validatesTable 23 Vendor Name 2

SetTaxLiable line 394

  1. 399validatesTable 23 Vendor Tax Liable

SetTaxAreaCode line 402

  1. 407validatesTable 23 Vendor Tax Area Code

CreateDefaultDimensionAndRequirementsIfNeeded line 417

  1. 425callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimension
  2. 426callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimensionValue
  3. 428callsCodeunit 1797 Data Migration Facade Helper CreateOnlyDefaultDimensionIfNeeded

CreateShipmentMethodIfNeeded line 432

  1. 434callsCodeunit 1797 Data Migration Facade Helper CreateShipmentMethodIfNeeded

CreateSalespersonPurchaserIfNeeded line 437

  1. 439callsCodeunit 1797 Data Migration Facade Helper CreateSalespersonPurchaserIfNeeded

CreatePaymentTermsIfNeeded line 442

  1. 444callsCodeunit 1797 Data Migration Facade Helper CreatePaymentTermsIfNeeded

CreatePaymentMethodIfNeeded line 447

  1. 449callsCodeunit 1797 Data Migration Facade Helper CreatePaymentMethodIfNeeded

CreateVendorInvoiceDiscountIfNeeded line 452

  1. 460validatesTable 24 Vendor Invoice Disc. Code
  2. 461validatesTable 24 Vendor Invoice Disc. Currency Code
  3. 462validatesTable 24 Vendor Invoice Disc. Minimum Amount
  4. 463validatesTable 24 Vendor Invoice Disc. Discount %
  5. 464writesTable 24 Vendor Invoice Disc. Insert(true)

CreateTaxAreaIfNeeded line 468

  1. 470callsCodeunit 1797 Data Migration Facade Helper CreateTaxAreaIfNeeded

DoesPostCodeExist line 473

  1. 475callsCodeunit 1797 Data Migration Facade Helper DoesPostCodeExist

CreatePostCodeIfNeeded line 478

  1. 480callsCodeunit 1797 Data Migration Facade Helper CreatePostCodeIfNeeded

CreateCountryIfNeeded line 483

  1. 485callsCodeunit 1797 Data Migration Facade Helper CreateCountryIfNeeded

SearchCountry line 488

  1. 490callsCodeunit 1797 Data Migration Facade Helper SearchCountry

SearchLanguage line 494

  1. 496callsCodeunit 1797 Data Migration Facade Helper SearchLanguage

SetVendorPostingGroupAccounts line 509

  1. 516validatesTable 93 Vendor Posting Group Payables Account
  2. 517validatesTable 93 Vendor Posting Group Service Charge Acc.
  3. 518validatesTable 93 Vendor Posting Group Payment Disc. Debit Acc.
  4. 519validatesTable 93 Vendor Posting Group Invoice Rounding Account
  5. 520validatesTable 93 Vendor Posting Group Debit Curr. Appln. Rndg. Acc.
  6. 521validatesTable 93 Vendor Posting Group Credit Curr. Appln. Rndg. Acc.
  7. 522validatesTable 93 Vendor Posting Group Debit Rounding Account
  8. 523validatesTable 93 Vendor Posting Group Credit Rounding Account
  9. 524validatesTable 93 Vendor Posting Group Payment Disc. Credit Acc.
  10. 525validatesTable 93 Vendor Posting Group Payment Tolerance Debit Acc.
  11. 526validatesTable 93 Vendor Posting Group Payment Tolerance Credit Acc.
  12. 527writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupServiceChargeAcc line 530

  1. 537validatesTable 93 Vendor Posting Group Service Charge Acc.
  2. 538writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupPaymentDiscDebitAcc line 541

  1. 548validatesTable 93 Vendor Posting Group Payment Disc. Debit Acc.
  2. 549writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupInvoiceRoundingAccount line 552

  1. 559validatesTable 93 Vendor Posting Group Invoice Rounding Account
  2. 560writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupDebitCurrApplnRndgAcc line 563

  1. 570validatesTable 93 Vendor Posting Group Debit Curr. Appln. Rndg. Acc.
  2. 571writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupCreditCurrApplnRndgAcc line 574

  1. 581validatesTable 93 Vendor Posting Group Credit Curr. Appln. Rndg. Acc.
  2. 582writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupDebitRoundingAccount line 585

  1. 592validatesTable 93 Vendor Posting Group Debit Rounding Account
  2. 593writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupCreditRoundingAccount line 596

  1. 603validatesTable 93 Vendor Posting Group Credit Rounding Account
  2. 604writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupPaymentDiscCreditAcc line 607

  1. 614validatesTable 93 Vendor Posting Group Payment Disc. Credit Acc.
  2. 615writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupPaymentToleranceDebitAcc line 618

  1. 625validatesTable 93 Vendor Posting Group Payment Tolerance Debit Acc.
  2. 626writesTable 93 Vendor Posting Group Modify(true)

SetVendorPostingGroupPaymentToleranceCreditAcc line 629

  1. 636validatesTable 93 Vendor Posting Group Payment Tolerance Credit Acc.
  2. 637writesTable 93 Vendor Posting Group Modify(true)

SetVendorAlternativeContact line 640

  1. 645callsCodeunit 1797 Data Migration Facade Helper SetAlternativeContact