Codeunit 132212 Library - Patterns

Application Test Library

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryPatterns.Codeunit.al39 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

POSTItemJournalLineWithApplication line 25

  1. 30callsCodeunit 132201 Library - Inventory CreateItemJournalBatchByType
  2. 31callsCodeunit 132201 Library - Inventory CreateItemJournalLineWithApplication
  3. 33callsCodeunit 132201 Library - Inventory PostItemJournalBatch

POSTNegativeAdjustmentWithItemTracking line 36

  1. 43callsCodeunit 132201 Library - Inventory CreateItemJournalBatchByType
  2. 44callsCodeunit 132201 Library - Inventory CreateItemJournalLine
  3. 46callsCodeunit 130502 Library - Item Tracking CreateItemJournalLineItemTracking
  4. 47callsCodeunit 132201 Library - Inventory PostItemJournalBatch

POSTNegativeAdjustmentAmount line 50

  1. 56callsCodeunit 132201 Library - Inventory CreateItemJournalBatchByType
  2. 57callsCodeunit 132201 Library - Inventory CreateItemJournalLine
  3. 59validatesTable 83 Item Journal Line Amount
  4. 60writesTable 83 Item Journal Line Modify
  5. 61callsCodeunit 132201 Library - Inventory PostItemJournalBatch

POSTPositiveAdjustmentAmount line 64

  1. 70callsCodeunit 132201 Library - Inventory CreateItemJournalBatchByType
  2. 71callsCodeunit 132201 Library - Inventory CreateItemJournalLine
  3. 73validatesTable 83 Item Journal Line Amount
  4. 74writesTable 83 Item Journal Line Modify
  5. 75callsCodeunit 132201 Library - Inventory PostItemJournalBatch

SETInventorySetup line 78

  1. 85validatesTable 313 Inventory Setup Automatic Cost Adjustment
  2. 86validatesTable 313 Inventory Setup Average Cost Calc. Type
  3. 87validatesTable 313 Inventory Setup Average Cost Period
  4. 88writesTable 313 Inventory Setup Modify

SETNoSeries line 91

  1. 103callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
  2. 107validatesTable 313 Inventory Setup Item Nos.
  3. 108writesTable 313 Inventory Setup Modify
  4. 111validatesTable 313 Inventory Setup Transfer Order Nos.
  5. 112writesTable 313 Inventory Setup Modify
  6. 120writesTable 99000765 Manufacturing Setup Modify
  7. 124writesTable 99000765 Manufacturing Setup Modify
  8. 128writesTable 99000765 Manufacturing Setup Modify
  9. 132writesTable 99000765 Manufacturing Setup Modify
  10. 140writesTable 311 Sales & Receivables Setup Modify
  11. 144writesTable 311 Sales & Receivables Setup Modify
  12. 148writesTable 311 Sales & Receivables Setup Modify
  13. 152writesTable 311 Sales & Receivables Setup Modify
  14. 156writesTable 311 Sales & Receivables Setup Modify
  15. 160writesTable 311 Sales & Receivables Setup Modify
  16. 166writesTable 5079 Marketing Setup Modify

GRPH1Outbound1Purchase line 170, local

  1. 180callsCodeunit 130440 Library - Random RandInt
  2. 181callsCodeunit 132201 Library - Inventory PostNegativeAdjustment
  3. 182callsCodeunit 130440 Library - Random RandDec
  4. 183callsInsertTempILEFromLast
  5. 185callsCodeunit 130512 Library - Purchase PostPurchaseOrder
  6. 187callsCodeunit 130440 Library - Random RandIntInRange
  7. 187callsCodeunit 130440 Library - Random RandInt
  8. 188callsCodeunit 130440 Library - Random RandDec
  9. 189callsInsertTempILEFromLast
  10. 191callsCodeunit 130512 Library - Purchase CreatePurchaseOrder
  11. 192callsCodeunit 130440 Library - Random RandInt
  12. 193callsCodeunit 130440 Library - Random RandDec

GRPH1Outbound1PurchRcvd line 196

  1. 198callsGRPH1Outbound1Purchase

GRPH1Outbound1PurchInvd line 201

  1. 203callsGRPH1Outbound1Purchase

GRPHPurchPartialRcvd1PurchReturn line 206

  1. 217callsCodeunit 130440 Library - Random RandIntInRange
  2. 218callsCodeunit 130512 Library - Purchase CreatePurchaseOrder
  3. 219callsCodeunit 130440 Library - Random RandDec
  4. 220validatesTable 39 Purchase Line Qty. to Receive
  5. 220callsCodeunit 130440 Library - Random RandInt
  6. 221writesTable 39 Purchase Line Modify
  7. 223callsSetVendorDocNo
  8. 224callsCodeunit 130512 Library - Purchase PostPurchaseDocument
  9. 225callsInsertTempILEFromLast
  10. 229validatesTable 39 Purchase Line Qty. to Receive
  11. 229callsCodeunit 130440 Library - Random RandInt
  12. 230validatesTable 39 Purchase Line Direct Unit Cost
  13. 230callsCodeunit 130440 Library - Random RandDec
  14. 231writesTable 39 Purchase Line Modify
  15. 234callsSetVendorDocNo
  16. 235callsCodeunit 130512 Library - Purchase PostPurchaseDocument
  17. 236callsInsertTempILEFromLast
  18. 239callsCodeunit 130512 Library - Purchase CreatePurchaseReturnOrder
  19. 240callsCodeunit 130440 Library - Random RandDec

GRPHPurchItemTracked line 243

  1. 252callsCodeunit 130440 Library - Random RandInt
  2. 253callsCodeunit 130512 Library - Purchase CreatePurchaseOrder
  3. 254callsCodeunit 130440 Library - Random RandDec
  4. 255callsCodeunit 130502 Library - Item Tracking CreatePurchOrderItemTracking
  5. 256callsCodeunit 131000 Library - Utility GenerateRandomCode
  6. 258callsSetVendorDocNo
  7. 259callsCodeunit 130512 Library - Purchase PostPurchaseDocument
  8. 260callsInsertTempILEFromLast

GRPHSalesItemTracked line 263

  1. 273callsCodeunit 130440 Library - Random RandInt
  2. 274callsCodeunit 130509 Library - Sales CreateSalesOrder
  3. 274callsCodeunit 130440 Library - Random RandDec
  4. 275callsCodeunit 130502 Library - Item Tracking CreateSalesOrderItemTracking
  5. 277callsCodeunit 130509 Library - Sales PostSalesDocument
  6. 279callsInsertTempILEFromLast

GRPH3Purch1SalesItemTracked line 282

  1. 290callsGRPHPurchItemTracked
  2. 291callsGRPHPurchItemTracked
  3. 292callsGRPHPurchItemTracked
  4. 295callsGRPHSalesItemTracked

GRPHSplitApplication line 298

  1. 306callsRandDec
  2. 307callsRandDec
  3. 308callsRandDec
  4. 309callsRandDec
  5. 311callsMAKEInbound
  6. 312callsMAKEInbound
  7. 314callsSHIPSales
  8. 315callsSHIPSales

GRPHSeveralSplitApplicationWithCosts line 318

  1. 330callsRandDec
  2. 331callsRandDec
  3. 332callsRandDec
  4. 334callsMAKEInbound
  5. 336callsMAKEInbound
  6. 338callsMAKEInbound
  7. 341callsRandDec
  8. 343callsRandDec
  9. 345callsMAKEOutbound
  10. 347callsMAKEOutbound
  11. 351callsSHIPSales
  12. 351callsRandDec

GRPHSplitJoinApplication line 357

  1. 361callsRandDec
  2. 363callsMAKEInbound
  3. 365callsSHIPSales
  4. 366callsCodeunit 130509 Library - Sales PostSalesLine
  5. 368callsRECEIVESalesReturn
  6. 369callsSHIPSales

GRPHSeveralSplitApplication line 372

  1. 376callsGRPHSeveralSplitApplicationWithCosts

GRPHSalesOnly line 379

  1. 381callsSHIPSales
  2. 381callsRandDec

GRPHApplyInboundToUnappliedOutbound line 384

  1. 391callsRandDec
  2. 392callsRandDec
  3. 393callsRandDec
  4. 395callsSHIPSales
  5. 397callsMAKEInbound
  6. 398callsMAKEInbound

GRPHSimpleApplication line 401

  1. 405callsRandDec
  2. 406callsMAKEInbound
  3. 407callsSHIPSales
  4. 407callsRandDec

GRPHSalesReturnOnly line 410

  1. 415callsCodeunit 130509 Library - Sales CreateSalesHeader
  2. 416callsCodeunit 130509 Library - Sales CreateSalesLine
  3. 416callsRandDec
  4. 419callsCodeunit 130509 Library - Sales PostSalesDocument

GRPHSalesFromReturnReceipts line 425

  1. 430callsGRPHSalesReturnOnly
  2. 431callsGRPHSalesReturnOnly
  3. 432callsSHIPSales
  4. 432callsRandDec

InsertTempILEFromLast line 435

  1. 441writesTable 32 Item Ledger Entry Insert

RandDec line 474

  1. 483callsCodeunit 130440 Library - Random RandDecInRange

RandCost line 486

  1. 490callsCodeunit 131300 Library - ERM GetAmountRoundingPrecision
  2. 492callsRandDec
  3. 493callsRandDec

SHIPSales line 496, local

  1. 500callsCodeunit 130509 Library - Sales CreateSalesHeader
  2. 501validatesTable 36 Sales Header Posting Date
  3. 502writesTable 36 Sales Header Modify(true)
  4. 504callsCodeunit 130509 Library - Sales CreateSalesLine
  5. 505validatesTable 37 Sales Line Shipment Date
  6. 506writesTable 37 Sales Line Modify(true)
  7. 508callsCodeunit 130509 Library - Sales PostSalesDocument

RECEIVESalesReturn line 511, local

  1. 519callsCodeunit 130509 Library - Sales CreateSalesHeader
  2. 520validatesTable 36 Sales Header Posting Date
  3. 521writesTable 36 Sales Header Modify(true)
  4. 525callsCodeunit 6620 Copy Document Mgt. SetProperties
  5. 526callsCodeunit 6620 Copy Document Mgt. CopySalesShptLinesToDoc
  6. 529callsCodeunit 130509 Library - Sales PostSalesDocument
  7. 534callsCodeunit 130000 Assert AreEqual

CHECKCalcInvPost line 538

  1. 544callsCreateRefJnlforCalcInvPost
  2. 550callsCodeunit 130000 Assert AreEqual
  3. 558callsCodeunit 130000 Assert AreEqual
  4. 561callsCodeunit 130000 Assert AreEqual
  5. 569callsCodeunit 130000 Assert AreEqual
  6. 572callsCodeunit 130000 Assert AreEqual
  7. 575callsCodeunit 130000 Assert AreEqual
  8. 578callsCodeunit 130000 Assert AreEqual

CreateRefJnlforCalcInvPost line 584, local

  1. 607writesTable 14 Location Insert
  2. 609writesTable 5401 Item Variant Insert
  3. 614writesTable 32 Item Ledger Entry Insert
  4. 616writesTable 14 Location Insert
  5. 618writesTable 5401 Item Variant Insert
  6. 629callsCreateRefJournalLinePerItem
  7. 632callsCreateRefJournalLinePerItem
  8. 639callsCreateRefJournalLinePerItem
  9. 642callsCreateRefJournalLinePerItem
  10. 647writesTable 32 Item Ledger Entry Insert
  11. 649callsCreateRefJournalLinePerILE

CreateRefJournalLinePerItem line 653, local

  1. 663callsCalculateCostAtDate
  2. 671callsCalculateCostAtDate
  3. 687callsCodeunit 131300 Library - ERM GetAmountRoundingPrecision
  4. 688writesTable 83 Item Journal Line Insert

CreateRefJournalLinePerILE line 691, local

  1. 711callsCalculateCostAtDate
  2. 712callsCodeunit 131300 Library - ERM GetAmountRoundingPrecision
  3. 714writesTable 83 Item Journal Line Insert

ExecutePostRevalueInboundILE line 730

  1. 736callsCodeunit 132200 Library - Costing AdjustCostItemEntries
  2. 737callsCodeunit 132200 Library - Costing CheckAdjustment
  3. 739callsCodeunit 132201 Library - Inventory CreateItemJournalBatchByType
  4. 740callsCodeunit 132201 Library - Inventory MakeItemJournalLine
  5. 743validatesTable 83 Item Journal Line Applies-to Entry
  6. 744validatesTable 83 Item Journal Line Inventory Value (Revalued)
  7. 745writesTable 83 Item Journal Line Insert
  8. 747callsCodeunit 132201 Library - Inventory PostItemJournalBatch
  9. 748callsCodeunit 132200 Library - Costing AdjustCostItemEntries

CalculateInventoryValueRun line 751

  1. 758callsCodeunit 132201 Library - Inventory CreateItemJournalBatchByType
  2. 759callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 760validatesTable 83 Item Journal Line Journal Template Name
  4. 761validatesTable 83 Item Journal Line Journal Batch Name
  5. 764callsReport 5899 Calculate Inventory Value UseRequestPage
  6. 765callsReport 5899 Calculate Inventory Value SetItemJnlLine
  7. 770callsReport 5899 Calculate Inventory Value SetParameters

ModifyPostRevaluation line 775

  1. 783validatesTable 83 Item Journal Line Inventory Value (Revalued)
  2. 784callsCodeunit 131300 Library - ERM GetAmountRoundingPrecision
  3. 785writesTable 83 Item Journal Line Modify
  4. 787callsCodeunit 132201 Library - Inventory PostItemJournalBatch

ModifyAppliesToPostRevaluation line 790

  1. 798validatesTable 83 Item Journal Line Inventory Value (Revalued)
  2. 799callsCodeunit 131300 Library - ERM GetAmountRoundingPrecision
  3. 800validatesTable 83 Item Journal Line Applies-to Entry
  4. 801writesTable 83 Item Journal Line Modify
  5. 803callsCodeunit 132201 Library - Inventory PostItemJournalBatch

MAKEXBound line 806, local

  1. 812callsCodeunit 132201 Library - Inventory CreateItemJournalBatchByType
  2. 813callsCodeunit 132201 Library - Inventory MakeItemJournalLine
  3. 814writesTable 83 Item Journal Line Insert(true)
  4. 815validatesTable 83 Item Journal Line Posting Date
  5. 816validatesTable 83 Item Journal Line Unit Amount
  6. 816callsRandCost
  7. 817writesTable 83 Item Journal Line Modify(true)
  8. 820writesTable 83 Item Journal Line Insert
  9. 822callsCodeunit 132201 Library - Inventory PostItemJournalBatch

MAKEInbound line 825, local

  1. 829callsMAKEXBound

MAKEOutbound line 832, local

  1. 836callsMAKEXBound

SetVendorDocNo line 847, local

  1. 849callsCodeunit 131000 Library - Utility GenerateGUID
  2. 850callsCodeunit 131000 Library - Utility GenerateGUID
  3. 851writesTable 38 Purchase Header Modify