Page 50 Purchase Order

Base Application, Microsoft.Purchases.Document

src/Layers/W1/BaseApp/Purchases/Document/PurchaseOrder.Page.al93 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

No..OnAssistEdit line 67, trigger

  1. 69callsTable 38 Purchase Header AssistEdit

Buy-from Vendor No..OnValidate line 81, trigger

  1. 83callsTable 38 Purchase Header PurchaseLinesEditable
  2. 84callsTable 38 Purchase Header OnAfterValidateBuyFromVendorNo

Buy-from Vendor Name.OnAfterLookup line 96, trigger

  1. 102validatesTable 38 Purchase Header Buy-from Vendor No.
  2. 105callsTable 38 Purchase Header PurchaseLinesEditable

Buy-from Vendor Name.OnValidate line 110, trigger

  1. 112callsTable 38 Purchase Header PurchaseLinesEditable
  2. 113callsTable 38 Purchase Header OnAfterValidateBuyFromVendorNo

Buy-from Country/Region Code.OnValidate line 184, trigger

  1. 186callsCodeunit 365 Format Address UseCounty

Buy-from Contact No..OnLookup line 196, trigger

  1. 198callsTable 38 Purchase Header BuyfromContactLookup

Buy-from Contact.OnLookup line 246, trigger

  1. 248callsTable 38 Purchase Header LookupBuyFromContact

Posting Date.OnValidate line 268, trigger

  1. 270callsSaveInvoiceDiscountAmount

Purchaser Code.OnValidate line 307, trigger

  1. 309callsPurchaserCodeOnAfterValidate

Job Queue Status.OnDrillDown line 366, trigger

  1. 372callsTable 472 Job Queue Entry ShowStatusMsg

Currency Code.OnAssistEdit line 403, trigger

  1. 408raisesOnBeforeCurrencyCodeOnAssistEditIsHandled
  2. 414callsPage 511 Change Exchange Rate SetParameter
  3. 416callsPage 511 Change Exchange Rate SetParameter
  4. 418validatesTable 38 Purchase Header Currency Factor
  5. 418callsPage 511 Change Exchange Rate GetParameter
  6. 419callsSaveInvoiceDiscountAmount

Currency Code.OnValidate line 424, trigger

  1. 427callsCodeunit 66 Purch - Calc Disc. By Type ApplyDefaultInvoiceDiscount

Prices Including VAT.OnValidate line 439, trigger

  1. 441callsPricesIncludingVATOnAfterValid

Shortcut Dimension 1 Code.OnValidate line 469, trigger

  1. 471callsShortcutDimension1CodeOnAfterV

Shortcut Dimension 2 Code.OnValidate line 478, trigger

  1. 480callsShortcutDimension2CodeOnAfterV

ShippingOptionWithLocation.OnValidate line 569, trigger

  1. 571callsValidateShippingOption

Ship-to Country/Region Code.OnValidate line 677, trigger

  1. 679callsCodeunit 365 Format Address UseCounty

PayToOptions.OnValidate line 710, trigger

  1. 713validatesTable 38 Purchase Header Pay-to Vendor No.

Pay-to Name.OnAfterLookup line 729, trigger

  1. 735validatesTable 38 Purchase Header Pay-to Vendor No.

Pay-to Country/Region Code.OnValidate line 823, trigger

  1. 825callsCodeunit 365 Format Address UseCounty

Remit-to Code.OnValidate line 884, trigger

  1. 886callsFillRemitToFields

Prepayment %.OnValidate line 1005, trigger

  1. 1007callsPrepayment37OnAfterValidate

Dimensions.OnAction line 1156, trigger

  1. 1158callsTable 38 Purchase Header ShowDocDim

Approvals.OnAction line 1205, trigger

  1. 1209callsCodeunit 1535 Approvals Mgmt. OpenApprovalsPurchase

DocAttach.OnAction line 1230, trigger

  1. 1236callsPage 1173 Document Attachment Details OpenForRecRef

Invoices.OnAction line 1262, trigger

  1. 1267callsCodeunit 74 Purch.-Get Receipt GetPurchOrderInvoices
  2. 1268runsPage 146 Posted Purchase Invoices

Get &Sales Order.OnAction line 1356, trigger

  1. 1362callsCodeunit 5702 Dist. Integration GetSpecialOrders

Approve.OnAction line 1382, trigger

  1. 1386callsCodeunit 1535 Approvals Mgmt. ApproveRecordApprovalRequest

Reject.OnAction line 1397, trigger

  1. 1401callsCodeunit 1535 Approvals Mgmt. RejectRecordApprovalRequest

Delegate.OnAction line 1412, trigger

  1. 1416callsCodeunit 1535 Approvals Mgmt. DelegateRecordApprovalRequest

Comment.OnAction line 1427, trigger

  1. 1431callsCodeunit 1535 Approvals Mgmt. GetApprovalComment

Release.OnAction line 1448, trigger

  1. 1450callsTable 38 Purchase Header PerformManualRelease

Reopen.OnAction line 1462, trigger

  1. 1466callsCodeunit 415 Release Purchase Document PerformManualReopen

CalculateInvoiceDiscount.OnAction line 1483, trigger

  1. 1485callsApproveCalcInvDisc
  2. 1486callsCodeunit 66 Purch - Calc Disc. By Type ResetRecalculateInvoiceDisc

GetRecurringPurchaseLines.OnAction line 1497, trigger

  1. 1501callsTable 175 Standard Vendor Purchase Code InsertPurchLines

Create Tracking Information.OnAction line 1511, trigger

  1. 1515callsCodeunit 6503 Item Tracking Doc. Management CreateTrackingInfo

CopyDocument.OnAction line 1527, trigger

  1. 1529callsTable 38 Purchase Header CopyDocument

MoveNegativeLines.OnAction line 1543, trigger

  1. 1546callsReport 6698 Move Negative Purchase Lines SetPurchHeader
  2. 1548callsReport 6698 Move Negative Purchase Lines ShowDocument

Action187.OnAction line 1576, trigger

  1. 1582callsCodeunit 5702 Dist. Integration GetSpecialOrders

Archive Document.OnAction line 1594, trigger

  1. 1596callsCodeunit 5063 ArchiveManagement ArchivePurchDocument

Send Intercompany Purchase Order.OnAction line 1608, trigger

  1. 1614callsCodeunit 1535 Approvals Mgmt. PrePostApprovalCheckPurch
  2. 1615callsCodeunit 427 ICInboxOutboxMgt SendPurchDoc
  3. 1616callsCodeunit 404 IC Feedback ShowIntercompanyMessage

Reject IC Purchase Order.OnAction line 1628, trigger

  1. 1632callsCodeunit 427 ICInboxOutboxMgt IsPurchaseHeaderFromIncomingIC
  2. 1635callsCodeunit 427 ICInboxOutboxMgt RejectAcceptedPurchaseHeader

IncomingDocCard.OnAction line 1651, trigger

  1. 1655callsTable 130 Incoming Document ShowCardFromEntryNo

SelectIncomingDoc.OnAction line 1666, trigger

  1. 1670validatesTable 38 Purchase Header Incoming Document Entry No.
  2. 1670callsTable 130 Incoming Document SelectIncomingDocument

IncomingDocAttachFile.OnAction line 1682, trigger

  1. 1686callsTable 133 Incoming Document Attachment NewAttachmentFromPurchaseDocument

RemoveIncomingDoc.OnAction line 1697, trigger

  1. 1703callsTable 130 Incoming Document RemoveLinkToRelatedRecord
  2. 1705writesTable 38 Purchase Header Modify(true)

SendApprovalRequest.OnAction line 1721, trigger

  1. 1725callsCodeunit 1535 Approvals Mgmt. CheckPurchaseApprovalPossible
  2. 1726callsCodeunit 1535 Approvals Mgmt. OnSendPurchaseDocForApproval

CancelApprovalRequest.OnAction line 1737, trigger

  1. 1742callsCodeunit 1535 Approvals Mgmt. OnCancelPurchaseApprovalRequest
  2. 1743callsCodeunit 1543 Workflow Webhook Management FindAndCancel

Create &Whse. Receipt.OnAction line 1774, trigger

  1. 1778callsTable 38 Purchase Header PerformManualRelease
  2. 1779callsCodeunit 5751 Get Source Doc. Inbound CreateFromPurchOrder

Create Inventor&y Put-away/Pick.OnAction line 1793, trigger

  1. 1795callsTable 38 Purchase Header PerformManualRelease
  2. 1796callsTable 38 Purchase Header CreateInvtPutAwayPick

Post.OnAction line 1815, trigger

  1. 1817callsPostDocument

Preview.OnAction line 1828, trigger

  1. 1830callsShowPreview

Post and &Print.OnAction line 1842, trigger

  1. 1844callsPostDocument

PostAndNew.OnAction line 1856, trigger

  1. 1858callsPostDocument

Test Report.OnAction line 1869, trigger

  1. 1871callsCodeunit 228 Test Report-Print PrintPurchHeader

Post &Batch.OnAction line 1882, trigger

  1. 1884runsReport 496 Batch Post Purchase Orders

Remove From Job Queue.OnAction line 1896, trigger

  1. 1898callsTable 38 Purchase Header CancelBackgroundPosting

Prepayment Test &Report.OnAction line 1913, trigger

  1. 1915callsCodeunit 228 Test Report-Print PrintPurchHeaderPrepmt

PostPrepaymentInvoice.OnAction line 1926, trigger

  1. 1931callsCodeunit 1535 Approvals Mgmt. PrePostApprovalCheckPurch
  2. 1932callsCodeunit 445 Purch.-Post Prepmt. (Yes/No) PostPrepmtInvoiceYN

Post and Print Prepmt. Invoic&e.OnAction line 1943, trigger

  1. 1948callsCodeunit 1535 Approvals Mgmt. PrePostApprovalCheckPurch
  2. 1949callsCodeunit 445 Purch.-Post Prepmt. (Yes/No) PostPrepmtInvoiceYN

PreviewPrepmtInvoicePosting.OnAction line 1959, trigger

  1. 1961callsShowPrepmtInvoicePreview

PostPrepaymentCreditMemo.OnAction line 1972, trigger

  1. 1977callsCodeunit 1535 Approvals Mgmt. PrePostApprovalCheckPurch
  2. 1978callsCodeunit 445 Purch.-Post Prepmt. (Yes/No) PostPrepmtCrMemoYN

Post and Print Prepmt. Cr. Mem&o.OnAction line 1989, trigger

  1. 1994callsCodeunit 1535 Approvals Mgmt. PrePostApprovalCheckPurch
  2. 1995callsCodeunit 445 Purch.-Post Prepmt. (Yes/No) PostPrepmtCrMemoYN

PreviewPrepmtCrMemoPosting.OnAction line 2005, trigger

  1. 2007callsShowPrepmtCrMemoPreview

&Print.OnAction line 2024, trigger

  1. 2030callsTable 38 Purchase Header PrintRecords

Email.OnAction line 2041, trigger

  1. 2045callsCodeunit 229 Document-Print EmailPurchHeader

SendCustom.OnAction line 2056, trigger

  1. 2062callsTable 38 Purchase Header SendRecords

AttachAsPDF.OnAction line 2072, trigger

  1. 2079callsCodeunit 229 Document-Print PrintPurchaseHeaderToDocumentAttachment

OnAfterGetCurrRecord line 2264, trigger

  1. 2266callsSetControlAppearance
  2. 2270callsTable 38 Purchase Header GetStatusStyleText
  3. 2271callsTable 38 Purchase Header GetContactDetails

Category_Report.OnAfterGetRecord line 2274, trigger

  1. 2278callsCodeunit 427 ICInboxOutboxMgt IsPurchaseHeaderFromIncomingIC
  2. 2279callsCalculateCurrentShippingAndPayToOption
  3. 2280callsShowOverReceiptNotification
  4. 2281callsTable 38 Purchase Header GetContactDetails
  5. 2285raisesOnAfterOnAfterGetRecord

OnDeleteRecord line 2288, trigger

  1. 2291callsTable 38 Purchase Header ConfirmDeletion

OnInit line 2294, trigger

  1. 2298callsTable 312 Purchases & Payables Setup JobQueueActive
  2. 2299callsSetExtDocNoMandatoryCondition
  3. 2300callsCodeunit 9179 Application Area Mgmt. Facade IsLocationEnabled
  4. 2300callsCodeunit 9179 Application Area Mgmt. Facade IsAllDisabled
  5. 2301callsCodeunit 1563 Privacy Notice GetPrivacyNoticeApprovalState
  6. 2301callsCodeunit 6400 Flow Service Management GetPowerAutomatePrivacyNoticeId

OnNewRecord line 2304, trigger

  1. 2308callsCodeunit 109 Lookup State Manager IsRecordSaved
  2. 2309callsCodeunit 109 Lookup State Manager ClearSavedRecord
  3. 2311callsCodeunit 5700 User Setup Management GetPurchasesFilter
  4. 2313callsTable 38 Purchase Header SetBuyFromVendorFromFilter
  5. 2314callsTable 38 Purchase Header SelectDefaultRemitAddress
  6. 2317callsCalculateCurrentShippingAndPayToOption

OnOpenPage line 2325, trigger

  1. 2331callsSetOpenPage
  2. 2333callsActivateFields
  3. 2335callsCheckShowBackgrValidationNotification
  4. 2336callsCodeunit 427 ICInboxOutboxMgt IsPurchaseHeaderFromIncomingIC
  5. 2344callsCodeunit 427 ICInboxOutboxMgt ShowDuplicateICDocumentWarning
  6. 2353callsCodeunit 427 ICInboxOutboxMgt ShowDuplicateICDocumentWarning
  7. 2355callsCodeunit 799 VAT Reporting Date Mgt IsVATDateEnabled

OnQueryClosePage line 2359, trigger

  1. 2364callsShowReleaseNotification
  2. 2365callsCodeunit 1330 Instruction Mgt. ShowConfirmUnreleased
  3. 2368raisesOnQueryClosePageOnAfterCalcShowConfirmCloseUnposted
  4. 2370callsTable 38 Purchase Header ConfirmCloseUnposted

SetOpenPage line 2425, local

  1. 2429callsSetDocNoVisible
  2. 2430callsCodeunit 457 Environment Information IsSaaS
  3. 2432callsTable 38 Purchase Header SetSecurityFilterOnRespCenter
  4. 2438raisesOnAfterSetOpenPage

ActivateFields line 2441, local

  1. 2443callsCodeunit 365 Format Address UseCounty
  2. 2444callsCodeunit 365 Format Address UseCounty
  3. 2445callsCodeunit 365 Format Address UseCounty
  4. 2449callsTable 38 Purchase Header PurchaseLinesEditable

CallPostDocument line 2452

  1. 2454callsPostDocument

PostDocument line 2457, local

  1. 2465callsCodeunit 1320 Lines Instruction Mgt. PurchaseCheckAllLinesHaveQuantityAssigned
  2. 2467callsTable 38 Purchase Header SendToPosting
  3. 2478raisesOnPostDocumentOnAfterCalcDocumentIsScheduledForPosting
  4. 2484raisesOnPostDocumentBeforeNavigateAfterPostingIsHandled
  5. 2492callsCodeunit 1330 Instruction Mgt. IsEnabled
  6. 2492callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode
  7. 2493callsShowPostedConfirmationMessage
  8. 2501validatesTable 38 Purchase Header Document Type
  9. 2502raisesOnPostDocumentOnBeforePurchaseHeaderInsert
  10. 2503writesTable 38 Purchase Header Insert(true)
  11. 2504runsPage 50 Purchase Order

SaveInvoiceDiscountAmount line 2514, protected

  1. 2519callsCodeunit 57 Document Totals PurchaseRedistributeInvoiceDiscountAmountsOnDocument

ShowPreview line 2549, local

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

ShowPrepmtInvoicePreview line 2556, local

  1. 2560callsCodeunit 445 Purch.-Post Prepmt. (Yes/No) Preview

ShowPrepmtCrMemoPreview line 2563, local

  1. 2567callsCodeunit 445 Purch.-Post Prepmt. (Yes/No) Preview

SetDocNoVisible line 2570, local

  1. 2574callsCodeunit 1400 DocumentNoVisibility PurchaseDocumentNoIsVisible

SetExtDocNoMandatoryCondition line 2577, local

  1. 2579callsTable 312 Purchases & Payables Setup GetRecordOnce

SetControlAppearance line 2583, local

  1. 2591callsSetExtDocNoMandatoryCondition
  2. 2592callsSetPostingGroupEditable
  3. 2594callsCodeunit 1535 Approvals Mgmt. HasOpenApprovalEntriesForCurrentUser
  4. 2595callsCodeunit 1535 Approvals Mgmt. HasOpenApprovalEntries
  5. 2596callsCodeunit 1535 Approvals Mgmt. CanCancelApprovalForRecord
  6. 2598callsCodeunit 1543 Workflow Webhook Management GetCanRequestAndCanCancel
  7. 2599callsTable 38 Purchase Header ShouldSearchForVendorByName
  8. 2600callsCodeunit 9070 Document Errors Mgt. BackgroundValidationEnabled
  9. 2602callsTable 38 Purchase Header PurchaseLinesEditable
  10. 2604raisesOnAfterSetControlAppearance

CheckShowBackgrValidationNotification line 2612, local

  1. 2616callsCodeunit 9070 Document Errors Mgt. CheckShowEnableBackgrValidationNotification
  2. 2617callsSetControlAppearance

ShowPostedConfirmationMessage line 2628, local

  1. 2638callsCodeunit 404 IC Feedback ShowIntercompanyMessage
  2. 2639callsCodeunit 1330 Instruction Mgt. ShowConfirm
  3. 2640callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode
  4. 2642callsCodeunit 1330 Instruction Mgt. ShowPostedDocument

ValidateShippingOption line 2647, local

  1. 2652raisesOnBeforeValidateShippingOption
  2. 2659validatesTable 38 Purchase Header Sell-to Customer No.
  3. 2661validatesTable 38 Purchase Header Location Code
  4. 2664validatesTable 38 Purchase Header Sell-to Customer No.

ShowReleaseNotification line 2668, local

  1. 2672callsTable 38 Purchase Header TestStatusIsNotReleased

CalculateCurrentShippingAndPayToOption line 2687, local

  1. 2696raisesOnBeforeCalculateCurrentShippingAndPayToOption
  2. 2706callsTable 38 Purchase Header ShipToAddressEqualsCompanyShipToAddress
  3. 2712callsTable 38 Purchase Header BuyFromAddressEqualsPayToAddress
  4. 2714callsTable 38 Purchase Header BuyFromAddressEqualsPayToAddress
  5. 2723raisesOnAfterCalculateCurrentShippingAndPayToOption

ShowOverReceiptNotification line 2728, local

  1. 2732callsCodeunit 8510 Over-Receipt Mgt. ShowOverReceiptNotificationFromOrder

FillRemitToFields line 2735, local

  1. 2743callsCodeunit 365 Format Address VendorRemitToAddress