Codeunit 6113 Item Data Migration Facade
src/Layers/W1/BaseApp/System/DataMigration/ItemDataMigrationFacade.Codeunit.al52 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 23, trigger
- 28callsCodeunit 6101 Data Migration Status Facade HasMigratedChartOfAccounts
- 31raisesOnMigrateItem
- 32raisesOnMigrateItemTrackingCode
- 33raisesOnMigrateCostingMethod
- 34raisesOnMigrateItemUnitOfMeasure
- 35raisesOnMigrateItemDiscountGroup
- 36raisesOnMigrateItemSalesLineDiscount
- 37raisesOnMigrateItemPrice
- 38raisesOnMigrateItemTariffNo
- 39raisesOnMigrateItemDimensions
- 43raisesOnMigrateItemPostingGroups
- 44raisesOnMigrateInventoryTransactions
CreateItemIfNeeded line 60
- 72validatesTable 27 Item No.
- 73validatesTable 27 Item Description
- 74validatesTable 27 Item Description 2
- 75validatesTable 27 Item Type
- 76writesTable 27 Item Insert(true)
CreateLocationIfNeeded line 83
- 91validatesTable 14 Location Code
- 92validatesTable 14 Location Name
- 93writesTable 14 Location Insert(true)
ModifyItem line 111
- 116writesTable 27 Item Modify
CreateSalesLineDiscountIfNeeded line 119
- 124callsCodeunit 7001 Price Calculation Mgt. IsExtendedPriceCalculationEnabled
- 127callsSalesDiscTypeToSourceType
- 128callsDiscTypeToAssetType
- 140validatesTable 7004 Sales Line Discount Sales Type
- 141validatesTable 7004 Sales Line Discount Sales Code
- 142validatesTable 7004 Sales Line Discount Type
- 143validatesTable 7004 Sales Line Discount Code
- 144validatesTable 7004 Sales Line Discount Line Discount %
- 145writesTable 7004 Sales Line Discount Insert(true)
CreateSalesLineDiscountIfNeeded line 159
- 163callsInitSalesPriceListLine
- 167callsFindPriceListLine
- 169callsInsertPriceListLine
CreateCustDiscGroupIfNeeded line 173
- 181validatesTable 340 Customer Discount Group Code
- 182validatesTable 340 Customer Discount Group Description
- 183writesTable 340 Customer Discount Group Insert(true)
CreateItemDiscGroupIfNeeded line 187
- 195validatesTable 341 Item Discount Group Code
- 196validatesTable 341 Item Discount Group Description
- 197writesTable 341 Item Discount Group Insert(true)
CreateSalesPriceIfNeeded line 201
- 206callsCodeunit 7001 Price Calculation Mgt. IsExtendedPriceCalculationEnabled
- 209callsSalesPriceTypeToSourceType
- 218validatesTable 7002 Sales Price Sales Type
- 219validatesTable 7002 Sales Price Sales Code
- 220validatesTable 7002 Sales Price Item No.
- 221validatesTable 7002 Sales Price Starting Date
- 222validatesTable 7002 Sales Price Currency Code
- 222callsCodeunit 1797 Data Migration Facade Helper FixIfLcyCode
- 223validatesTable 7002 Sales Price Variant Code
- 224validatesTable 7002 Sales Price Unit of Measure Code
- 225validatesTable 7002 Sales Price Minimum Quantity
- 226validatesTable 7002 Sales Price Unit Price
- 228writesTable 7002 Sales Price Insert(true)
CreateSalesPriceIfNeeded line 260
- 264callsInitSalesPriceListLine
- 269callsFindPriceListLine
- 271callsInsertPriceListLine
InitSalesPriceListLine line 275, local
- 278validatesTable 7001 Price List Line Price Type
- 279validatesTable 7001 Price List Line Source Type
- 280validatesTable 7001 Price List Line Source No.
- 281validatesTable 7001 Price List Line Currency Code
- 281callsCodeunit 1797 Data Migration Facade Helper FixIfLcyCode
- 282validatesTable 7001 Price List Line Starting Date
- 283validatesTable 7001 Price List Line Asset Type
- 284validatesTable 7001 Price List Line Asset No.
- 285validatesTable 7001 Price List Line Variant Code
- 286validatesTable 7001 Price List Line Unit of Measure Code
- 287validatesTable 7001 Price List Line Minimum Quantity
InsertPriceListLine line 305, local
- 309callsCodeunit 7009 CopyFromToPriceListLine SetGenerateHeader
- 310callsCodeunit 7009 CopyFromToPriceListLine InitLineNo
- 311writesTable 7001 Price List Line Insert(true)
CreateTariffNumberIfNeeded line 314
- 322validatesTable 260 Tariff Number No.
- 323validatesTable 260 Tariff Number Description
- 324validatesTable 260 Tariff Number Supplementary Units
- 325writesTable 260 Tariff Number Insert(true)
CreateUnitOfMeasureIfNeeded line 329
- 337validatesTable 204 Unit of Measure Code
- 338validatesTable 204 Unit of Measure Description
- 339writesTable 204 Unit of Measure Insert(true)
CreateItemTrackingCodeIfNeeded line 343
- 351validatesTable 6502 Item Tracking Code Code
- 352validatesTable 6502 Item Tracking Code Description
- 353validatesTable 6502 Item Tracking Code Lot Specific Tracking
- 354validatesTable 6502 Item Tracking Code SN Specific Tracking
- 355writesTable 6502 Item Tracking Code Insert(true)
CreateInventoryPostingSetupIfNeeded line 359
- 366validatesTable 94 Inventory Posting Group Code
- 367validatesTable 94 Inventory Posting Group Description
- 368writesTable 94 Inventory Posting Group Insert(true)
- 374validatesTable 5813 Inventory Posting Setup Location Code
- 375validatesTable 5813 Inventory Posting Setup Invt. Posting Group Code
- 376writesTable 5813 Inventory Posting Setup Insert(true)
CreateGeneralProductPostingSetupIfNeeded line 381
- 388validatesTable 251 Gen. Product Posting Group Code
- 389validatesTable 251 Gen. Product Posting Group Description
- 390writesTable 251 Gen. Product Posting Group Insert(true)
- 396validatesTable 252 General Posting Setup Gen. Bus. Posting Group
- 397validatesTable 252 General Posting Setup Gen. Prod. Posting Group
- 398writesTable 252 General Posting Setup Insert(true)
CreateItemJournalBatchIfNeeded line 403
- 408callsCreateItemJournalTemplateIfNeeded
- 415validatesTable 233 Item Journal Batch Journal Template Name
- 416callsTable 233 Item Journal Batch SetupNewBatch
- 417validatesTable 233 Item Journal Batch Name
- 418validatesTable 233 Item Journal Batch Description
- 421writesTable 233 Item Journal Batch Insert(true)
CreateItemJournalTemplateIfNeeded line 425, local
- 433validatesTable 82 Item Journal Template Name
- 434validatesTable 82 Item Journal Template Type
- 435validatesTable 82 Item Journal Template Recurring
- 436writesTable 82 Item Journal Template Insert(true)
CreateItemJournalLine line 441
- 448callsCreateItemJournalTemplateIfNeeded
- 459validatesTable 83 Item Journal Line Journal Template Name
- 460validatesTable 83 Item Journal Line Journal Batch Name
- 461validatesTable 83 Item Journal Line Line No.
- 462validatesTable 83 Item Journal Line Entry Type
- 463validatesTable 83 Item Journal Line Document No.
- 464validatesTable 83 Item Journal Line Item No.
- 465validatesTable 83 Item Journal Line Location Code
- 466validatesTable 83 Item Journal Line Description
- 467validatesTable 83 Item Journal Line Document Date
- 468validatesTable 83 Item Journal Line Posting Date
- 469validatesTable 83 Item Journal Line Quantity
- 470validatesTable 83 Item Journal Line Amount
- 471validatesTable 83 Item Journal Line Gen. Bus. Posting Group
- 472validatesTable 83 Item Journal Line Gen. Prod. Posting Group
- 473writesTable 83 Item Journal Line Insert(true)
SetItemJournalLineItemTracking line 479
CreateItemTracking line 488, local
- 495callsCodeunit 99000830 Create Reserv. Entry CreateReservEntryFor
- 506callsCodeunit 99000830 Create Reserv. Entry CreateEntry
SetItemJournalLineDimension line 514
- 521validatesTable 83 Item Journal Line Dimension Set ID
- 522callsCodeunit 1797 Data Migration Facade Helper CreateDimensionSetId
- 525writesTable 83 Item Journal Line Modify(true)
CreateDefaultDimensionAndRequirementsIfNeeded line 528
- 536callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimension
- 537callsCodeunit 1797 Data Migration Facade Helper GetOrCreateDimensionValue
- 538callsCodeunit 1797 Data Migration Facade Helper CreateOnlyDefaultDimensionIfNeeded
CreateBOMComponent line 541
- 556validatesTable 90 BOM Component Parent Item No.
- 557validatesTable 90 BOM Component Line No.
- 558validatesTable 90 BOM Component Type
- 559validatesTable 90 BOM Component No.
- 560validatesTable 90 BOM Component Quantity per
- 561validatesTable 90 BOM Component Position
- 562writesTable 90 BOM Component Insert(true)
SetItemTrackingCode line 565
- 570validatesTable 27 Item Item Tracking Code
SetBaseUnitOfMeasure line 573
- 578validatesTable 27 Item Base Unit of Measure
SetPurchUnitOfMeasure line 581
- 590validatesTable 5404 Item Unit of Measure Item No.
- 591validatesTable 5404 Item Unit of Measure Code
- 592validatesTable 5404 Item Unit of Measure Qty. per Unit of Measure
- 593writesTable 5404 Item Unit of Measure Insert
- 596validatesTable 27 Item Purch. Unit of Measure
SetItemDiscGroup line 599
- 604validatesTable 27 Item Item Disc. Group
SetTariffNo line 607
- 612validatesTable 27 Item Tariff No.
SetCostingMethod line 615
- 620validatesTable 27 Item Costing Method
SetUnitCost line 623
- 628validatesTable 27 Item Unit Cost
SetStandardCost line 631
- 636validatesTable 27 Item Standard Cost
SetVendorItemNo line 639
- 644validatesTable 27 Item Vendor Item No.
SetNetWeight line 647
- 652validatesTable 27 Item Net Weight
SetUnitVolume line 655
- 660validatesTable 27 Item Unit Volume
SetBlocked line 663
- 668validatesTable 27 Item Blocked
SetStockoutWarning line 671
- 677validatesTable 27 Item Stockout Warning
- 679validatesTable 27 Item Stockout Warning
SetPreventNegativeInventory line 682
- 688validatesTable 27 Item Prevent Negative Inventory
- 690validatesTable 27 Item Prevent Negative Inventory
SetReorderQuantity line 693
- 698validatesTable 27 Item Reorder Quantity
SetAlternativeItemNo line 701
- 706validatesTable 27 Item Alternative Item No.
SetVendorNo line 709
- 719validatesTable 27 Item Vendor No.
SetUnitPrice line 724
- 729validatesTable 27 Item Unit Price
SetUnitListPrice line 732
- 737validatesTable 27 Item Unit List Price
SetLastDateModified line 740
- 745validatesTable 27 Item Last Date Modified
SetLastModifiedDateTime line 748
- 753validatesTable 27 Item Last DateTime Modified
CreateCustomerPriceGroupIfNeeded line 756
- 758callsCodeunit 1797 Data Migration Facade Helper CreateCustomerPriceGroupIfNeeded
SetInventoryPostingSetupInventoryAccount line 761
- 766validatesTable 5813 Inventory Posting Setup Inventory Account
- 767writesTable 5813 Inventory Posting Setup Modify(true)
SetGeneralPostingSetupInventoryAdjmntAccount line 770
- 775validatesTable 252 General Posting Setup Inventory Adjmt. Account
- 776writesTable 252 General Posting Setup Modify(true)
SetInventoryPostingGroup line 779
- 789validatesTable 27 Item Inventory Posting Group
SetGeneralProductPostingGroup line 794
- 804validatesTable 27 Item Gen. Prod. Posting Group
SetSearchDescription line 809
- 814validatesTable 27 Item Search Description