Codeunit 130512 Library - Purchase

Application Test Library

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

AssignPurchChargeToPurchRcptLine line 27

  1. 34callsCreateItemChargePurchaseLine
  2. 38callsCodeunit 130512 Library - Purchase CreateItemChargeAssignment
  3. 42writesTable 5805 Item Charge Assignment (Purch) Insert

AssignPurchChargeToPurchInvoiceLine line 45

  1. 52callsCreateItemChargePurchaseLine
  2. 56callsCodeunit 130512 Library - Purchase CreateItemChargeAssignment
  3. 60writesTable 5805 Item Charge Assignment (Purch) Insert

AssignPurchChargeToPurchaseLine line 63

  1. 70callsCreateItemChargePurchaseLine
  2. 74callsCodeunit 130512 Library - Purchase CreateItemChargeAssignment
  3. 78writesTable 5805 Item Charge Assignment (Purch) Insert

AssignPurchChargeToPurchReturnLine line 81

  1. 88callsCreateItemChargePurchaseLine
  2. 92callsCodeunit 130512 Library - Purchase CreateItemChargeAssignment
  3. 96writesTable 5805 Item Charge Assignment (Purch) Insert

CreateItemChargePurchaseLine line 99

  1. 103callsCodeunit 132201 Library - Inventory CreateItemCharge
  2. 104callsCodeunit 130512 Library - Purchase CreatePurchaseLine
  3. 105validatesTable 39 Purchase Line Direct Unit Cost
  4. 106writesTable 39 Purchase Line Modify(true)

BlanketPurchaseOrderMakeOrder line 109

  1. 115runsCodeunit 97 Blanket Purch. Order to Order
  2. 116callsCodeunit 97 Blanket Purch. Order to Order GetPurchOrderHeader

CopyPurchaseDocument line 120

  1. 124callsReport 492 Copy Purchase Document SetPurchHeader
  2. 125callsReport 492 Copy Purchase Document SetParameters
  3. 126callsReport 492 Copy Purchase Document UseRequestPage

CreateItemChargeAssignment line 130

  1. 142callsCodeunit 131000 Library - Utility GetNewLineNo
  2. 149validatesTable 5805 Item Charge Assignment (Purch) Qty. to Assign

CreateOrderAddress line 152

  1. 156callsCodeunit 131300 Library - ERM CreatePostCode
  2. 158validatesTable 224 Order Address Vendor No.
  3. 159validatesTable 224 Order Address Code
  4. 162callsCodeunit 131000 Library - Utility GenerateRandomCode
  5. 164callsCodeunit 131000 Library - Utility GetFieldLength
  6. 165validatesTable 224 Order Address Name
  7. 165callsCodeunit 131000 Library - Utility GenerateRandomText
  8. 166validatesTable 224 Order Address Address
  9. 166callsCodeunit 131000 Library - Utility GenerateRandomText
  10. 167validatesTable 224 Order Address Post Code
  11. 168writesTable 224 Order Address Insert(true)

CreateRemitToAddress line 171

  1. 175callsCodeunit 131300 Library - ERM CreatePostCode
  2. 177validatesTable 2224 Remit Address Vendor No.
  3. 178validatesTable 2224 Remit Address Code
  4. 181callsCodeunit 131000 Library - Utility GenerateRandomCode
  5. 183callsCodeunit 131000 Library - Utility GetFieldLength
  6. 184validatesTable 2224 Remit Address Name
  7. 184callsCodeunit 131000 Library - Utility GenerateRandomText
  8. 185validatesTable 2224 Remit Address Address
  9. 185callsCodeunit 131000 Library - Utility GenerateRandomText
  10. 186validatesTable 2224 Remit Address Post Code
  11. 187writesTable 2224 Remit Address Insert(true)

CreatePrepaymentVATSetup line 190

  1. 194callsCodeunit 131300 Library - ERM CreatePrepaymentVATSetup

CreatePurchasingCode line 199

  1. 202validatesTable 5721 Purchasing Code
  2. 205callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 207callsCodeunit 131000 Library - Utility GetFieldLength
  4. 208writesTable 5721 Purchasing Insert(true)

CreateDropShipmentPurchasingCode line 211

  1. 213callsCreatePurchasingCode
  2. 214validatesTable 5721 Purchasing Drop Shipment
  3. 215writesTable 5721 Purchasing Modify(true)

CreateSpecialOrderPurchasingCode line 218

  1. 220callsCreatePurchasingCode
  2. 221validatesTable 5721 Purchasing Special Order
  3. 222writesTable 5721 Purchasing Modify(true)

CreatePurchHeader line 225

  1. 227callsDisableWarningOnCloseUnpostedDoc
  2. 228callsDisableWarningOnCloseUnreleasedDoc
  3. 229callsDisableConfirmOnPostingDoc
  4. 231raisesOnBeforeCreatePurchaseHeader
  5. 232validatesTable 38 Purchase Header Document Type
  6. 233writesTable 38 Purchase Header Insert(true)
  7. 235callsCreateVendorNo
  8. 236validatesTable 38 Purchase Header Buy-from Vendor No.
  9. 240validatesTable 38 Purchase Header Vendor Cr. Memo No.
  10. 240callsCodeunit 131000 Library - Utility GenerateGUID
  11. 242validatesTable 38 Purchase Header Vendor Invoice No.
  12. 242callsCodeunit 131000 Library - Utility GenerateGUID
  13. 243writesTable 38 Purchase Header Modify(true)
  14. 244raisesOnAfterCreatePurchHeader

CreatePurchHeaderWithDocNo line 247

  1. 250validatesTable 38 Purchase Header Document Type
  2. 252writesTable 38 Purchase Header Insert(true)
  3. 254callsCreateVendorNo
  4. 255validatesTable 38 Purchase Header Buy-from Vendor No.
  5. 256validatesTable 38 Purchase Header Vendor Invoice No.
  6. 256callsCodeunit 131000 Library - Utility GenerateGUID
  7. 257writesTable 38 Purchase Header Modify(true)

CreatePurchaseLine line 260

  1. 262callsCreatePurchaseLineSimple
  2. 264validatesTable 39 Purchase Line Type
  3. 268callsCodeunit 132201 Library - Inventory CreateItemNo
  4. 271callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
  5. 274callsCodeunit 132201 Library - Inventory CreateItemChargeNo
  6. 277callsCodeunit 130511 Library - Resource CreateResourceNo
  7. 280callsCodeunit 131330 Library - Fixed Asset CreateFixedAssetNo
  8. 282validatesTable 39 Purchase Line No.
  9. 284validatesTable 39 Purchase Line Quantity
  10. 285writesTable 39 Purchase Line Modify(true)
  11. 287raisesOnAfterCreatePurchaseLine

CreatePurchaseLineSimple line 290

  1. 295validatesTable 39 Purchase Line Document Type
  2. 296validatesTable 39 Purchase Line Document No.
  3. 298validatesTable 39 Purchase Line Line No.
  4. 298callsCodeunit 131000 Library - Utility GetNewLineNo
  5. 299writesTable 39 Purchase Line Insert(true)

CreatePurchaseLineWithUnitCost line 302

  1. 304callsCreatePurchaseLine
  2. 305validatesTable 39 Purchase Line Direct Unit Cost
  3. 306writesTable 39 Purchase Line Modify

CreatePurchaseQuote line 309

  1. 313callsCreatePurchHeader
  2. 313callsCreateVendorNo
  3. 314callsCreatePurchaseLine
  4. 315callsCodeunit 132201 Library - Inventory CreateItemNo
  5. 315callsCodeunit 130440 Library - Random RandInt
  6. 316validatesTable 39 Purchase Line Direct Unit Cost
  7. 316callsCodeunit 130440 Library - Random RandDecInRange
  8. 317writesTable 39 Purchase Line Modify(true)

CreatePurchaseInvoice line 320

  1. 322callsCreatePurchaseInvoiceForVendorNo
  2. 322callsCreateVendorNo

CreatePurchaseInvoiceForVendorNo line 325

  1. 329callsCreatePurchHeader
  2. 330callsCreatePurchaseLine
  3. 330callsCodeunit 132201 Library - Inventory CreateItemNo
  4. 330callsCodeunit 130440 Library - Random RandInt
  5. 331validatesTable 39 Purchase Line Direct Unit Cost
  6. 331callsCodeunit 130440 Library - Random RandDecInRange
  7. 332writesTable 39 Purchase Line Modify(true)

CreatePurchaseOrder line 335

  1. 337callsCreatePurchaseOrderForVendorNo
  2. 337callsCreateVendorNo

CreatePurchaseOrderForVendorNo line 340

  1. 344callsCreatePurchHeader
  2. 345callsCreatePurchaseLine
  3. 345callsCodeunit 132201 Library - Inventory CreateItemNo
  4. 345callsCodeunit 130440 Library - Random RandInt
  5. 346validatesTable 39 Purchase Line Direct Unit Cost
  6. 346callsCodeunit 130440 Library - Random RandDecInRange
  7. 347writesTable 39 Purchase Line Modify(true)

CreatePurchaseCreditMemo line 350

  1. 352callsCreatePurchaseCreditMemoForVendorNo
  2. 352callsCreateVendorNo

CreatePurchaseCreditMemoForVendorNo line 355

  1. 359callsCreatePurchHeader
  2. 360callsCreatePurchaseLine
  3. 360callsCodeunit 132201 Library - Inventory CreateItemNo
  4. 360callsCodeunit 130440 Library - Random RandInt
  5. 361validatesTable 39 Purchase Line Direct Unit Cost
  6. 361callsCodeunit 130440 Library - Random RandDecInRange
  7. 362writesTable 39 Purchase Line Modify(true)

CreatePurchaseOrderWithLocation line 365

  1. 367callsCreatePurchHeader
  2. 368validatesTable 38 Purchase Header Vendor Invoice No.
  3. 369validatesTable 38 Purchase Header Location Code
  4. 370writesTable 38 Purchase Header Modify

CreatePurchaseReturnOrderWithLocation line 373

  1. 375callsCreatePurchHeader
  2. 376validatesTable 38 Purchase Header Vendor Cr. Memo No.
  3. 377validatesTable 38 Purchase Header Location Code
  4. 378writesTable 38 Purchase Header Modify

CreatePurchaseCreditMemoWithLocation line 381

  1. 383callsCreatePurchHeader
  2. 384validatesTable 38 Purchase Header Vendor Cr. Memo No.
  3. 385validatesTable 38 Purchase Header Location Code
  4. 386writesTable 38 Purchase Header Modify

CreatePurchaseReturnOrder line 389

  1. 393callsCreatePurchHeader
  2. 393callsCreateVendorNo
  3. 394callsCreatePurchaseLine
  4. 394callsCodeunit 132201 Library - Inventory CreateItemNo
  5. 394callsCodeunit 130440 Library - Random RandInt
  6. 395validatesTable 39 Purchase Line Direct Unit Cost
  7. 395callsCodeunit 130440 Library - Random RandDecInRange
  8. 396writesTable 39 Purchase Line Modify(true)

CreatePurchaseDocument line 399

  1. 401callsCreatePurchHeader
  2. 402validatesTable 38 Purchase Header Posting Date
  3. 403writesTable 38 Purchase Header Modify(true)
  4. 404callsCreatePurchaseLine
  5. 407validatesTable 39 Purchase Line Direct Unit Cost
  6. 408writesTable 39 Purchase Line Modify(true)

CreatePurchaseOrder line 411

  1. 413callsCreatePurchaseDocument

CreatePurchaseQuote line 418

  1. 420callsCreatePurchaseDocument

CreatePurchaseBlanketOrder line 425

  1. 427callsCreatePurchaseDocument

CreatePurchaseReturnOrder line 432

  1. 434callsCreatePurchaseDocument

CreatePurchaseCreditMemo line 439

  1. 441callsCreatePurchaseDocument

CreatePurchaseInvoice line 446

  1. 448callsCreatePurchaseDocument

CreatePurchCommentLine line 453

  1. 458validatesTable 43 Purch. Comment Line Document Type
  2. 459validatesTable 43 Purch. Comment Line No.
  3. 460validatesTable 43 Purch. Comment Line Document Line No.
  4. 462validatesTable 43 Purch. Comment Line Line No.
  5. 462callsCodeunit 131000 Library - Utility GetNewLineNo
  6. 463writesTable 43 Purch. Comment Line Insert(true)
  7. 465validatesTable 43 Purch. Comment Line Comment
  8. 468writesTable 43 Purch. Comment Line Modify(true)

CreatePurchaseDocumentWithItem line 471

  1. 473callsCreateFCYPurchaseDocumentWithItem

CreateFCYPurchaseDocumentWithItem line 477

  1. 479callsCreatePurchHeader
  2. 481validatesTable 38 Purchase Header Location Code
  3. 482validatesTable 38 Purchase Header Currency Code
  4. 483writesTable 38 Purchase Header Modify(true)
  5. 485callsCodeunit 132201 Library - Inventory CreateItemNo
  6. 486callsCreatePurchaseLine
  7. 488validatesTable 39 Purchase Line Location Code
  8. 490validatesTable 39 Purchase Line Expected Receipt Date
  9. 491writesTable 39 Purchase Line Modify(true)

CreatePurchasePrepaymentPct line 494

  1. 497validatesTable 460 Purchase Prepayment % Item No.
  2. 498validatesTable 460 Purchase Prepayment % Vendor No.
  3. 499validatesTable 460 Purchase Prepayment % Starting Date
  4. 500writesTable 460 Purchase Prepayment % Insert(true)

CreateStandardPurchaseCode line 503

  1. 506validatesTable 173 Standard Purchase Code Code
  2. 509callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 511callsCodeunit 131000 Library - Utility GetFieldLength
  4. 513validatesTable 173 Standard Purchase Code Description
  5. 514writesTable 173 Standard Purchase Code Insert(true)

CreateStandardPurchaseLine line 517

  1. 522validatesTable 174 Standard Purchase Line Standard Purchase Code
  2. 524validatesTable 174 Standard Purchase Line Line No.
  3. 524callsCodeunit 131000 Library - Utility GetNewLineNo
  4. 525writesTable 174 Standard Purchase Line Insert(true)

CreateVendorDocumentLayout line 528

  1. 533validatesTable 9657 Custom Report Selection Source Type
  2. 534validatesTable 9657 Custom Report Selection Source No.
  3. 535validatesTable 9657 Custom Report Selection Usage
  4. 536validatesTable 9657 Custom Report Selection Report ID
  5. 537validatesTable 9657 Custom Report Selection Custom Report Layout Code
  6. 538validatesTable 9657 Custom Report Selection Send To Email
  7. 539writesTable 9657 Custom Report Selection Insert(true)

CreateSubcontractor line 542

  1. 544callsCreateVendor

CreateVendor line 547

  1. 554callsCodeunit 131300 Library - ERM FindPaymentMethod
  2. 555callsCodeunit 131300 Library - ERM SetSearchGenPostingTypePurch
  3. 556callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
  4. 557callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
  5. 558callsCodeunit 131000 Library - Utility UpdateSetupNoSeriesCode
  6. 562writesTable 23 Vendor Insert(true)
  7. 563validatesTable 23 Vendor Name
  8. 564validatesTable 23 Vendor Gen. Bus. Posting Group
  9. 565validatesTable 23 Vendor VAT Bus. Posting Group
  10. 566validatesTable 23 Vendor Vendor Posting Group
  11. 566callsFindVendorPostingGroup
  12. 567validatesTable 23 Vendor Payment Terms Code
  13. 567callsCodeunit 131300 Library - ERM FindPaymentTermsCode
  14. 568validatesTable 23 Vendor Payment Method Code
  15. 569writesTable 23 Vendor Modify(true)
  16. 570callsCodeunit 5057 VendCont-Update OnModify
  17. 572raisesOnAfterCreateVendor

CreateVendorNo line 576

  1. 580callsCreateVendor

CreateVendorPostingGroup line 584

  1. 587validatesTable 93 Vendor Posting Group Code
  2. 588callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 589validatesTable 93 Vendor Posting Group Payables Account
  4. 589callsCodeunit 131300 Library - ERM CreateGLAccountNo
  5. 590validatesTable 93 Vendor Posting Group Service Charge Acc.
  6. 590callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
  7. 591validatesTable 93 Vendor Posting Group Invoice Rounding Account
  8. 591callsCodeunit 131300 Library - ERM CreateGLAccountWithPurchSetup
  9. 592validatesTable 93 Vendor Posting Group Debit Rounding Account
  10. 592callsCodeunit 131300 Library - ERM CreateGLAccountNo
  11. 593validatesTable 93 Vendor Posting Group Credit Rounding Account
  12. 593callsCodeunit 131300 Library - ERM CreateGLAccountNo
  13. 594validatesTable 93 Vendor Posting Group Payment Disc. Debit Acc.
  14. 594callsCodeunit 131300 Library - ERM CreateGLAccountNo
  15. 595validatesTable 93 Vendor Posting Group Payment Disc. Credit Acc.
  16. 595callsCodeunit 131300 Library - ERM CreateGLAccountNo
  17. 596validatesTable 93 Vendor Posting Group Payment Tolerance Debit Acc.
  18. 596callsCodeunit 131300 Library - ERM CreateGLAccountNo
  19. 597validatesTable 93 Vendor Posting Group Payment Tolerance Credit Acc.
  20. 597callsCodeunit 131300 Library - ERM CreateGLAccountNo
  21. 598validatesTable 93 Vendor Posting Group Debit Curr. Appln. Rndg. Acc.
  22. 598callsCodeunit 131300 Library - ERM CreateGLAccountNo
  23. 599validatesTable 93 Vendor Posting Group Credit Curr. Appln. Rndg. Acc.
  24. 599callsCodeunit 131300 Library - ERM CreateGLAccountNo
  25. 600writesTable 93 Vendor Posting Group Insert(true)

CreateAltVendorPostingGroup line 603

  1. 610writesTable 961 Alt. Vendor Posting Group Insert

CreateVendorWithLocationCode line 613

  1. 615callsCreateVendor
  2. 616validatesTable 23 Vendor Location Code
  3. 617writesTable 23 Vendor Modify(true)

CreateVendorWithBusPostingGroups line 621

  1. 625callsCreateVendor
  2. 626validatesTable 23 Vendor Gen. Bus. Posting Group
  3. 627validatesTable 23 Vendor VAT Bus. Posting Group
  4. 628writesTable 23 Vendor Modify(true)

CreateVendorWithVATBusPostingGroup line 632

  1. 636callsCreateVendor
  2. 637validatesTable 23 Vendor VAT Bus. Posting Group
  3. 638writesTable 23 Vendor Modify(true)

CreateVendorWithVATRegNo line 642

  1. 646callsCreateVendor
  2. 647callsCodeunit 131300 Library - ERM CreateCountryRegion
  3. 648validatesTable 23 Vendor Country/Region Code
  4. 649callsCodeunit 131300 Library - ERM GenerateVATRegistrationNo
  5. 650writesTable 23 Vendor Modify(true)

CreateVendorWithAddress line 654

  1. 658callsCodeunit 131300 Library - ERM CreatePostCode
  2. 659callsCreateVendor
  3. 660validatesTable 23 Vendor Name
  4. 660callsCodeunit 131000 Library - Utility GenerateRandomText
  5. 661validatesTable 23 Vendor Address
  6. 661callsCodeunit 131000 Library - Utility GenerateRandomText
  7. 662validatesTable 23 Vendor Address 2
  8. 662callsCodeunit 131000 Library - Utility GenerateRandomText
  9. 663validatesTable 23 Vendor Country/Region Code
  10. 664validatesTable 23 Vendor City
  11. 665validatesTable 23 Vendor County
  12. 665callsCodeunit 131000 Library - Utility GenerateRandomText
  13. 666validatesTable 23 Vendor Post Code
  14. 667callsCodeunit 131000 Library - Utility GenerateRandomText
  15. 668writesTable 23 Vendor Modify(true)

CreateVendorBankAccount line 671

  1. 674validatesTable 288 Vendor Bank Account Vendor No.
  2. 675validatesTable 288 Vendor Bank Account Code
  3. 678callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 680callsCodeunit 131000 Library - Utility GetFieldLength
  5. 681writesTable 288 Vendor Bank Account Insert(true)

CreateVendorPurchaseCode line 684

  1. 687validatesTable 175 Standard Vendor Purchase Code Vendor No.
  2. 688validatesTable 175 Standard Vendor Purchase Code Code
  3. 689writesTable 175 Standard Vendor Purchase Code Insert(true)

CreatePurchaseHeaderPostingJobQueueEntry line 692

  1. 701writesTable 472 Job Queue Entry Insert(true)

CreateIntrastatContact line 704

  1. 708callsCreateVendor
  2. 709validatesTable 23 Vendor Name
  3. 709callsCodeunit 131000 Library - Utility GenerateGUID
  4. 710validatesTable 23 Vendor Address
  5. 710callsCodeunit 131000 Library - Utility GenerateGUID
  6. 711validatesTable 23 Vendor Country/Region Code
  7. 712validatesTable 23 Vendor Post Code
  8. 712callsCodeunit 131000 Library - Utility GenerateGUID
  9. 713validatesTable 23 Vendor City
  10. 713callsCodeunit 131000 Library - Utility GenerateGUID
  11. 714validatesTable 23 Vendor Phone No.
  12. 714callsCodeunit 130440 Library - Random RandIntInRange
  13. 715validatesTable 23 Vendor Fax No.
  14. 715callsCodeunit 131000 Library - Utility GenerateGUID
  15. 716validatesTable 23 Vendor E-Mail
  16. 716callsCodeunit 131000 Library - Utility GenerateGUID
  17. 716callsCodeunit 131000 Library - Utility GenerateGUID
  18. 717writesTable 23 Vendor Modify(true)

DeleteInvoicedPurchOrders line 721

  1. 735callsReport 499 Delete Invoiced Purch. Orders UseRequestPage

ExplodeBOM line 739

  1. 744runsCodeunit 73 Purch.-Explode BOM

FindVendorPostingGroup line 763

  1. 768callsCreateVendorPostingGroup

GetDropShipment line 785

  1. 790runsCodeunit 76 Purch.-Get Drop Shpt.

GetPurchaseReturnShipmentLine line 801

  1. 805runsCodeunit 6648 Purch.-Get Return Shipments

GetPurchaseReceiptLine line 808

  1. 813runsCodeunit 74 Purch.-Get Receipt

GetSpecialOrder line 816

  1. 821callsCodeunit 5702 Dist. Integration GetSpecialOrders

GegVendorLedgerEntryUniqueExternalDocNo line 824

  1. 829callsCodeunit 131000 Library - Utility GenerateRandomCodeWithLength

PostPurchaseOrder line 835

  1. 837callsPostPurchaseOrderPartially

PostPurchaseOrderWithItemTracking line 840

  1. 845callsCreatePurchaseOrder
  2. 846validatesTable 39 Purchase Line Qty. to Receive
  3. 847validatesTable 39 Purchase Line Qty. to Invoice
  4. 848writesTable 39 Purchase Line Modify
  5. 849callsCodeunit 130502 Library - Item Tracking CreatePurchOrderItemTracking
  6. 851callsSetVendorDocNo
  7. 852callsPostPurchaseDocument

PostPurchaseOrderPartially line 855

  1. 859callsCreatePurchaseOrder
  2. 860validatesTable 39 Purchase Line Qty. to Receive
  3. 861validatesTable 39 Purchase Line Qty. to Invoice
  4. 862writesTable 39 Purchase Line Modify
  5. 864callsSetVendorDocNo
  6. 865callsPostPurchaseDocument

PostPurchasePrepaymentCrMemo line 868

  1. 872callsCodeunit 444 Purchase-Post Prepayments CreditMemo

PostPurchasePrepaymentCreditMemo line 875

  1. 883callsCodeunit 310 No. Series PeekNextNo
  2. 883callsCodeunit 131000 Library - Utility GetNextNoSeriesPurchaseDate
  3. 886callsCodeunit 444 Purchase-Post Prepayments CreditMemo

PostPurchasePrepaymentInvoice line 889

  1. 897callsCodeunit 310 No. Series PeekNextNo
  2. 897callsCodeunit 131000 Library - Utility GetNextNoSeriesPurchaseDate
  3. 900callsCodeunit 444 Purchase-Post Prepayments Invoice

PostPurchaseDocument line 903

  1. 917validatesTable 38 Purchase Header Receive
  2. 918validatesTable 38 Purchase Header Ship
  3. 919validatesTable 38 Purchase Header Invoice
  4. 920callsCodeunit 90 Purch.-Post SetPostingFlags
  5. 926callsCodeunit 310 No. Series GetNextNo
  6. 926callsCodeunit 131000 Library - Utility GetNextNoSeriesPurchaseDate
  7. 933callsCodeunit 310 No. Series GetNextNo
  8. 933callsCodeunit 131000 Library - Utility GetNextNoSeriesPurchaseDate
  9. 938callsCodeunit 310 No. Series GetNextNo
  10. 938callsCodeunit 131000 Library - Utility GetNextNoSeriesPurchaseDate
  11. 946callsCodeunit 310 No. Series GetNextNo
  12. 946callsCodeunit 131000 Library - Utility GetNextNoSeriesPurchaseDate
  13. 951callsCodeunit 310 No. Series GetNextNo
  14. 951callsCodeunit 131000 Library - Utility GetNextNoSeriesPurchaseDate
  15. 956callsCodeunit 130000 Assert Fail
  16. 959runsCodeunit 90 Purch.-Post

QuoteMakeOrder line 966

  1. 972runsCodeunit 96 Purch.-Quote to Order
  2. 973callsCodeunit 96 Purch.-Quote to Order GetPurchOrderHeader

ReleasePurchaseDocument line 977

  1. 981callsCodeunit 415 Release Purchase Document PerformManualRelease

ReopenPurchaseDocument line 984

  1. 988callsCodeunit 415 Release Purchase Document PerformManualReopen

CalcPurchaseDiscount line 991

  1. 997runsCodeunit 70 Purch.-Calc.Discount

RunBatchPostPurchaseReturnOrdersReport line 1000

  1. 1007callsReport 6665 Batch Post Purch. Ret. Orders UseRequestPage

RunDeleteInvoicedPurchaseReturnOrdersReport line 1011

  1. 1017callsReport 6661 Delete Invd Purch. Ret. Orders UseRequestPage

RunMoveNegativePurchaseLinesReport line 1021

  1. 1026callsReport 6698 Move Negative Purchase Lines SetPurchHeader
  2. 1027callsReport 6698 Move Negative Purchase Lines InitializeRequest
  3. 1028callsReport 6698 Move Negative Purchase Lines UseRequestPage

SetAllowVATDifference line 1032

  1. 1035validatesTable 312 Purchases & Payables Setup Allow VAT Difference
  2. 1036writesTable 312 Purchases & Payables Setup Modify(true)

SetAllowDocumentDeletionBeforeDate line 1039

  1. 1042validatesTable 312 Purchases & Payables Setup Allow Document Deletion Before
  2. 1043writesTable 312 Purchases & Payables Setup Modify(true)

SetApplnBetweenCurrencies line 1046

  1. 1049validatesTable 312 Purchases & Payables Setup Appln. between Currencies
  2. 1050writesTable 312 Purchases & Payables Setup Modify(true)

SetArchiveQuotesAlways line 1053

  1. 1056validatesTable 312 Purchases & Payables Setup Archive Quotes
  2. 1057writesTable 312 Purchases & Payables Setup Modify(true)

SetArchiveOrders line 1060

  1. 1063validatesTable 312 Purchases & Payables Setup Archive Orders
  2. 1064writesTable 312 Purchases & Payables Setup Modify(true)

SetArchiveBlanketOrders line 1067

  1. 1070validatesTable 312 Purchases & Payables Setup Archive Blanket Orders
  2. 1071writesTable 312 Purchases & Payables Setup Modify(true)

SetArchiveReturnOrders line 1074

  1. 1077validatesTable 312 Purchases & Payables Setup Archive Return Orders
  2. 1078writesTable 312 Purchases & Payables Setup Modify(true)

SetCreateItemFromItemNo line 1083

  1. 1086validatesTable 312 Purchases & Payables Setup Create Item from Item No.
  2. 1087writesTable 312 Purchases & Payables Setup Modify(true)

SetDefaultPostingDateWorkDate line 1090

  1. 1093validatesTable 312 Purchases & Payables Setup Default Posting Date
  2. 1094writesTable 312 Purchases & Payables Setup Modify(true)

SetDefaultPostingDateNoDate line 1097

  1. 1100validatesTable 312 Purchases & Payables Setup Default Posting Date
  2. 1101writesTable 312 Purchases & Payables Setup Modify(true)

SetDiscountPosting line 1104

  1. 1107validatesTable 312 Purchases & Payables Setup Discount Posting
  2. 1108writesTable 312 Purchases & Payables Setup Modify(true)

SetDiscountPostingSilent line 1111

  1. 1115writesTable 312 Purchases & Payables Setup Modify

SetCalcInvDiscount line 1118

  1. 1121validatesTable 312 Purchases & Payables Setup Calc. Inv. Discount
  2. 1122writesTable 312 Purchases & Payables Setup Modify(true)

SetInvoiceRounding line 1125

  1. 1128validatesTable 312 Purchases & Payables Setup Invoice Rounding
  2. 1129writesTable 312 Purchases & Payables Setup Modify(true)

SetExactCostReversingMandatory line 1132

  1. 1135validatesTable 312 Purchases & Payables Setup Exact Cost Reversing Mandatory
  2. 1136writesTable 312 Purchases & Payables Setup Modify(true)

SetExtDocNo line 1139

  1. 1142validatesTable 312 Purchases & Payables Setup Ext. Doc. No. Mandatory
  2. 1143writesTable 312 Purchases & Payables Setup Modify(true)

SetPostWithJobQueue line 1146

  1. 1149validatesTable 312 Purchases & Payables Setup Post with Job Queue
  2. 1150writesTable 312 Purchases & Payables Setup Modify(true)

SetPostAndPrintWithJobQueue line 1153

  1. 1156validatesTable 312 Purchases & Payables Setup Post & Print with Job Queue
  2. 1157writesTable 312 Purchases & Payables Setup Modify(true)

SetOrderNoSeriesInSetup line 1160

  1. 1163validatesTable 312 Purchases & Payables Setup Order Nos.
  2. 1163callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  3. 1164writesTable 312 Purchases & Payables Setup Modify(true)

SetPostedNoSeriesInSetup line 1167

  1. 1170validatesTable 312 Purchases & Payables Setup Posted Invoice Nos.
  2. 1170callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  3. 1171validatesTable 312 Purchases & Payables Setup Posted Receipt Nos.
  4. 1171callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  5. 1172validatesTable 312 Purchases & Payables Setup Posted Credit Memo Nos.
  6. 1172callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  7. 1173writesTable 312 Purchases & Payables Setup Modify(true)

SetQuoteNoSeriesInSetup line 1176

  1. 1179validatesTable 312 Purchases & Payables Setup Quote Nos.
  2. 1179callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  3. 1180writesTable 312 Purchases & Payables Setup Modify(true)

SetReturnOrderNoSeriesInSetup line 1183

  1. 1186validatesTable 312 Purchases & Payables Setup Return Order Nos.
  2. 1186callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  3. 1187validatesTable 312 Purchases & Payables Setup Posted Return Shpt. Nos.
  4. 1187callsCodeunit 131300 Library - ERM CreateNoSeriesCode
  5. 1188writesTable 312 Purchases & Payables Setup Modify(true)

SetCopyCommentsOrderToInvoiceInSetup line 1191

  1. 1194validatesTable 312 Purchases & Payables Setup Copy Comments Order to Invoice
  2. 1195writesTable 312 Purchases & Payables Setup Modify(true)

SetVendorDocNo line 1198, local

  1. 1200callsCodeunit 131000 Library - Utility GenerateGUID
  2. 1201callsCodeunit 131000 Library - Utility GenerateGUID
  3. 1202writesTable 38 Purchase Header Modify

SelectPmtJnlBatch line 1205

  1. 1207callsCodeunit 131306 Library - Journals SelectGenJournalBatch
  2. 1207callsSelectPmtJnlTemplate

SelectPmtJnlTemplate line 1210

  1. 1214callsCodeunit 131306 Library - Journals SelectGenJournalTemplate

UndoPurchaseReceiptLine line 1217

  1. 1219runsCodeunit 5813 Undo Purchase Receipt Line

UndoReturnShipmentLine line 1222

  1. 1224runsCodeunit 5814 Undo Return Shipment Line

DisableConfirmOnPostingDoc line 1227

  1. 1231callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
  2. 1231callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode

DisableWarningOnCloseUnreleasedDoc line 1234

  1. 1236callsCodeunit 131300 Library - ERM DisableClosingUnreleasedOrdersMsg

DisableWarningOnCloseUnpostedDoc line 1239

  1. 1243callsCodeunit 1330 Instruction Mgt. DisableMessageForCurrentUser
  2. 1243callsCodeunit 1330 Instruction Mgt. QueryPostOnCloseCode

EnablePurchSetupIgnoreUpdatedAddresses line 1246

  1. 1252writesTable 312 Purchases & Payables Setup Modify

DisablePurchSetupIgnoreUpdatedAddresses line 1255

  1. 1261writesTable 312 Purchases & Payables Setup Modify

PreviewPostPurchaseDocument line 1264

  1. 1268callsCodeunit 91 Purch.-Post (Yes/No) Preview

CreatePostVendorLedgerEntry line 1271

  1. 1275callsCodeunit 131306 Library - Journals CreateGenJournalLineWithBatch
  2. 1277callsCreateVendorNo
  3. 1277callsCodeunit 130440 Library - Random RandDec
  4. 1278callsCodeunit 131300 Library - ERM PostGeneralJnlLine
  5. 1279callsCodeunit 131300 Library - ERM FindVendorLedgerEntry