Page 51 Purchase Invoice

Base Application, Microsoft.Purchases.Document

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

No..OnAssistEdit line 58, trigger

  1. 60callsTable 38 Purchase Header AssistEdit

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

  1. 74callsTable 38 Purchase Header PurchaseLinesEditable
  2. 75callsTable 38 Purchase Header OnAfterValidateBuyFromVendorNo

Buy-from Vendor Name.OnAfterLookup line 87, trigger

  1. 93validatesTable 38 Purchase Header Buy-from Vendor No.
  2. 94callsTable 38 Purchase Header PurchaseLinesEditable

Buy-from Vendor Name.OnValidate line 99, trigger

  1. 101callsTable 38 Purchase Header PurchaseLinesEditable
  2. 102callsTable 38 Purchase Header OnAfterValidateBuyFromVendorNo

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

  1. 173callsCodeunit 365 Format Address UseCounty

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

  1. 184callsTable 38 Purchase Header BuyfromContactLookup

Buy-from Contact.OnLookup line 232, trigger

  1. 234callsTable 38 Purchase Header LookupBuyFromContact

Posting Date.OnValidate line 253, trigger

  1. 255callsSaveInvoiceDiscountAmount

Purchaser Code.OnValidate line 293, trigger

  1. 295callsPurchaserCodeOnAfterValidate

Job Queue Status.OnDrillDown line 355, trigger

  1. 361callsTable 472 Job Queue Entry ShowStatusMsg

Currency Code.OnAssistEdit line 392, trigger

  1. 397raisesOnBeforeCurrencyCodeOnAssistEditIsHandled
  2. 403callsPage 511 Change Exchange Rate SetParameter
  3. 405callsPage 511 Change Exchange Rate SetParameter
  4. 407validatesTable 38 Purchase Header Currency Factor
  5. 407callsPage 511 Change Exchange Rate GetParameter
  6. 408callsSaveInvoiceDiscountAmount

Currency Code.OnValidate line 413, trigger

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

Prices Including VAT.OnValidate line 429, trigger

  1. 431callsPricesIncludingVATOnAfterValid

VAT Bus. Posting Group.OnValidate line 438, trigger

  1. 444callsCodeunit 9179 Application Area Mgmt. Facade IsFoundationEnabled
  2. 445callsCodeunit 66 Purch - Calc Disc. By Type ApplyDefaultInvoiceDiscount

Shortcut Dimension 1 Code.OnValidate line 475, trigger

  1. 477callsShortcutDimension1CodeOnAfterV

Shortcut Dimension 2 Code.OnValidate line 484, trigger

  1. 486callsShortcutDimension2CodeOnAfterV

ShippingOptionWithLocation.OnValidate line 557, trigger

  1. 559callsValidateShippingOption

PayToOptions.OnValidate line 678, trigger

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

Pay-to Name.OnValidate line 698, trigger

  1. 707callsCodeunit 9179 Application Area Mgmt. Facade IsFoundationEnabled
  2. 708callsCodeunit 66 Purch - Calc Disc. By Type ApplyDefaultInvoiceDiscount

Pay-to Name.OnAfterLookup line 713, trigger

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

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

  1. 804callsCodeunit 365 Format Address UseCounty

Remit-to Code.OnValidate line 860, trigger

  1. 862callsFillRemitToFields

Dimensions.OnAction line 1134, trigger

  1. 1136callsTable 38 Purchase Header ShowDocDim

DocAttach.OnAction line 1147, trigger

  1. 1153callsPage 1173 Document Attachment Details OpenForRecRef

IncomingDocCard.OnAction line 1172, trigger

  1. 1176callsTable 130 Incoming Document ShowCardFromEntryNo

SelectIncomingDoc.OnAction line 1187, trigger

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

IncomingDocAttachFile.OnAction line 1204, trigger

  1. 1208callsTable 133 Incoming Document Attachment NewAttachmentFromPurchaseDocument

IncomingDocEmailAttachment.OnAction line 1221, trigger

  1. 1224callsCodeunit 1630 Office Management InitiateSendToIncomingDocumentsWithPurchaseHeaderLink

RemoveIncomingDoc.OnAction line 1235, trigger

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

Approve.OnAction line 1257, trigger

  1. 1261callsCodeunit 1535 Approvals Mgmt. ApproveRecordApprovalRequest

Reject.OnAction line 1272, trigger

  1. 1276callsCodeunit 1535 Approvals Mgmt. RejectRecordApprovalRequest

Delegate.OnAction line 1287, trigger

  1. 1291callsCodeunit 1535 Approvals Mgmt. DelegateRecordApprovalRequest

Comment.OnAction line 1302, trigger

  1. 1306callsCodeunit 1535 Approvals Mgmt. GetApprovalComment

Re&lease.OnAction line 1322, trigger

  1. 1326callsCodeunit 415 Release Purchase Document PerformManualRelease

Reopen.OnAction line 1338, trigger

  1. 1342callsCodeunit 415 Release Purchase Document PerformManualReopen

Reject IC Purchase Invoice.OnAction line 1354, trigger

  1. 1358callsCodeunit 427 ICInboxOutboxMgt IsPurchaseHeaderFromIncomingIC
  2. 1361callsCodeunit 427 ICInboxOutboxMgt RejectAcceptedPurchaseHeader

GetRecurringPurchaseLines.OnAction line 1379, trigger

  1. 1383callsTable 175 Standard Vendor Purchase Code InsertPurchLines

CopyDocument.OnAction line 1397, trigger

  1. 1399callsTable 38 Purchase Header CopyDocument

CalculateInvoiceDiscount.OnAction line 1413, trigger

  1. 1415callsApproveCalcInvDisc
  2. 1416callsCodeunit 66 Purch - Calc Disc. By Type ResetRecalculateInvoiceDisc

Create Tracking Information.OnAction line 1426, trigger

  1. 1430callsCodeunit 6503 Item Tracking Doc. Management CreateTrackingInfo

MoveNegativeLines.OnAction line 1441, trigger

  1. 1444callsReport 6698 Move Negative Purchase Lines SetPurchHeader
  2. 1446callsReport 6698 Move Negative Purchase Lines ShowDocument

MatchedOrderLines.OnAction line 1456, trigger

  1. 1460callsPage 5818 Matched Order Lines InitializePage

Approvals.OnAction line 1476, trigger

  1. 1480callsCodeunit 1535 Approvals Mgmt. OpenApprovalsPurchase

SendApprovalRequest.OnAction line 1491, trigger

  1. 1495callsCodeunit 1535 Approvals Mgmt. CheckPurchaseApprovalPossible
  2. 1496callsCodeunit 1535 Approvals Mgmt. OnSendPurchaseDocForApproval

CancelApprovalRequest.OnAction line 1507, trigger

  1. 1512callsCodeunit 1535 Approvals Mgmt. OnCancelPurchaseApprovalRequest
  2. 1513callsCodeunit 1543 Workflow Webhook Management FindAndCancel

Post.OnAction line 1544, trigger

  1. 1546callsVerifyTotal
  2. 1547callsPostDocument

Preview.OnAction line 1558, trigger

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

TestReport.OnAction line 1573, trigger

  1. 1575callsCodeunit 228 Test Report-Print PrintPurchHeader

PostAndPrint.OnAction line 1587, trigger

  1. 1589callsVerifyTotal
  2. 1590callsPostDocument

PostAndNew.OnAction line 1602, trigger

  1. 1604callsPostDocument

PostBatch.OnAction line 1615, trigger

  1. 1617callsVerifyTotal
  2. 1618runsReport 497 Batch Post Purchase Invoices

RemoveFromJobQueue.OnAction line 1630, trigger

  1. 1632callsTable 38 Purchase Header CancelBackgroundPosting

OnAfterGetCurrRecord line 1791, trigger

  1. 1793callsSetControlAppearance
  2. 1797callsTable 38 Purchase Header GetStatusStyleText
  3. 1798callsTable 38 Purchase Header GetContactDetails

Category_Report.OnAfterGetRecord line 1801, trigger

  1. 1805callsCodeunit 427 ICInboxOutboxMgt IsPurchaseHeaderFromIncomingIC
  2. 1806callsCalculateCurrentShippingAndPayToOption
  3. 1807callsTable 38 Purchase Header GetContactDetails
  4. 1811raisesOnAfterOnAfterGetRecord

OnDeleteRecord line 1814, trigger

  1. 1817callsTable 38 Purchase Header ConfirmDeletion

OnInit line 1820, trigger

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

OnNewRecord line 1828, trigger

  1. 1831callsCodeunit 5700 User Setup Management GetPurchasesFilter
  2. 1834callsTable 38 Purchase Header SetBuyFromVendorFromFilter
  3. 1835callsTable 38 Purchase Header SelectDefaultRemitAddress
  4. 1838callsCalculateCurrentShippingAndPayToOption

OnOpenPage line 1846, trigger

  1. 1853callsTable 312 Purchases & Payables Setup ShouldDocumentTotalAmountsBeChecked
  2. 1854callsTable 312 Purchases & Payables Setup CanDocumentTotalAmountsBeEdited
  3. 1855callsSetDocNoVisible
  4. 1856callsCodeunit 1630 Office Management IsAvailable
  5. 1857callsCodeunit 1630 Office Management OCRAvailable
  6. 1858callsCodeunit 1630 Office Management IsOutlookMobileApp
  7. 1859callsCodeunit 457 Environment Information IsSaaS
  8. 1861callsTable 38 Purchase Header SetSecurityFilterOnRespCenter
  9. 1868callsActivateFields
  10. 1870callsCheckShowBackgrValidationNotification
  11. 1871callsFillRemitToFields
  12. 1872callsCodeunit 427 ICInboxOutboxMgt IsPurchaseHeaderFromIncomingIC
  13. 1880callsCodeunit 427 ICInboxOutboxMgt ShowDuplicateICDocumentWarning
  14. 1887callsCodeunit 427 ICInboxOutboxMgt ShowDuplicateICDocumentWarning
  15. 1889callsCodeunit 799 VAT Reporting Date Mgt IsVATDateEnabled

OnQueryClosePage line 1893, trigger

  1. 1898raisesOnQueryClosePageOnAfterCalcShowConfirmCloseUnposted
  2. 1900callsTable 38 Purchase Header ConfirmCloseUnposted

ActivateFields line 1960, local

  1. 1962callsCodeunit 365 Format Address UseCounty
  2. 1963callsCodeunit 365 Format Address UseCounty
  3. 1964callsCodeunit 365 Format Address UseCounty
  4. 1968callsTable 38 Purchase Header PurchaseLinesEditable

CallPostDocument line 1975

  1. 1977callsPostDocument

PostDocument line 1980, local

  1. 1992raisesOnBeforePostDocumentIsHandled
  2. 1996callsCodeunit 1320 Lines Instruction Mgt. PurchaseCheckAllLinesHaveQuantityAssigned
  3. 2000callsTable 38 Purchase Header SendToPosting
  4. 2011raisesOnPostDocumentOnAfterCalcDocumentIsScheduledForPosting
  5. 2017raisesOnPostDocumentBeforeNavigateAfterPostingIsHandled
  6. 2033runsPage 138 Posted Purchase Invoice
  7. 2035callsCodeunit 1330 Instruction Mgt. IsEnabled
  8. 2035callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode
  9. 2036callsShowPostedConfirmationMessage
  10. 2041validatesTable 38 Purchase Header Document Type
  11. 2042raisesOnPostDocumentOnBeforePurchaseHeaderInsert
  12. 2043writesTable 38 Purchase Header Insert(true)
  13. 2044runsPage 51 Purchase Invoice

VerifyTotal line 2049, protected

  1. 2054raisesOnBeforeVerifyTotalIsHandled
  2. 2058callsTable 38 Purchase Header IsTotalValid

SaveInvoiceDiscountAmount line 2067, local

  1. 2072callsCodeunit 57 Document Totals PurchaseRedistributeInvoiceDiscountAmountsOnDocument

SetDocNoVisible line 2098, local

  1. 2103callsCodeunit 1400 DocumentNoVisibility PurchaseDocumentNoIsVisible

SetExtDocNoMandatoryCondition line 2106, local

  1. 2108callsTable 312 Purchases & Payables Setup GetRecordOnce

SetControlAppearance line 2112, local

  1. 2119callsTable 312 Purchases & Payables Setup ShouldDocumentTotalAmountsBeChecked
  2. 2120callsTable 312 Purchases & Payables Setup CanDocumentTotalAmountsBeEdited
  3. 2121callsSetExtDocNoMandatoryCondition
  4. 2122callsSetPostingGroupEditable
  5. 2124callsCodeunit 1630 Office Management EmailHasAttachments
  6. 2125callsCodeunit 1535 Approvals Mgmt. HasOpenApprovalEntriesForCurrentUser
  7. 2126callsCodeunit 1535 Approvals Mgmt. HasOpenApprovalEntries
  8. 2128callsCodeunit 1535 Approvals Mgmt. CanCancelApprovalForRecord
  9. 2130callsTable 38 Purchase Header PurchaseLinesEditable
  10. 2132callsCodeunit 1543 Workflow Webhook Management GetCanRequestAndCanCancel
  11. 2133callsCodeunit 9070 Document Errors Mgt. BackgroundValidationEnabled

CheckShowBackgrValidationNotification line 2141, local

  1. 2145callsCodeunit 9070 Document Errors Mgt. CheckShowEnableBackgrValidationNotification
  2. 2146callsSetControlAppearance

ShowPostedConfirmationMessage line 2157, local

  1. 2168callsCodeunit 1330 Instruction Mgt. ShowConfirm
  2. 2169callsCodeunit 1330 Instruction Mgt. ShowPostedConfirmationMessageCode
  3. 2171callsCodeunit 1330 Instruction Mgt. ShowPostedDocument

ValidateShippingOption line 2174, local

  1. 2176raisesOnBeforeValidateShipToOptions
  2. 2181validatesTable 38 Purchase Header Location Code
  3. 2183validatesTable 38 Purchase Header Location Code
  4. 2186raisesOnAfterValidateShipToOptions

CalculateCurrentShippingAndPayToOption line 2189, local

  1. 2194callsTable 38 Purchase Header ShipToAddressEqualsCompanyShipToAddress
  2. 2200callsTable 38 Purchase Header BuyFromAddressEqualsPayToAddress
  3. 2202callsTable 38 Purchase Header BuyFromAddressEqualsPayToAddress
  4. 2208raisesOnAfterCalculateCurrentShippingAndPayToOption

FillRemitToFields line 2211, local

  1. 2219callsCodeunit 365 Format Address VendorRemitToAddress