Table "Purchase Header"
Properties
| Name | Value |
|---|---|
| Caption | Purchase Header |
| DataCaptionFields | 3,79 |
| LookupPageID | Page Microsoft.Purchases.Document."Purchase List" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Document Type" | Enum Microsoft.Purchases.Document."Purchase Document Type" | |
| "Buy-from Vendor No." | Code[20] | Specifies the vendor who will deliver the goods or services. Each vendor has a unique number to help you track related documents. The number can come from a number series or be added manually. |
| "No." | Code[20] | Specifies a unique number that identifies the purchase order. The number can be generated automatically from a number series, or you can number each of them manually. |
| "Pay-to Vendor No." | Code[20] | Specifies the number of the vendor that you received the invoice from. |
| "Pay-to Name" | Text[100] | Specifies the name of the vendor who you received the invoice from. |
| "Pay-to Name 2" | Text[50] | Specifies an additional part of the name of the vendor who you receive the invoice or credit memo from. |
| "Pay-to Address" | Text[100] | Specifies the address of the vendor sending the invoice. |
| "Pay-to Address 2" | Text[50] | Specifies additional address information. |
| "Pay-to City" | Text[30] | Specifies the city of the vendor on the purchase document. |
| "Pay-to Contact" | Text[100] | Specifies the name of the person to contact about an invoice from this vendor. |
| "Your Reference" | Text[35] | Specifies the vendor's reference. |
| "Ship-to Code" | Code[10] | Specifies a code for an alternate shipment address if you want to ship to another address than the one that has been entered automatically. This field is also used in case of drop shipment. |
| "Ship-to Name" | Text[100] | Specifies the name of the customer at the address that the items are shipped to. |
| "Ship-to Name 2" | Text[50] | Specifies an additional part of the name of the customer that items on the purchase order were shipped to, as a drop shipment. |
| "Ship-to Address" | Text[100] | Specifies the address that you want the items in the purchase order to be shipped to. |
| "Ship-to Address 2" | Text[50] | Specifies additional address information. |
| "Ship-to City" | Text[30] | Specifies the city of the vendor on the purchase document. |
| "Ship-to Contact" | Text[100] | Specifies the name of the contact person at the address that the items are shipped to. |
| "Order Date" | Date | Specifies the date when the order was created. |
| "Posting Date" | Date | Specifies the date when the posting of the purchase document will be recorded. |
| "Expected Receipt Date" | Date | Specifies the date you expect the items to be available in your warehouse. If you leave the field blank, it will be calculated as follows: Planned Receipt Date + Safety Lead Time + Inbound Warehouse Handling Time = Expected Receipt Date. |
| "Posting Description" | Text[100] | Specifies additional posting information for the document. After you post the document, the description can add detail to vendor and customer ledger entries. |
| "Payment Terms Code" | Code[10] | Specifies a formula that calculates the payment due date, payment discount date, and payment discount amount. |
| "Due Date" | Date | Specifies when the purchase invoice is due for payment. |
| "Payment Discount %" | Decimal | Specifies the payment discount percent granted if payment is made on or before the date in the Pmt. Discount Date field. |
| "Pmt. Discount Date" | Date | Specifies the date on which the amount in the entry must be paid for a payment discount to be granted. |
| "Shipment Method Code" | Code[10] | Specifies the delivery conditions of the related shipment, such as free on board (FOB). |
| "Location Code" | Code[10] | Specifies the code for the location where the items are to be received. When you select the vendor and the vendor has a location assigned, the value is taken from the Vendor card. If the vendor has no location, but a Responsibility Center is populated, the location code is taken from the Responsibility Center. If neither is specified, the value is taken from Company Information. This field acts as the default location for new lines. You can update the location code for individual lines as needed. |
| "Shortcut Dimension 1 Code" | Code[20] | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. |
| "Shortcut Dimension 2 Code" | Code[20] | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. |
| "Vendor Posting Group" | Code[20] | Specifies the vendor's market type to link business transactions to. |
| "Currency Code" | Code[10] | Specifies the code of the currency of the amounts on the purchase lines. |
| "Currency Factor" | Decimal | |
| "Prices Including VAT" | Boolean | Specifies if the Unit Price and Line Amount fields on document lines should be shown with or without VAT. |
| "Invoice Disc. Code" | Code[20] | |
| "Language Code" | Code[10] | Specifies the language to be used on printouts for this document. |
| "Format Region" | Text[80] | Specifies the format to be used on printouts for this document. |
| "Purchaser Code" | Code[20] | Specifies which purchaser is assigned to the vendor. |
| "Order Class" | Code[10] | |
| Comment | Boolean | |
| "No. Printed" | Integer | |
| "On Hold" | Code[3] | Specifies that the related entry represents an unpaid invoice for which either a payment suggestion, a reminder, or a finance charge memo exists. |
| "Applies-to Doc. Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type" | Specifies the type of the posted document that this document or journal line will be applied to when you post, for example to register payment. |
| "Applies-to Doc. No." | Code[20] | Specifies the number of the posted document that this document or journal line will be applied to when you post, for example to register payment. |
| "Bal. Account No." | Code[20] | |
| "Recalculate Invoice Disc." | Boolean | |
| Receive | Boolean | |
| Invoice | Boolean | |
| "Print Posted Documents" | Boolean | |
| Amount | Decimal | Specifies the sum of amounts on all the lines in the document. This will include invoice discounts. |
| "Amount Including VAT" | Decimal | Specifies the sum of amounts, including VAT, on all the lines in the document. This will include invoice discounts. |
| "Receiving No." | Code[20] | |
| "Posting No." | Code[20] | |
| "Last Receiving No." | Code[20] | |
| "Last Posting No." | Code[20] | |
| "Vendor Order No." | Code[35] | Specifies the vendor's order number. |
| "Vendor Shipment No." | Code[35] | Specifies the vendor's shipment number. |
| "Vendor Invoice No." | Code[35] | Specifies the document number of the original document you received from the vendor. You can require the document number for posting, or let it be optional. By default, it's required, so that this document references the original. Making document numbers optional removes a step from the posting process. For example, if you attach the original invoice as a PDF, you might not need to enter the document number. To specify whether document numbers are required, in the Purchases & Payables Setup window, select or clear the Ext. Doc. No. Mandatory field. |
| "Vendor Cr. Memo No." | Code[35] | Specifies the document number of the original document you received from the vendor. You can require the document number for posting, or let it be optional. By default, it's required, so that this document references the original. Making document numbers optional removes a step from the posting process. For example, if you attach the original invoice as a PDF, you might not need to enter the document number. To specify whether document numbers are required, in the Purchases & Payables Setup window, select or clear the Ext. Doc. No. Mandatory field. |
| "VAT Registration No." | Text[20] | |
| "Sell-to Customer No." | Code[20] | Specifies the number of the customer that the items are shipped to directly from your vendor, as a drop shipment. |
| "Reason Code" | Code[10] | Specifies the reason code, a supplementary source code that enables you to trace the document. |
| "Gen. Bus. Posting Group" | Code[20] | |
| "Transaction Type" | Code[10] | Specifies the type of transaction that the document represents, for the purpose of reporting to INTRASTAT. |
| "Transport Method" | Code[10] | Specifies the transport method, for the purpose of reporting to INTRASTAT. |
| "VAT Country/Region Code" | Code[10] | |
| "Buy-from Vendor Name" | Text[100] | Specifies the name of the vendor that you’re buying from. By default, the same vendor is suggested as the pay-to vendor. If needed, you can specify a different pay-to vendor on the document. |
| "Buy-from Vendor Name 2" | Text[50] | Specifies an additional part of the name of the vendor that you’re buying from. |
| "Buy-from Address" | Text[100] | Specifies the address of the vendor who ships the items. |
| "Buy-from Address 2" | Text[50] | Specifies additional address information. |
| "Buy-from City" | Text[30] | Specifies the city of the vendor on the purchase document. |
| "Buy-from Contact" | Text[100] | Specifies the name of the contact person at the vendor who delivered the items. |
| "Pay-to Post Code" | Code[20] | Specifies the post code of the vendor that you received the invoice from. |
| "Pay-to County" | Text[30] | Specifies the state, province or county of the address. |
| "Pay-to Country/Region Code" | Code[10] | Specifies the country/region code of the address. |
| "Buy-from Post Code" | Code[20] | Specifies the post code of the vendor who delivered the items. |
| "Buy-from County" | Text[30] | Specifies the state, province or county of the address. |
| "Buy-from Country/Region Code" | Code[10] | Specifies the city of the vendor who delivered the items. |
| "Ship-to Post Code" | Code[20] | Specifies the postal code of the address that the items are shipped to. |
| "Ship-to County" | Text[30] | Specifies the state, province or county of the address. |
| "Ship-to Country/Region Code" | Code[10] | Specifies the country/region code of the address that the items are shipped to. |
| "Bal. Account Type" | Enum Microsoft.Bank.Payment."Payment Balance Account Type" | |
| "Order Address Code" | Code[10] | Specifies the order address of the related vendor. |
| "Entry Point" | Code[10] | Specifies the code of the port of entry where the items pass into your country/region, for reporting to Intrastat. |
| Correction | Boolean | Specifies the entry as a corrective entry. You can use the field if you need to post a corrective entry to a vendor account. If you place a check mark in this field when posting a corrective entry, the system will post a negative debit instead of a credit or a negative credit instead of a debit. Correction flag does not affect how inventory reconciled with general ledger. |
| "Document Date" | Date | Specifies the date when the related document was created. |
| "Area" | Code[10] | Specifies the destination country or region for the purpose of Intrastat reporting. |
| "Transaction Specification" | Code[10] | Specifies a specification of the document's transaction, for the purpose of reporting to INTRASTAT. |
| "Payment Method Code" | Code[10] | Specifies how to make payment, such as with bank transfer, cash, or check. |
| "No. Series" | Code[20] | |
| "Posting No. Series" | Code[20] | |
| "Receiving No. Series" | Code[20] | |
| "Tax Area Code" | Code[20] | Specifies the tax area code used for this purchase to calculate and post sales tax. |
| "Tax Liable" | Boolean | Specifies if this vendor charges you sales tax for purchases. |
| "VAT Bus. Posting Group" | Code[20] | Specifies the VAT specification of the involved customer or vendor to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. |
| "Applies-to ID" | Code[50] | Specifies the ID of entries that will be applied to when you choose the Apply Entries action. |
| "VAT Base Discount %" | Decimal | |
| Status | Enum Microsoft.Purchases.Document."Purchase Document Status" | Specifies whether the record is open, waiting to be approved, invoiced for prepayment, or released to the next stage of processing. |
| "Invoice Discount Calculation" | Option | |
| "Invoice Discount Value" | Decimal | |
| "Send IC Document" | Boolean | |
| "IC Status" | Enum Microsoft.Intercompany.Setup."Purchase Document IC Status" | |
| "Buy-from IC Partner Code" | Code[20] | |
| "Pay-to IC Partner Code" | Code[20] | |
| "IC Reference Document No." | Code[20] | |
| "IC Direction" | Enum Microsoft.Intercompany.Setup."IC Direction Type" | |
| "Prepayment No." | Code[20] | |
| "Last Prepayment No." | Code[20] | |
| "Prepmt. Cr. Memo No." | Code[20] | |
| "Last Prepmt. Cr. Memo No." | Code[20] | |
| "Prepayment %" | Decimal | Specifies the prepayment percentage to use to calculate the prepayment for purchase. |
| "Prepayment No. Series" | Code[20] | |
| "Compress Prepayment" | Boolean | Specifies that prepayments on the purchase order are combined if they have the same general ledger account for prepayments or the same dimensions. |
| "Prepayment Due Date" | Date | Specifies when the prepayment invoice for this purchase order is due. |
| "Prepmt. Cr. Memo No. Series" | Code[20] | |
| "Prepmt. Posting Description" | Text[100] | |
| "Prepmt. Pmt. Discount Date" | Date | Specifies the last date the vendor can pay the prepayment invoice and still receive a payment discount on the prepayment amount. |
| "Prepmt. Payment Terms Code" | Code[10] | Specifies the code that represents the payment terms for prepayment invoices related to the purchase document. |
| "Prepmt. Payment Discount %" | Decimal | Specifies the payment discount percent granted on the prepayment if the vendor pays on or before the date entered in the Prepmt. Pmt. Discount Date field. |
| "Spend Request No." | Code[20] | Specifies the spend request that this purchase document relates to. |
| "Spend Request Close" | Boolean | Specifies that the spend request will be closed when the purchase document is posted. |
| "Quote No." | Code[20] | Specifies the quote number for the purchase order. |
| "Job Queue Status" | Enum System.Threading."Document Job Queue Status" | Specifies the status of a job queue entry that handles the posting of purchase orders. |
| "Job Queue Entry ID" | Guid | |
| "Incoming Document Entry No." | Integer | Specifies the number of the incoming document that this purchase document is created for. |
| "Creditor No." | Code[20] | Specifies the number of the vendor. |
| "Payment Reference" | Code[50] | Specifies the payment of the purchase invoice. |
| "Invoice Received Date" | Date | Specifies the date when the related document was received. |
| "Journal Templ. Name" | Code[10] | Specifies the name of the journal template in which the purchase header is to be posted. |
| "VAT Reporting Date" | Date | Specifies the date used to include entries on VAT reports in a VAT period. This is either the date that the document was created or posted, depending on your setting on the General Ledger Setup page. |
| "Self-Billing Invoice" | Boolean | |
| "Ship-to Phone No." | Text[30] | Specifies the telephone number of the company's shipping address. |
| "A. Rcd. Not Inv. Ex. VAT (LCY)" | Decimal | Specifies the amount excluding VAT for the items on the order that have been received but are not yet invoiced. |
| "Amt. Rcd. Not Invoiced (LCY)" | Decimal | Specifies the sum, in LCY, for items that have been received but have not yet been invoiced. The value in the Amt. Rcd. Not Invoiced (LCY) field is used for entries in the Purchase Line table of document type Order to calculate and update the contents of this field. |
| "Dimension Set ID" | Integer | |
| "Remit-to Code" | Code[20] | Specifies the code for the vendor's remit address for this invoice. |
| "Invoice Discount Amount" | Decimal | |
| "No. of Archived Versions" | Integer | Specifies the number of archived versions for this document. |
| "Doc. No. Occurrence" | Integer | |
| "Campaign No." | Code[20] | Specifies the campaign number the document is linked to. |
| "Buy-from Contact No." | Code[20] | Specifies the number of your contact at the vendor. |
| "Pay-to Contact No." | Code[20] | Specifies the number of the contact who sends the invoice. |
| "Buy-from Vendor Templ. Code" | Code[20] | Specifies the code for the template to create a new vendors |
| "Pay-to Vendor Templ. Code" | Code[20] | |
| "Responsibility Center" | Code[10] | Specifies the code of the responsibility center, such as a distribution hub, that is associated with the involved user, company, customer, or vendor. |
| "Partially Invoiced" | Boolean | |
| "Completely Received" | Boolean | Specifies if all the items on the order have been shipped or, in the case of inbound items, completely received. |
| "Posting from Whse. Ref." | Integer | |
| "Location Filter" | Code[10] | |
| "Received Not Invoiced" | Boolean | |
| "Requested Receipt Date" | Date | Specifies the date that you want the vendor to deliver to the ship-to address. The value in the field is used to calculate the latest date you can order the items to have them delivered on the requested receipt date. If you do not need delivery on a specific date, you can leave the field blank. |
| "Promised Receipt Date" | Date | Specifies the date that the vendor has promised to deliver the order. |
| "Lead Time Calculation" | DateFormula | Specifies a date formula for the amount of time it takes to replenish the item. |
| "Inbound Whse. Handling Time" | DateFormula | Specifies the time it takes to make items part of available inventory, after the items have been posted as received. |
| "Date Filter" | Date | |
| "Vendor Authorization No." | Code[35] | Specifies the compensation agreement identification number, sometimes referred to as the RMA No. (Returns Materials Authorization). |
| "Return Shipment No." | Code[20] | |
| "Return Shipment No. Series" | Code[20] | |
| Ship | Boolean | |
| "Last Return Shipment No." | Code[20] | |
| "Receipt on Invoice" | Boolean | Specifies whether the receipt is posted with the invoice. |
| "Price Calculation Method" | Enum Microsoft.Pricing.Calculation."Price Calculation Method" | |
| "Assigned User ID" | Code[50] | Specifies the ID of the user who is responsible for the document. |
| "Pending Approvals" | Integer | |
| "Doc. Amount Incl. VAT" | Decimal | Specifies the total amount (including VAT) of the purchase invoice or credit memo as specified in the external document. When this value comes from an e-document service, it's value can't be changed. |
| "Doc. Amount VAT" | Decimal | Specifies the VAT amount of the purchase invoice or credit memo as specified in the external document. When this values comes from an e-document service, it's value can't be changed. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemCreatedByUserName | Text[50] | |
| SystemCreatedByFullName | Text[80] | |
| SystemModifiedByUserName | Text[50] | |
| SystemModifiedByFullName | Text[80] | |
| SystemRowVersion | BigInteger |
Methods
InitInsert
Initializes a new purchase header with a new document number from the number series.
procedure InitInsert()
InitRecord
Initializes a new purchase header with default values.
procedure InitRecord()
InitPostingDescription
Initializes the posting description with formatted document type and number text for the purchase header.
procedure InitPostingDescription()
SetStandardCodesMgt
Sets global StandardCodesMgtGlobal codeunit to a new instance.
procedure SetStandardCodesMgt(var StandardCodesMgtNew: Codeunit "Standard Codes Mgt.")
Parameters
| Name | Type | Description |
|---|---|---|
| StandardCodesMgtNew | Codeunit Microsoft.Utilities."Standard Codes Mgt." |
The new codeunit instance to set. |
AssistEdit
Opens a page to select related number series for the purchase header and updates the document number with the selected number series.
procedure AssistEdit(OldPurchHeader: Record "Purchase Header"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| OldPurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
Purchase header record before the change. The no series code from this record will be highlighted by default on the open page. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the document number has changed, otherwise false. |
TestNoSeries
Checks if the number series for different types of purchase documents are filled in the purchase setup.
procedure TestNoSeries()
GetNoSeriesCode
Returns the number series code from the purchase setup based on the document type of the purchase header.
procedure GetNoSeriesCode(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Number series code. |
TestNoSeriesDate
Checks if the number series has to be assigned chronologically after various documents are already posted.
procedure TestNoSeriesDate(No: Code[20]; NoSeriesCode: Code[20]; NoCapt: Text[1024]; NoSeriesCapt: Text[1024])
Parameters
| Name | Type | Description |
|---|---|---|
| No | Code[20] |
Posted document number. |
| NoSeriesCode | Code[20] |
Number series code to check. |
| NoCapt | Text[1024] |
Posted document number field caption. |
| NoSeriesCapt | Text[1024] |
Number series field caption. |
ConfirmDeletion
Opens a confirmation dialog to confirm the deletion of the purchase header. This check is to confirm with the user that gaps will happen in the posted documents if the document is deleted.
procedure ConfirmDeletion(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if purchase header should be deleted, otherwise false. |
GetVend
Updates the global Vend record if it doesn't already match the provided vendor no.
procedure GetVend(VendNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| VendNo | Code[20] |
Vendor number to set. |
GetStatusStyleText
Returns document status field style expression based on the status of the purchase header.
procedure GetStatusStyleText(): Text
Returns
| Type | Description |
|---|---|
| Text |
Status style expression. |
PurchLinesExist
Checks if the purchase lines exists for purchase header.
procedure PurchLinesExist(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if purchase lines exists, otherwise false. |
LookupBuyFromContact
procedure LookupBuyFromContact()
PerformManualRelease
procedure PerformManualRelease(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
PerformManualRelease
procedure PerformManualRelease()
PerformManualReopen
procedure PerformManualReopen(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
RecreatePurchLines
Recreates purchase lines for a purchase document when the provided field in the purchase header is changed.
procedure RecreatePurchLines(ChangedFieldName: Text[100])
Parameters
| Name | Type | Description |
|---|---|---|
| ChangedFieldName | Text[100] |
Field that is changed. |
Remarks
Opens confirmation dialog to confirm the deletion of existing purchase lines and then recreates the purchase lines based on the new information in the purchase header. It also handles item charge assignments and extended text lines.
StorePurchCommentLineToTemp
Inserts existing purchase comment lines into a temporary record.
procedure StorePurchCommentLineToTemp(var TempPurchCommentLine: Record "Purch. Comment Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchCommentLine | Table Microsoft.Purchases.Comment."Purch. Comment Line" |
Return value: Inserted purchase comment lines. |
RestorePurchCommentLine
Inserts purchase comment lines for the purchase line of the document from the provided temporary purchase comment line record set.
procedure RestorePurchCommentLine(var TempPurchCommentLine: Record "Purch. Comment Line" temporary; OldDocumentLineNo: Integer; NewDocumentLineNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchCommentLine | Table Microsoft.Purchases.Comment."Purch. Comment Line" |
Temporary purchase comment line record set to insert. |
| OldDocumentLineNo | Integer |
Previous purchase line number. |
| NewDocumentLineNo | Integer |
New purchase line number. |
TransferSavedFieldsDropShipment
Updates certain fields from a source purchase line to a destination purchase line for a drop shipment scenario. It also updates the corresponding sales order line.
procedure TransferSavedFieldsDropShipment(var DestinationPurchaseLine: Record "Purchase Line"; var SourcePurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
Purchase line that will be updated. |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
Temporary purchase line before the changes. |
MessageIfPurchLinesExist
Displays a message if purchase lines exist for the purchase header and the changed field was not updated on the lines.
procedure MessageIfPurchLinesExist(ChangedFieldName: Text[100])
Parameters
| Name | Type | Description |
|---|---|---|
| ChangedFieldName | Text[100] |
Changed purchase header field caption. |
Remarks
Message states that the user must update the existing purchase lines manually.
PriceMessageIfPurchLinesExist
Displays a message to the user if there are existing purchase lines and a provided field in the purchase header has been changed, which might affect the prices and discounts on the purchase lines.
procedure PriceMessageIfPurchLinesExist(ChangedFieldName: Text[100])
Parameters
| Name | Type | Description |
|---|---|---|
| ChangedFieldName | Text[100] |
Changed purchase header field caption. |
Remarks
The message informs the user that the lines have not been updated and must be updated manually. If the changed field is the order date, it offers to update the order dates of the purchase lines automatically.
UpdateCurrencyFactor
Updates currency factor on the purchase header and recreates purchase lines if the currency code has changed.
procedure UpdateCurrencyFactor()
ConfirmCurrencyFactorUpdate
Updates currency factor on the purchase header if confirmed by the user.
procedure ConfirmCurrencyFactorUpdate(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the currency factor has been updated, otherwise false. |
GetHideValidationDialog
Returns the value of the global flag HideValidationDialog.
procedure GetHideValidationDialog(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
The value of the global flag HideValidationDialog. |
SetHideValidationDialog
Sets the value of the global flag HideValidationDialog.
procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| NewHideValidationDialog | Boolean |
The new value to set. |
Remarks
Global flag HideValidationDialog is used to hide various confirmation/message/other dialogs.
UpdateLocationCode
Updates the location code with the specified location code. If it's empty, it takes location code from user setup management. Otherwise, validates the location code with the provided value.
procedure UpdateLocationCode(LocationCode: Code[10])
Parameters
| Name | Type | Description |
|---|---|---|
| LocationCode | Code[10] |
New location code value. |
UpdatePurchLines
Updates purchase lines if the provided field in the purchase header is changed and the confirmation is accepted.
procedure UpdatePurchLines(ChangedFieldName: Text[100]; AskQuestion: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ChangedFieldName | Text[100] |
Changed purchase header field caption. |
| AskQuestion | Boolean |
If true, confirmation message is show to update the lines, otherwise confirmation is not shown. |
UpdatePurchLinesByFieldNo
Updates purchase lines if the provided field in the purchase header is changed.
procedure UpdatePurchLinesByFieldNo(ChangedFieldNo: Integer; AskQuestion: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ChangedFieldNo | Integer |
Changed purchase header field number. |
| AskQuestion | Boolean |
If true, confirmation message is show to update the lines, otherwise confirmation is not shown. |
ConfirmReservationDateConflict
Checks if reservation entry exists for the purchase header and opens a confirmation dialog if the user wants to continue. These reservations will be canceled if a date conflict is caused by the changed field. This is an overload that sets ChangedFieldNo to 0.
procedure ConfirmReservationDateConflict()
ConfirmReservationDateConflict
Checks if reservation entry exists for the purchase header and opens a confirmation dialog if the user wants to continue. These reservations will be canceled if a date conflict is caused by the changed field.
procedure ConfirmReservationDateConflict(ChangedFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| ChangedFieldNo | Integer |
Changed purchase header field number. |
CreateDim
Creates dimensions for the purchase header based on the provided default dimension sources.
procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] |
The list of default dimension sources. |
Remarks
If purchase lines exist and the dimension set has changed the dimensions are updated on the lines.
CouldDimensionsBeKept
Determines if the dimensions of a purchase header could be kept the same when certain fields are changed.
procedure CouldDimensionsBeKept(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the dimensions could be kept, otherwise false. |
ValidateShortcutDimCode
Verifies whether the provided shortcut dimension code and value are valid.
procedure ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| FieldNumber | Integer |
Number of the shortcut dimension. |
| ShortcutDimCode | Code[20] |
Value of the shortcut dimension. |
Remarks
If purchase lines exist, the dimensions are updated on the lines.
ReceivedPurchLinesExist
Determines if purchase lines that are already received exist.
procedure ReceivedPurchLinesExist(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if received purchase lines exists, otherwise false. |
ReturnShipmentExist
Determines if purchase lines that are already returned exist.
procedure ReturnShipmentExist(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if return shipment exists, otherwise false. |
UpdateShipToAddress
Updates the shipping address details of a purchase header based on the location or the company information.
procedure UpdateShipToAddress()
Remarks
If the purchase header is a credit document, the procedure is not executed.
UpdateBuyFromCont
Updates the buy-from contact details of a purchase header based on the provided vendor number.
procedure UpdateBuyFromCont(VendorNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| VendorNo | Code[20] |
Vendor number from which details are taken. |
Remarks
If the contact linked to a specific business relation is found, buy-from contact information is updated from the contact.
TestPostingDate
procedure TestPostingDate(BatchPost: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| BatchPost | Boolean |
CreateInvtPutAwayPick
Creates inventory put-away, pick, or movement documents for a released purchase document.
procedure CreateInvtPutAwayPick()
ShowDocDim
Opens a page for editing dimensions for the purchase header. If dimensions are changed, they're updated on the purchase lines as well.
procedure ShowDocDim()
UpdateAllLineDim
Updates the dimensions of purchase lines in a purchase document when the dimensions of the purchase header are changed.
procedure UpdateAllLineDim(NewParentDimSetID: Integer; OldParentDimSetID: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| NewParentDimSetID | Integer |
New dimension set ID. |
| OldParentDimSetID | Integer |
Previous dimension set ID. |
SetAmountToApply
Updates amount to apply value of the vendor ledger entry based on the applies-to document number and the vendor number.
procedure SetAmountToApply(AppliesToDocNo: Code[20]; VendorNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| AppliesToDocNo | Code[20] |
Applies-to document no. used in filtering the ledger entry. |
| VendorNo | Code[20] |
Vendor no. to filter the ledger entry for. |
Remarks
Procedure is executed after applies-to document number field is validated by selecting a vendor entry from apply vendor entries page.
SetShipToForSpecOrder
Updates the ship-to information of a purchase header based on the associated location. If location code is not specified in the purchase header, the information is updated from company information.
procedure SetShipToForSpecOrder()
GetPstdDocLinesToReverse
Opens a page with posted document lines that can be reversed. After the user selects the lines, they're copied to the current document.
procedure GetPstdDocLinesToReverse()
SetSecurityFilterOnRespCenter
Filters the purchase header for responsibility center set in the user setup or company information. The filter is set in filter group 2 and is hidden from the user.
procedure SetSecurityFilterOnRespCenter()
Remarks
Responsibility filter is set from user setup purchase responsibility control filter field if this field is filled, otherwise it is set from the company information responsibility center field.
CalcInvDiscForHeader
Calculates invoice discount for a purchase header if calculate invoice discount is enabled in the purchase setup.
procedure CalcInvDiscForHeader()
AddShipToAddress
Updates ship-to information of a purchase header based on the provided sales header. If purchase lines exist, it compares the shipping information between the purchase and sales header and throws an error in case of a mismatch.
procedure AddShipToAddress(SalesHeader: Record "Sales Header"; ShowError: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
Sales header from which information is updated. |
| ShowError | Boolean |
If true the procedure is executed and errors are shown. |
DropShptOrderExists
Determines if the drop shipment order exists.
procedure DropShptOrderExists(SalesHeader: Record "Sales Header"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
Sales header record to check. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if drop shipment order exist, otherwise false. |
SpecialOrderExists
Determines if the special order exist.
procedure SpecialOrderExists(SalesHeader: Record "Sales Header"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
Sales header record to check. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if special order exist, otherwise false. |
QtyToReceiveIsZero
Determines if there's anything left to receive for the document.
procedure QtyToReceiveIsZero(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if all lines in a purchase document have quantity to receive 0, otherwise false. |
IsApprovedForPosting
Determines if a purchase document is approved for posting. For orders, it additionally checks if the payment and prepayment conditions are met.
procedure IsApprovedForPosting(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if a purchase document is approved for posting, otherwise false. |
IsApprovedForPostingBatch
Determines if a purchase document is approved for posting. It checks if the prepayment and payment conditions are met.
procedure IsApprovedForPostingBatch(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if a purchase document is approved for posting, otherwise false. |
IsTotalValid
Determines if the total amount including VAT of an incoming document matches the total amount including VAT of the purchase document.
procedure IsTotalValid(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the total matches, otherwise false. |
Remarks
Used to check if the invoice can be posted.
SendToPosting
Posts a purchase document by running the provided codeunit if the document is approved for posting.
procedure SendToPosting(PostingCodeunitID: Integer): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| PostingCodeunitID | Integer |
Posting codeunit id that needs to be executed. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the document was successfully posted, otherwise false. |
Remarks
The transaction is committed before the posting codeunit is run. After the posting codeunit is executed any errors that occur during the posting operation are shown.
CancelBackgroundPosting
Cancels a background posting job for a purchase document.
procedure CancelBackgroundPosting()
GetDocTypeTxt
Retrieves the full document type name based on the purchase header document type.
procedure GetDocTypeTxt(): Text[50]
Returns
| Type | Description |
|---|---|
| Text[50] |
Retrieved document type name. |
AddSpecialOrderToAddress
Adds the shipping information from a special order. If lines exist, it compares the current shipping information with the information on the special order and throws an error if there's a mismatch.
procedure AddSpecialOrderToAddress(var SalesHeader: Record "Sales Header"; ShowError: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
Sales header to which ship-to information is compared. |
| ShowError | Boolean |
If true the procedure is executed and errors are shown. |
InvoicedLineExists
Returns true or false whether any line has "Quantity Invoiced" not 0.
procedure InvoicedLineExists(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
CreateDimSetForPrepmtAccDefaultDim
Creates a dimension set for the purchase lines that have a prepayment amount.
procedure CreateDimSetForPrepmtAccDefaultDim()
TransferItemChargeAssgntPurchToTemp
Transfers item charge assignments to the temporary record set and deletes them from the original record.
procedure TransferItemChargeAssgntPurchToTemp(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| ItemChargeAssgntPurch | Table Microsoft.Purchases.Document."Item Charge Assignment (Purch)" |
Item charge assignment record set to transfer. |
| TempItemChargeAssgntPurch | Table Microsoft.Purchases.Document."Item Charge Assignment (Purch)" |
Return value: Temporary item charge assignment record set to transfer to. |
PrepareOpeningDocumentStatistics
Prepares the opening document statistics for a purchase document. It checks the user's permissions, calculates the invoice discount, creates a dimension set for order documents, and commits any changes made.
procedure PrepareOpeningDocumentStatistics()
CheckPurchasePostRestrictions
Triggers the OnCheckPurchasePostRestrictions event to check any additional restrictions before releasing a purchase document.
procedure CheckPurchasePostRestrictions()
CheckPurchaseReleaseRestrictions
Checks any restrictions before releasing a purchase document.
procedure CheckPurchaseReleaseRestrictions()
SetStatus
Sets the status of a purchase document.
procedure SetStatus(NewStatus: Option)
Parameters
| Name | Type | Description |
|---|---|---|
| NewStatus | Option |
New status to set. |
TriggerOnAfterPostPurchaseDoc
Triggers an event after a purchase document is posted.
procedure TriggerOnAfterPostPurchaseDoc(var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlPostLine | Codeunit Microsoft.Finance.GeneralLedger.Posting."Gen. Jnl.-Post Line" |
Gen journal post line codeunit that was used to post the document. |
| PurchRcpHdrNo | Code[20] |
Posted purchase receipt document no. |
| RetShptHdrNo | Code[20] |
Posted return shipment document no. |
| PurchInvHdrNo | Code[20] |
Posted purchase invoice document no. |
| PurchCrMemoHdrNo | Code[20] |
Posted purchase credit memo document no. |
DeferralHeadersExist
Determines if deferral header exists for a purchase document.
procedure DeferralHeadersExist(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if deferral header exists, otherwise false. |
GetUpdatedFieldCaption
Returns field caption for the provided field number.
procedure GetUpdatedFieldCaption(UpdatingFieldNo: Integer): Text
Parameters
| Name | Type | Description |
|---|---|---|
| UpdatingFieldNo | Integer |
Field number that was updated. |
Returns
| Type | Description |
|---|---|
| Text |
Field caption for the provided UpdatingFieldNo field number. |
IsCreditDocType
Determines if the document type is a credit document.
procedure IsCreditDocType(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the document type is return order or credit memo, otherwise false. |
SetBuyFromVendorFromFilter
Updates the buy-from vendor no. of a purchase header based on a single-value filter applied to the buy-from vendor no. field.
procedure SetBuyFromVendorFromFilter()
Remarks
Single-value filter is retrieved from the current filter group or filter group 2. If it exists, it's used to update the buy-from vendor no.
CopyBuyFromVendorFilter
Moves the filter on buy-from vendor no. from the current filter group to filter group 2.
procedure CopyBuyFromVendorFilter()
HasBuyFromAddress
Determines if purchase header has buy-from information.
procedure HasBuyFromAddress(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if purchase header has buy-from information, otherwise false. |
HasShipToAddress
Determines if purchase header has ship-to information.
procedure HasShipToAddress(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if purchase header has ship-to information, otherwise false. |
HasPayToAddress
Determines if purchase header has pay-to information.
procedure HasPayToAddress(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if purchase header has pay-to information, otherwise false. |
HasItemChargeAssignment
Determines if the purchase header has any item charge assignments.
procedure HasItemChargeAssignment(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if item charge assignments exists, otherwise false. |
SetShipToAddress
Sets the ship-to information for a purchase document from the provided parameters.
procedure SetShipToAddress(ShipToName: Text[100]; ShipToName2: Text[50]; ShipToAddress: Text[100]; ShipToAddress2: Text[50]; ShipToCity: Text[30]; ShipToPostCode: Code[20]; ShipToCounty: Text[30]; ShipToCountryRegionCode: Code[10])
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToName | Text[100] |
Ship-to name to set. |
| ShipToName2 | Text[50] |
Ship-to name 2 to set. |
| ShipToAddress | Text[100] |
Ship-to address to set. |
| ShipToAddress2 | Text[50] |
Ship-to address 2 to set. |
| ShipToCity | Text[30] |
Ship-to city to set. |
| ShipToPostCode | Code[20] |
Ship-to post code to set. |
| ShipToCounty | Text[30] |
Ship-to county to set. |
| ShipToCountryRegionCode | Code[10] |
Ship-to country/region code to set. |
ShouldSearchForVendorByName
Determines whether a search for a vendor should be performed by name for the provided vendor no.
procedure ShouldSearchForVendorByName(VendorNo: Code[20]): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| VendorNo | Code[20] |
Vendor number to check. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if vendor should be searched by name, otherwise false. |
CopyBuyFromAddressToPayToAddress
Copies the buy-from information to pay-to information for a purchase document if the pay-to vendor no. is the same as the buy-from vendor no.
procedure CopyBuyFromAddressToPayToAddress()
ConfirmCloseUnposted
Raises a dialog to confirm closing a page if unposted lines exist.
procedure ConfirmCloseUnposted(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if page should be closed, otherwise false. |
InitFromPurchHeader
Initializes a purchase header from the provided purchase header.
procedure InitFromPurchHeader(SourcePurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SourcePurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
Purchase header to copy information from. |
BuyfromContactLookup
Opens a contact lookup page and validates the buy-from contact no. field with the selected contact.
procedure BuyfromContactLookup(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the contact was validated, otherwise false. |
SendRecords
Sends selected purchase document reports to the vendors. Before this procedure is called, purchase documents are selected on the page and then selection filter is used to filter the selected documents.
procedure SendRecords()
Remarks
Checks if the document has mixed drop shipment, selects a report from report selection based on the document type, shows profile selection window and then send the selected reports to the vendors.
PrintRecords
Prints selected purchase document reports. Before this procedure is called, purchase documents are selected on the page and then selection filter is used to filter the selected documents.
procedure PrintRecords(ShowRequestForm: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShowRequestForm | Boolean |
Request window for the report will be displayed if true, otherwise the default settings are used. |
SendProfile
Sends a purchase order document report with a specified document sending profile.
procedure SendProfile(var DocumentSendingProfile: Record "Document Sending Profile")
Parameters
| Name | Type | Description |
|---|---|---|
| DocumentSendingProfile | Table Microsoft.Foundation.Reporting."Document Sending Profile" |
Document sending profile that will be used to send the selected report to the vendor. |
Remarks
If the document has mixed drop shipments, error message is raised.
GetUserSetupPurchaserCode
Retrieves the salesperson/purchaser code of the current user from the user setup.
procedure GetUserSetupPurchaserCode(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
Salesperson/purchaser code of the current user from the user setup. |
InitPostingNoSeries
procedure InitPostingNoSeries()
OnAfterValidateBuyFromVendorNo
Removes the filter from buy-from vendor no. if the number has changed Updates remittance address for the record if the default remit address for the vendor exists.
procedure OnAfterValidateBuyFromVendorNo(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
Purchase header record after validation. |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
Purchase header record before validation. |
SelectDefaultRemitAddress
Sets the default remittance address on the provided purchase header.
procedure SelectDefaultRemitAddress(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
Return value: Purchase header to update. |
BatchConfirmUpdateDeferralDate
Raises a confirmation to update the deferral schedules on the lines to reflect the changed dates. If user confirms the update, the purchase lines are updated.
procedure BatchConfirmUpdateDeferralDate(var BatchConfirm: Option; ReplacePostingDate: Boolean; PostingDateReq: Date; ReplaceVATDate: Boolean; VATDateReq: Date)
Parameters
| Name | Type | Description |
|---|---|---|
| BatchConfirm | Option | |
| ReplacePostingDate | Boolean |
If true, the purchase header's posting date will be replaced with the specified PostingDateReq. |
| PostingDateReq | Date |
Posting date to replace. |
| ReplaceVATDate | Boolean | |
| VATDateReq | Date |
Vat reporting date to replace. |
BatchConfirmUpdatePostingDate
procedure BatchConfirmUpdatePostingDate(ReplacePostingDate: Boolean; PostingDateReq: Date; ReplaceDocDate: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReplacePostingDate | Boolean | |
| PostingDateReq | Date | |
| ReplaceDocDate | Boolean |
SetAllowSelectNoSeries
Sets the global flag SelectNoSeriesAllowed to true.
procedure SetAllowSelectNoSeries()
Remarks
The global flag is used to determine if the lookup for the number series can been shown.
RecallModifyAddressNotification
Recalls a sent notification for the provided notification GUID.
procedure RecallModifyAddressNotification(NotificationID: Guid)
Parameters
| Name | Type | Description |
|---|---|---|
| NotificationID | Guid |
GUID of the notification to recall. |
Remarks
If it is a credit document or if notification isn't enabled, it won't recall the notification.
GetModifyVendorAddressNotificationId
Returns a GUID for a notification that warns the user if the buy-from address on purchase documents is different from the vendor's existing address.
procedure GetModifyVendorAddressNotificationId(): Guid
Returns
| Type | Description |
|---|---|
| Guid |
Notification GUID. |
GetModifyPayToVendorAddressNotificationId
Returns a GUID for a notification that warns if the pay-to address on purchase documents is different from the vendor's existing address.
procedure GetModifyPayToVendorAddressNotificationId(): Guid
Returns
| Type | Description |
|---|---|
| Guid |
Notification GUID. |
GetShowExternalDocAlreadyExistNotificationId
Returns a GUID for a notification that warns if purchase document with same external document number already exists.
procedure GetShowExternalDocAlreadyExistNotificationId(): Guid
Returns
| Type | Description |
|---|---|
| Guid |
Notification GUID. |
GetLineInvoiceDiscountResetNotificationId
Returns a GUID for a notification that warns if the invoice discount amount for the purchase line record has been reset.
procedure GetLineInvoiceDiscountResetNotificationId(): Guid
Returns
| Type | Description |
|---|---|
| Guid |
Notification GUID. |
GetWarnWhenZeroQuantityPurchaseLinePosting
Returns a GUID for a notification that warns before posting lines on purchase documents where quantity is 0.
procedure GetWarnWhenZeroQuantityPurchaseLinePosting(): Guid
Returns
| Type | Description |
|---|---|
| Guid |
Notification GUID. |
SetModifyVendorAddressNotificationDefaultState
Inserts the default notification to warn if the buy-from address on purchase documents is different from the vendor's existing address.
procedure SetModifyVendorAddressNotificationDefaultState()
Remarks
Notification is enabled by default.
SetModifyPayToVendorAddressNotificationDefaultState
Inserts the default notification to warn if pay-to address on purchase documents is different from the vendor's existing address.
procedure SetModifyPayToVendorAddressNotificationDefaultState()
Remarks
Notification is enabled by default.
SetShowExternalDocAlreadyExistNotificationDefaultState
Inserts the default notification to warn if purchase document with same external document number already exists.
procedure SetShowExternalDocAlreadyExistNotificationDefaultState(DefaultState: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultState | Boolean |
If true, the notification is enabled. |
DontNotifyCurrentUserAgain
Disables a specified notification for the current user.
procedure DontNotifyCurrentUserAgain(NotificationID: Guid)
Parameters
| Name | Type | Description |
|---|---|---|
| NotificationID | Guid |
GUID of the notification that needs to be disabled. |
SetWarnZeroQuantityPurchasePosting
Inserts the default notification to warn before posting lines on purchase documents where quantity is 0.
procedure SetWarnZeroQuantityPurchasePosting()
Remarks
Notification is enabled by default.
FindPostedDocumentWithSameExternalDocNo
Finds a posted purchase document for the provided external document no.
procedure FindPostedDocumentWithSameExternalDocNo(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ExternalDocumentNo: Code[35]): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
Return value: Retrieved vendor ledger entry record. |
| ExternalDocumentNo | Code[35] |
Document no. to find the posted document for. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if a document exists, otherwise false. |
FilterPartialReceived
Applies the filter for the headers that have received lines.
procedure FilterPartialReceived()
Remarks
The purchase order is marked if it has any lines with a quantity received not equal to zero.
FilterPartialInvoiced
Applies the filter for the headers that have partially invoiced lines.
procedure FilterPartialInvoiced()
Remarks
The purchase order is marked if it has any lines with a quantity invoiced not equal to zero.
IsDocAlreadyExistNotificationEnabled
Determines if the notification which warns if purchase document with same external document number already exists is enabled.
procedure IsDocAlreadyExistNotificationEnabled(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the notification is enabled, otherwise false. |
ShipToAddressEqualsCompanyShipToAddress
Determines if the ship-to information in the purchase header record matches the ship-to information in the company information.
procedure ShipToAddressEqualsCompanyShipToAddress(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if ship-to information is equal, otherwise false. |
BuyFromAddressEqualsShipToAddress
Determines if ship-to information is equal to the buy-from information in the purchase header record.
procedure BuyFromAddressEqualsShipToAddress(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the information is equal, otherwise false. |
BuyFromAddressEqualsPayToAddress
Determines if buy-from information is equal to the pay-to information in the purchase header record.
procedure BuyFromAddressEqualsPayToAddress(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the information is equal, otherwise false. |
ValidatePurchaserOnPurchHeader
Checks if the document can be created/posted depending on the privacy blocked of the purchaser.
procedure ValidatePurchaserOnPurchHeader(PurchaseHeader2: Record "Purchase Header"; IsTransaction: Boolean; IsPostAction: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader2 | Table Microsoft.Purchases.Document."Purchase Header" |
Purchase header on which purchaser code has been changed. |
| IsTransaction | Boolean |
Determines if the check is completed during a write transaction. |
| IsPostAction | Boolean |
Determines if the check is completed during the posting. |
CanCalculateTax
Returns the value of the global variable SkipTaxCalculation.
procedure CanCalculateTax(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
The value of the global variable SkipTaxCalculation. |
SetSkipTaxCalulation
Sets the value of the global variable SkipTaxCalculation.
procedure SetSkipTaxCalulation(Skip: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Skip | Boolean |
The new value to set. |
ValidateEmptySellToCustomerAndLocation
Resets the sell-to customer to an empty value and updates the location. from the global Vend record on the purchase header.
procedure ValidateEmptySellToCustomerAndLocation()
Remarks
Updates the global Vend with buy-from vendor no. of the purchase header.
CheckForBlockedLines
Checks if there are any blocked items or resources in the purchase lines of the purchase header.
procedure CheckForBlockedLines()
TestStatusIsNotPendingApproval
Determines if purchase document status is not pending approval.
procedure TestStatusIsNotPendingApproval(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if status is not pending approval, otherwise false. |
TestStatusIsNotPendingPrepayment
Determines if purchase document status is not pending prepayment.
procedure TestStatusIsNotPendingPrepayment(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if status is not pending prepayment, otherwise false. |
TestStatusIsNotReleased
Determines if purchase document status is not released.
procedure TestStatusIsNotReleased(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if status is not released, otherwise false. |
TestStatusOpen
Checks if purchase document status is open. If it is not, an error is raised.
procedure TestStatusOpen()
SuspendStatusCheck
Sets the value of the global flag StatusCheckSuspended.
procedure SuspendStatusCheck(Suspend: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Suspend | Boolean |
The new value to set. |
Remarks
The global flag is used to suspend the check if the document status is open.
UpdateInboundWhseHandlingTime
Updates the inbound warehouse handling time of the purchase header.
procedure UpdateInboundWhseHandlingTime()
Remarks
If the purchase header's location code is empty, the inbound warehouse handling time is updated using the handling time from inventory setup.
GetFullDocTypeTxt
Returns the document type caption.
procedure GetFullDocTypeTxt(): Text
Returns
| Type | Description |
|---|---|
| Text |
Full text description of the document type field. |
CopyDocument
Runs the copy purchase document report for the purchase header.
procedure CopyDocument()
Remarks
The report creates new purchase documents based on the existing one.
LookupBuyFromVendorName
Opens vendor lookup page to select a vendor. Buy-from vendor name field is updated with the selected vendor name.
procedure LookupBuyFromVendorName(var VendorName: Text): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| VendorName | Text |
Return value: Selected vendor name. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if vendor is selected, otherwise false. |
LookupPayToVendorName
Opens vendor lookup page to select a vendor. Pay-to name field is updated with the selected vendor name.
procedure LookupPayToVendorName(var VendorName: Text): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| VendorName | Text |
Return value: Selected vendor name. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if vendor is selected, otherwise false. |
RecreateTempPurchLines
Collects all purchase lines of the document into a temporary record set.
procedure RecreateTempPurchLines(var TempPurchLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchLine | Table Microsoft.Purchases.Document."Purchase Line" |
Return value: Created temporary purchase line record set. |
Remarks
If the purchase line's nonstock flag is true, it's set to false upon recreation on the actual line.
DeletePurchCommentLines
Deletes all purchase comment lines.
procedure DeletePurchCommentLines()
DeletePurchLines
Delets all lines in the provided record set.
procedure DeletePurchLines(var PurchLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" |
Filtered purchase line record set to delete the lines from. |
Remarks
This procedure uses DeleteAll, if the record set is not filtered correctly, all purchase lines will be deleted.
GetCalledFromWhseDoc
Returns the value of the global flag CalledFromWhseDoc.
procedure GetCalledFromWhseDoc(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
The value of the global flag CalledFromWhseDoc. |
SetCalledFromWhseDoc
Sets the value of the global flag CalledFromWhseDoc.
procedure SetCalledFromWhseDoc(NewCalledFromWhseDoc: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| NewCalledFromWhseDoc | Boolean |
SetReplaceDocumentDate
Sets the value of the global flag ReplaceDocumentDate to true.
procedure SetReplaceDocumentDate()
GetUseDate
Returns the posting date from purchase header if it's available, otherwise it returns the current work date.
procedure GetUseDate(): Date
Returns
| Type | Description |
|---|---|
| Date |
Document's posting date or work date. |
CreateDimFromDefaultDim
Initializes the dimensions for the document from default dimensions for the related entry specified in the field.
procedure CreateDimFromDefaultDim(FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| FieldNo | Integer |
The field number for which to initialize the dimensions. |
PurchaseLinesEditable
Determines if the purchase lines of the purchase header are editable based on whether a buy-from vendor no. has been specified.
procedure PurchaseLinesEditable(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if purchase lines are editable, otherwise false. |
TestPurchasePrepayment
Checks if there are unpaid prepayment invoices for the purchase document and raise an error if there are.
procedure TestPurchasePrepayment()
CalcDocAmountVAT
Calculates the VAT Amount of the Purchase Header that is entered.
procedure CalcDocAmountVAT(DocAmountInclVAT: Decimal; VATAmount: Decimal; TotalPurchLineAmtInclVAT: Decimal; CurrencyAmtRoundingPrecision: Decimal): Decimal
Parameters
| Name | Type | Description |
|---|---|---|
| DocAmountInclVAT | Decimal |
The field "Doc. Amount Incl. VAT of the Purchase Header". |
| VATAmount | Decimal |
The field "Doc. Amount Incl. VAT of the Purchase Header". |
| TotalPurchLineAmtInclVAT | Decimal |
The total VAT amount of all the purchase lines |
| CurrencyAmtRoundingPrecision | Decimal |
The rounding precision of the Currency of the Purchase Header" |
Returns
| Type | Description |
|---|---|
| Decimal |
VAT Amount of the Purchase Header. |
SendICPurchaseDoc
procedure SendICPurchaseDoc(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
UpdatePurchaseOrderLineIfExist
procedure UpdatePurchaseOrderLineIfExist()
GetContactDetails
procedure GetContactDetails(var BuyFromContact: Record Contact; var PayToContact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| BuyFromContact | Table Microsoft.CRM.Contact.Contact | |
| PayToContact | Table Microsoft.CRM.Contact.Contact |
Events
OnCheckPurchasePostRestrictions
[IntegrationEvent(True,False)]
procedure OnCheckPurchasePostRestrictions()
OnCheckPurchaseReleaseRestrictions
[IntegrationEvent(True,False)]
local procedure OnCheckPurchaseReleaseRestrictions()
OnAfterInitDefaultDimensionSources
[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var PurchaseHeader: Record "Purchase Header"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; FieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] | |
| FieldNo | Integer |
OnAfterHasDifferentBuyFromAddress
[IntegrationEvent(False,False)]
local procedure OnAfterHasDifferentBuyFromAddress(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| Result | Boolean |
OnAfterHasDifferentPayToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterHasDifferentPayToAddress(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| Result | Boolean |
OnBeforeGetFullDocTypeTxt
[IntegrationEvent(False,False)]
local procedure OnBeforeGetFullDocTypeTxt(var PurchaseHeader: Record "Purchase Header"; var FullDocTypeTxt: Text; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| FullDocTypeTxt | Text | |
| IsHandled | Boolean |
OnBeforeGetNoSeriesCode
[IntegrationEvent(True,False)]
local procedure OnBeforeGetNoSeriesCode(PurchSetup: Record "Purchases & Payables Setup"; var NoSeriesCode: Code[20]; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchSetup | Table Microsoft.Purchases.Setup."Purchases & Payables Setup" | |
| NoSeriesCode | Code[20] | |
| IsHandled | Boolean | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeGetNextArchiveDocOccurrenceNo
[IntegrationEvent(False,False)]
local procedure OnBeforeGetNextArchiveDocOccurrenceNo(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeGetPostingNoSeriesCode
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPostingNoSeriesCode(var PurchaseHeader: Record "Purchase Header"; PurchasesPayablesSetup: Record "Purchases & Payables Setup"; var PostingNos: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchasesPayablesSetup | Table Microsoft.Purchases.Setup."Purchases & Payables Setup" | |
| PostingNos | Code[20] | |
| IsHandled | Boolean |
OnAfterAddShipToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterAddShipToAddress(var PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; ShowError: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" | |
| ShowError | Boolean |
OnAfterAddSpecialOrderToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterAddSpecialOrderToAddress(var PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; ShowError: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" | |
| ShowError | Boolean |
OnAfterCopyAddressInfoFromOrderAddress
[IntegrationEvent(True,False)]
local procedure OnAfterCopyAddressInfoFromOrderAddress(var OrderAddress: Record "Order Address"; var PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| OrderAddress | Table Microsoft.Purchases.Vendor."Order Address" | |
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterCouldDimensionsBeKept
[IntegrationEvent(False,False)]
local procedure OnAfterCouldDimensionsBeKept(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean |
OnAfterInitRecord
[IntegrationEvent(False,False)]
local procedure OnAfterInitRecord(var PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterInitNoSeries
[IntegrationEvent(False,False)]
local procedure OnAfterInitNoSeries(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterChangePricesIncludingVAT
[IntegrationEvent(False,False)]
local procedure OnAfterChangePricesIncludingVAT(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterCheckBuyFromVendor
[IntegrationEvent(False,False)]
local procedure OnAfterCheckBuyFromVendor(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
OnAfterCheckPayToVendor
[IntegrationEvent(False,False)]
local procedure OnAfterCheckPayToVendor(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
OnAfterConfirmPurchPrice
[IntegrationEvent(False,False)]
local procedure OnAfterConfirmPurchPrice(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var RecalculateLines: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| RecalculateLines | Boolean |
OnAfterCopyBuyFromVendorFieldsFromVendor
[IntegrationEvent(False,False)]
local procedure OnAfterCopyBuyFromVendorFieldsFromVendor(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterCopyPayToVendorFieldsFromVendor
[IntegrationEvent(False,False)]
local procedure OnAfterCopyPayToVendorFieldsFromVendor(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterCopyBuyFromVendorAddressFieldsFromVendor
[IntegrationEvent(False,False)]
local procedure OnAfterCopyBuyFromVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header"; BuyFromVendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| BuyFromVendor | Table Microsoft.Purchases.Vendor.Vendor |
OnAfterCopyPayToVendorAddressFieldsFromVendor
[IntegrationEvent(False,False)]
local procedure OnAfterCopyPayToVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header"; PayToVendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PayToVendor | Table Microsoft.Purchases.Vendor.Vendor |
OnAfterCopyShipToVendorAddressFieldsFromVendor
[IntegrationEvent(False,False)]
local procedure OnAfterCopyShipToVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header"; BuyFromVendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| BuyFromVendor | Table Microsoft.Purchases.Vendor.Vendor |
OnAfterRecreatePurchLine
[IntegrationEvent(False,False)]
local procedure OnAfterRecreatePurchLine(var PurchLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| TempPurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterDeleteAllTempPurchLines
[IntegrationEvent(False,False)]
local procedure OnAfterDeleteAllTempPurchLines(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterIsApprovedForPosting
[IntegrationEvent(False,False)]
local procedure OnAfterIsApprovedForPosting(PurchaseHeader: Record "Purchase Header"; var Approved: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Approved | Boolean |
OnAfterIsApprovedForPostingBatch
[IntegrationEvent(False,False)]
local procedure OnAfterIsApprovedForPostingBatch(PurchaseHeader: Record "Purchase Header"; var Approved: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Approved | Boolean |
OnAfterGetNoSeriesCode
[IntegrationEvent(False,False)]
local procedure OnAfterGetNoSeriesCode(var PurchHeader: Record "Purchase Header"; PurchSetup: Record "Purchases & Payables Setup"; var NoSeriesCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchSetup | Table Microsoft.Purchases.Setup."Purchases & Payables Setup" | |
| NoSeriesCode | Code[20] |
OnAfterGetPostingNoSeriesCode
[IntegrationEvent(False,False)]
local procedure OnAfterGetPostingNoSeriesCode(PurchaseHeader: Record "Purchase Header"; var PostingNos: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostingNos | Code[20] |
OnAfterGetPrepaymentPostingNoSeriesCode
[IntegrationEvent(False,False)]
local procedure OnAfterGetPrepaymentPostingNoSeriesCode(PurchaseHeader: Record "Purchase Header"; var PostingNos: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostingNos | Code[20] |
OnAfterGetPurchSetup
[IntegrationEvent(False,False)]
local procedure OnAfterGetPurchSetup(PurchaseHeader: Record "Purchase Header"; var PurchasesPayablesSetup: Record "Purchases & Payables Setup"; CalledByFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchasesPayablesSetup | Table Microsoft.Purchases.Setup."Purchases & Payables Setup" | |
| CalledByFieldNo | Integer |
OnAfterGetReportSelectionsUsageFromDocumentType
[IntegrationEvent(False,False)]
local procedure OnAfterGetReportSelectionsUsageFromDocumentType(PurchaseHeader: Record "Purchase Header"; var ReportSelectionsUsage: Option; var DocTxt: Text[150])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ReportSelectionsUsage | Option | |
| DocTxt | Text[150] |
OnAfterGetStatusStyleText
[IntegrationEvent(False,False)]
local procedure OnAfterGetStatusStyleText(PurchaseHeader: Record "Purchase Header"; var StatusStyleText: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| StatusStyleText | Text |
OnAfterSetBuyFromVendorFromFilter
[IntegrationEvent(False,False)]
local procedure OnAfterSetBuyFromVendorFromFilter(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterSetSecurityFilterOnRespCenter
[IntegrationEvent(False,False)]
local procedure OnAfterSetSecurityFilterOnRespCenter(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterSetShipToForSpecOrder
[IntegrationEvent(False,False)]
local procedure OnAfterSetShipToForSpecOrder(var PurchaseHeader: Record "Purchase Header"; Location: Record Location; CompanyInformation: Record "Company Information")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Location | Table Microsoft.Inventory.Location.Location | |
| CompanyInformation | Table Microsoft.Foundation.Company."Company Information" |
OnAfterPurchaseLinesEditable
[IntegrationEvent(False,False)]
local procedure OnAfterPurchaseLinesEditable(PurchaseHeader: Record "Purchase Header"; var IsEditable: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsEditable | Boolean |
OnAfterTestNoSeries
[IntegrationEvent(False,False)]
local procedure OnAfterTestNoSeries(var PurchHeader: Record "Purchase Header"; PurchSetup: Record "Purchases & Payables Setup")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchSetup | Table Microsoft.Purchases.Setup."Purchases & Payables Setup" |
OnAfterTransferSavedFields
[IntegrationEvent(False,False)]
local procedure OnAfterTransferSavedFields(var DestinationPurchaseLine: Record "Purchase Line"; SourcePurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnTransferSavedFieldsOnAfterSetVariantCode
[IntegrationEvent(False,False)]
local procedure OnTransferSavedFieldsOnAfterSetVariantCode(var DestinationPurchaseLine: Record "Purchase Line"; SourcePurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnAfterUpdateBuyFromVend
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateBuyFromVend(var PurchaseHeader: Record "Purchase Header"; Contact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Contact | Table Microsoft.CRM.Contact.Contact |
OnAfterUpdateBuyFromCont
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateBuyFromCont(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; Contact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| Contact | Table Microsoft.CRM.Contact.Contact |
OnAfterUpdatePayToAddressFromBuyFromAddress
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePayToAddressFromBuyFromAddress(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; FieldNumber: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| FieldNumber | Integer |
OnAfterUpdatePayToCont
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePayToCont(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; Contact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| Contact | Table Microsoft.CRM.Contact.Contact |
OnAfterUpdatePayToVend
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePayToVend(var PurchaseHeader: Record "Purchase Header"; Contact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Contact | Table Microsoft.CRM.Contact.Contact |
OnAfterUpdatePurchLinesByFieldNo
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePurchLinesByFieldNo(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; ChangedFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldNo | Integer |
OnAfterUpdateShipToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateShipToAddress(var PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterUpdateCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header"; HideValidationDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| HideValidationDialog | Boolean |
OnAfterUpdateInboundWhseHandlingTime
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateInboundWhseHandlingTime(var PurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer |
OnAfterValidateShipToCode
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShipToCode(var PurchHeader: Record "Purchase Header"; Cust: Record Customer; ShipToAddr: Record "Ship-to Address")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Cust | Table Microsoft.Sales.Customer.Customer | |
| ShipToAddr | Table Microsoft.Sales.Customer."Ship-to Address" |
OnAfterAppliesToDocNoOnLookup
[IntegrationEvent(False,False)]
local procedure OnAfterAppliesToDocNoOnLookup(var PurchaseHeader: Record "Purchase Header"; VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
OnUpdateAllLineDimOnAfterPurchLineSetFilters
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnAfterPurchLineSetFilters(var PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnUpdatePurchLinesByFieldNoOnBeforeModifyRec
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnBeforeModifyRec(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnUpdatePurchLinesByFieldNoOnAfterCalcShouldConfirmReservationDateConflict
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnAfterCalcShouldConfirmReservationDateConflict(var PurchaseHeader: Record "Purchase Header"; ChangedFieldNo: Integer; var ShouldConfirmReservationDateConflict: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldNo | Integer | |
| ShouldConfirmReservationDateConflict | Boolean |
OnUpdatePurchLinesByFieldNoOnAfterPurchLineSetFilters
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnAfterPurchLineSetFilters(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ChangedFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| ChangedFieldNo | Integer |
OnUpdatePurchLinesByChangedFieldName
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByChangedFieldName(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ChangedFieldName: Text[100]; ChangedFieldNo: Integer; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| ChangedFieldName | Text[100] | |
| ChangedFieldNo | Integer | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnValidateShortcutDimCodeOnBeforeUpdateAllLineDim
[IntegrationEvent(False,False)]
local procedure OnValidateShortcutDimCodeOnBeforeUpdateAllLineDim(var PurcasehHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; FieldNumber: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurcasehHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| FieldNumber | Integer |
OnAfterValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| FieldNumber | Integer | |
| ShortcutDimCode | Code[20] |
OnAfterTransferExtendedTextForPurchaseLineRecreation
[IntegrationEvent(False,False)]
local procedure OnAfterTransferExtendedTextForPurchaseLineRecreation(var PurchLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnValidatePurchaseHeaderPayToVendorNoOnBeforeCheckDocType
[IntegrationEvent(False,False)]
local procedure OnValidatePurchaseHeaderPayToVendorNoOnBeforeCheckDocType(Vendor: Record Vendor; var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; SkipPayToContact: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| SkipPayToContact | Boolean |
OnValidatePostingDateOnBeforeResetInvoiceDiscountValue
[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnBeforeResetInvoiceDiscountValue(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer |
OnBeforeAddSpecialOrderToAddress
[IntegrationEvent(False,False)]
local procedure OnBeforeAddSpecialOrderToAddress(var PurchaseHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; ShowError: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" | |
| IsHandled | Boolean | |
| ShowError | Boolean |
OnBeforeAssistEdit
[IntegrationEvent(False,False)]
local procedure OnBeforeAssistEdit(var PurchaseHeader: Record "Purchase Header"; OldPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| OldPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeBuyFromPostCodeOnBeforeLookupHandled
[IntegrationEvent(False,False)]
local procedure OnBeforeBuyFromPostCodeOnBeforeLookupHandled(var PurchaseHeader: Record "Purchase Header"; PostCode: Record "Post Code"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| IsHandled | Boolean |
OnBeforeCalcInvDiscForHeader
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcInvDiscForHeader(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeCouldDimensionsBeKept
[IntegrationEvent(False,False)]
local procedure OnBeforeCouldDimensionsBeKept(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeCheckReceiptInfo
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckReceiptInfo(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PayTo: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| PayTo | Boolean | |
| IsHandled | Boolean |
OnBeforeCheckShipToCodeChange
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckShipToCodeChange(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeCheckSpecialOrderSalesLineLink
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSpecialOrderSalesLineLink(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeCheckShipToCode
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckShipToCode(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeConfirmDeletion
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmDeletion(var PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeConfirmKeepExistingDimensions
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmKeepExistingDimensions(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; FieldNo: Integer; OldDimSetID: Integer; var Confirmed: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| FieldNo | Integer | |
| OldDimSetID | Integer | |
| Confirmed | Boolean | |
| IsHandled | Boolean |
OnAfterConfirmUpdateCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnAfterConfirmUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header"; var HideValidationDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| HideValidationDialog | Boolean |
OnBeforeConfirmUpdateCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header"; var HideValidationDialog: Boolean; var ForceConfirm: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| HideValidationDialog | Boolean | |
| ForceConfirm | Boolean |
OnBeforeContactIsNotRelatedToVendorError
[IntegrationEvent(True,False)]
local procedure OnBeforeContactIsNotRelatedToVendorError(Contact: Record Contact; ContactNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Contact | Table Microsoft.CRM.Contact.Contact | |
| ContactNo | Code[20] | |
| IsHandled | Boolean |
OnBeforeCreateDim
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] | |
| CurrentFieldNo | Integer |
OnBeforeCreateDimSetForPrepmtAccDefaultDim
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimSetForPrepmtAccDefaultDim(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeCreateDimensionsFromValidatePayToVendorNo
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimensionsFromValidatePayToVendorNo(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeConfirmResvDateConflict
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmResvDateConflict(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ChangedFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| ChangedFieldNo | Integer |
OnBeforeConfirmUpdateField
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmUpdateField(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; UpdatingFieldNo: Integer; CurrentFieldNo: Integer; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| UpdatingFieldNo | Integer | |
| CurrentFieldNo | Integer | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeDeletePurchaseLines
[IntegrationEvent(False,False)]
local procedure OnBeforeDeletePurchaseLines(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeDeleteRecordInApprovalRequest
[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteRecordInApprovalRequest(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeInitInsert
[IntegrationEvent(False,False)]
local procedure OnBeforeInitInsert(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeInitRecord
[IntegrationEvent(False,False)]
local procedure OnBeforeInitRecord(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; xPurchaseHeader: Record "Purchase Header"; PurchSetup: Record "Purchases & Payables Setup"; GLSetup: Record "General Ledger Setup"; var SkipInitialization: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchSetup | Table Microsoft.Purchases.Setup."Purchases & Payables Setup" | |
| GLSetup | Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup" | |
| SkipInitialization | Boolean |
OnBeforeInitPostingDescription
[IntegrationEvent(False,False)]
local procedure OnBeforeInitPostingDescription(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeIsCreditDocType
[IntegrationEvent(False,False)]
local procedure OnBeforeIsCreditDocType(PurchaseHeader: Record "Purchase Header"; var CreditDocType: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CreditDocType | Boolean |
OnBeforeIsTotalValid
[IntegrationEvent(False,False)]
local procedure OnBeforeIsTotalValid(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeHasBuyFromAddress
[IntegrationEvent(False,False)]
local procedure OnBeforeHasBuyFromAddress(var PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeHasShipToAddress
[IntegrationEvent(False,False)]
local procedure OnBeforeHasShipToAddress(var PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeHasPayToAddress
[IntegrationEvent(False,False)]
local procedure OnBeforeHasPayToAddress(var PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeLookupAppliesToDocNo
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupAppliesToDocNo(var PurchaseHeader: Record "Purchase Header"; var VendorLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| VendorLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" | |
| IsHandled | Boolean |
OnBeforeValidateAppliesToDocNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateAppliesToDocNo(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeLookupReceivingNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupReceivingNoSeries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeLookupReturnShipmentNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupReturnShipmentNoSeries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeMessageIfPurchLinesExist
[IntegrationEvent(False,False)]
local procedure OnBeforeMessageIfPurchLinesExist(var PurchaseHeader: Record "Purchase Header"; ChangedFieldName: Text[100]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldName | Text[100] | |
| IsHandled | Boolean |
OnBeforeModifyPayToVendorAddress
[IntegrationEvent(False,False)]
local procedure OnBeforeModifyPayToVendorAddress(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeModifyVendorAddress
[IntegrationEvent(False,False)]
local procedure OnBeforeModifyVendorAddress(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeOnDelete
[IntegrationEvent(False,False)]
local procedure OnBeforeOnDelete(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeSetShipToCodeEmpty
[IntegrationEvent(False,False)]
local procedure OnBeforeSetShipToCodeEmpty(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeShouldSearchForVendorByName
[IntegrationEvent(False,False)]
local procedure OnBeforeShouldSearchForVendorByName(VendorNo: Code[20]; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| VendorNo | Code[20] | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeTransferSavedJobFields
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferSavedJobFields(var DestinationPurchaseLine: Record "Purchase Line"; SourcePurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnBeforeTransferSavedFields
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferSavedFields(var DestinationPurchaseLine: Record "Purchase Line"; SourcePurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnBeforeUpdateCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header"; var Updated: Boolean; var CurrencyExchangeRate: Record "Currency Exchange Rate"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Updated | Boolean | |
| CurrencyExchangeRate | Table Microsoft.Finance.Currency."Currency Exchange Rate" | |
| CurrentFieldNo | Integer |
OnBeforeUpdatePurchLineAmounts
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchLineAmounts(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeJobUpdatePurchaseLine
[IntegrationEvent(False,False)]
local procedure OnBeforeJobUpdatePurchaseLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnBeforeRecreatePurchLines
[IntegrationEvent(False,False)]
local procedure OnBeforeRecreatePurchLines(var PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeRecreatePurchLinesHandler
[IntegrationEvent(False,False)]
local procedure OnBeforeRecreatePurchLinesHandler(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; ChangedFieldName: Text[100]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldName | Text[100] | |
| IsHandled | Boolean |
OnBeforeSetSecurityFilterOnRespCenter
[IntegrationEvent(False,False)]
local procedure OnBeforeSetSecurityFilterOnRespCenter(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeCheckContactRelatedToVendorCompany
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckContactRelatedToVendorCompany(PurchaseHeader: Record "Purchase Header"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeShowDocDim
[IntegrationEvent(False,False)]
local procedure OnBeforeShowDocDim(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeSendToPosting
[IntegrationEvent(False,False)]
local procedure OnBeforeSendToPosting(var PurchaseHeader: Record "Purchase Header"; var IsSuccess: Boolean; var IsHandled: Boolean; PostingCodeunitID: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsSuccess | Boolean | |
| IsHandled | Boolean | |
| PostingCodeunitID | Integer |
OnBeforeSendRecords
[IntegrationEvent(False,False)]
local procedure OnBeforeSendRecords(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforePrintRecords
[IntegrationEvent(False,False)]
local procedure OnBeforePrintRecords(var PurchaseHeader: Record "Purchase Header"; ShowRequestForm: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ShowRequestForm | Boolean | |
| IsHandled | Boolean |
OnBeforeSendProfile
[IntegrationEvent(False,False)]
local procedure OnBeforeSendProfile(var PurchaseHeader: Record "Purchase Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| DocumentSendingProfile | Table Microsoft.Foundation.Reporting."Document Sending Profile" | |
| IsHandled | Boolean |
OnBeforeSetDefaultPurchaser
[IntegrationEvent(False,False)]
local procedure OnBeforeSetDefaultPurchaser(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeSetPurchaserCode
[IntegrationEvent(False,False)]
local procedure OnBeforeSetPurchaserCode(var PurchaseHeader: Record "Purchase Header"; PurchaserCodeToCheck: Code[20]; var PurchaserCodeToAssign: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaserCodeToCheck | Code[20] | |
| PurchaserCodeToAssign | Code[20] | |
| IsHandled | Boolean |
OnBeforeTestNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeTestNoSeries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeTransferSavedFieldsDropShipment
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferSavedFieldsDropShipment(var DestinationPurchaseLine: Record "Purchase Line"; var SourcePurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnBeforeTransferSavedFieldsSpecialOrder
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferSavedFieldsSpecialOrder(var DestinationPurchaseLine: Record "Purchase Line"; var SourcePurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnBeforeUpdateAllLineDim
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAllLineDim(var PurchaseHeader: Record "Purchase Header"; NewParentDimSetID: Integer; OldParentDimSetID: Integer; var IsHandled: Boolean; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| NewParentDimSetID | Integer | |
| OldParentDimSetID | Integer | |
| IsHandled | Boolean | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeUpdateLocationCode
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateLocationCode(var PurchaseHeader: Record "Purchase Header"; LocationCode: Code[10]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| LocationCode | Code[10] | |
| IsHandled | Boolean |
OnBeforeUpdatePurchLinesByFieldNo
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchLinesByFieldNo(var PurchaseHeader: Record "Purchase Header"; ChangedFieldNo: Integer; var AskQuestion: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldNo | Integer | |
| AskQuestion | Boolean | |
| IsHandled | Boolean |
OnBeforeUpdateShipToAddress
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateShipToAddress(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| CurrentFieldNo | Integer |
OnBeforeValidateBuyFromVendorNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromVendorNo(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer; var SkipBuyFromContact: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer | |
| SkipBuyFromContact | Boolean | |
| IsHandled | Boolean |
OnBeforeValidatePostingDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePostingDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidateEmptySellToCustomerAndLocation
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateEmptySellToCustomerAndLocation(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; var IsHandled: Boolean; var xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| IsHandled | Boolean | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnCollectParamsInBufferForCreateDimSetOnAfterSetTempPurchLineFilters
[IntegrationEvent(False,False)]
local procedure OnCollectParamsInBufferForCreateDimSetOnAfterSetTempPurchLineFilters(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
CollectParamsInBufferForCreateDimSetOnBeforeInsertTempPurchaseLineInBuffer
[IntegrationEvent(False,False)]
local procedure CollectParamsInBufferForCreateDimSetOnBeforeInsertTempPurchaseLineInBuffer(var GeneralPostingSetup: Record "General Posting Setup"; var DefaultDimension: Record "Default Dimension")
Parameters
| Name | Type | Description |
|---|---|---|
| GeneralPostingSetup | Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup" | |
| DefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
OnBeforeValidatePayToVendorNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePayToVendorNo(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; var Confirmed: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Confirmed | Boolean | |
| IsHandled | Boolean |
OnBeforeValidatePricesIncludingVAT
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePricesIncludingVAT(var PurchaseHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeValidateLocationCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLocationCode(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; xPurchaseHeader: Record "Purchase Header"; CurrFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrFieldNo | Integer |
OnBeforeValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; FieldNumber: Integer; var ShortcutDimCode: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| FieldNumber | Integer | |
| ShortcutDimCode | Code[20] | |
| IsHandled | Boolean |
OnBeforeValidateShipmentMethodCode
[IntegrationEvent(False,False)]
procedure OnBeforeValidateShipmentMethodCode(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeValidateDocumentDateWithPostingDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDocumentDateWithPostingDate(var PurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer; var IsHandled: Boolean; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer | |
| IsHandled | Boolean | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBuyFromCityOnBeforeOnLookup
[IntegrationEvent(False,False)]
procedure OnBuyFromCityOnBeforeOnLookup(var PurchaseHeader: Record "Purchase Header"; PostCode: Record "Post Code"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| IsHandled | Boolean |
OnCreateDimOnBeforeUpdateLines
[IntegrationEvent(False,False)]
local procedure OnCreateDimOnBeforeUpdateLines(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; OldDimSetID: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| OldDimSetID | Integer | |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] |
OnInsertTempPurchLineInBufferOnBeforeTempPurchLineInsert
[IntegrationEvent(False,False)]
local procedure OnInsertTempPurchLineInBufferOnBeforeTempPurchLineInsert(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnRecreatePurchLinesOnAfterValidateType
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnAfterValidateType(var PurchaseLine: Record "Purchase Line"; TempPurchaseLine: Record "Purchase Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnRecreatePurchLinesOnBeforeInsertPurchLine
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforeInsertPurchLine(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; ChangedFieldName: Text[100])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| ChangedFieldName | Text[100] |
OnRecreatePurchLinesOnBeforeTempPurchLineInsert
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforeTempPurchLineInsert(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnRecreatePurchLineOnAfterProcessAttachedToLineNo
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLineOnAfterProcessAttachedToLineNo(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnRecreatePurchLinesOnAfterProcessTempPurchLines
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnAfterProcessTempPurchLines(var TempPurchaseLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; ChangedFieldName: Text[100])
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldName | Text[100] |
OnRecreatePurchLinesOnAfterCalcShouldCreatePurchLines
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnAfterCalcShouldCreatePurchLines(var TempPurchaseLine: Record "Purchase Line" temporary; var ShouldCreatePurchLines: Boolean; var PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| ShouldCreatePurchLines | Boolean | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnPrintRecordsOnAfterCheckMixedDropShipment
[IntegrationEvent(False,False)]
local procedure OnPrintRecordsOnAfterCheckMixedDropShipment(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnSendRecordsOnAfterCheckMixedDropShipment
[IntegrationEvent(False,False)]
local procedure OnSendRecordsOnAfterCheckMixedDropShipment(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnShipToPostCodeOnBeforeOnLookup
[IntegrationEvent(False,False)]
local procedure OnShipToPostCodeOnBeforeOnLookup(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PostCode: Record "Post Code")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" |
OnShowDocDimOnAfterSetDimensionSetID
[IntegrationEvent(False,False)]
local procedure OnShowDocDimOnAfterSetDimensionSetID(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnValidateBuyFromVendorNoOnAfterRecreateLines
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnAfterRecreateLines(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer |
OnValidateBuyFromVendorNoBeforeRecreateLines
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoBeforeRecreateLines(var PurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer; var Vendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
OnValidateBuyFromVendorNoOnAfterUpdateBuyFromCont
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnAfterUpdateBuyFromCont(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer; var SkipBuyFromContact: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer | |
| SkipBuyFromContact | Boolean |
OnValidateBuyFromVendorNoOnValidateBuyFromVendorNoOnBeforeValidatePayToVendor
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnValidateBuyFromVendorNoOnBeforeValidatePayToVendor(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnValidateBuyFromVendorNoOnAfterValidatePayToVendor
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnAfterValidatePayToVendor(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeOnRename
[IntegrationEvent(False,False)]
local procedure OnBeforeOnRename(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeShowPostedDocsToPrintCreatedMsg
[IntegrationEvent(False,False)]
local procedure OnBeforeShowPostedDocsToPrintCreatedMsg(var ShowPostedDocsToPrint: Boolean; HideValidationDialog: Boolean; var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| ShowPostedDocsToPrint | Boolean | |
| HideValidationDialog | Boolean | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterPrepareOpeningDocumentStatistics
[IntegrationEvent(False,False)]
local procedure OnAfterPrepareOpeningDocumentStatistics(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeTestStatusOpen
[IntegrationEvent(True,False)]
local procedure OnBeforeTestStatusOpen(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer |
OnAfterTestStatusOpen
[IntegrationEvent(True,False)]
local procedure OnAfterTestStatusOpen()
OnAfterUpdatePurchLines
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePurchLines(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnInitFromPurchHeader
[IntegrationEvent(False,False)]
local procedure OnInitFromPurchHeader(var PurchaseHeader: Record "Purchase Header"; SourcePurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| SourcePurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnInitFromContactOnBeforeInitRecord
[IntegrationEvent(False,False)]
local procedure OnInitFromContactOnBeforeInitRecord(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnInitFromVendorOnBeforeInitRecord
[IntegrationEvent(False,False)]
local procedure OnInitFromVendorOnBeforeInitRecord(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnInitInsertOnBeforeInitRecord
[IntegrationEvent(False,False)]
local procedure OnInitInsertOnBeforeInitRecord(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnInitRecordOnAfterAssignDates
[IntegrationEvent(False,False)]
local procedure OnInitRecordOnAfterAssignDates(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnRecreatePurchLinesOnBeforeConfirm
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforeConfirm(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; ChangedFieldName: Text[100]; HideValidationDialog: Boolean; var Confirmed: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldName | Text[100] | |
| HideValidationDialog | Boolean | |
| Confirmed | Boolean | |
| IsHandled | Boolean |
OnPrintRecordsOnBeforeTrySendToPrinterVendor
[IntegrationEvent(False,False)]
local procedure OnPrintRecordsOnBeforeTrySendToPrinterVendor(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ShowRequestForm: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| ShowRequestForm | Boolean |
OnSendProfileOnBeforeSendVendor
[IntegrationEvent(False,False)]
local procedure OnSendProfileOnBeforeSendVendor(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnQtyToReceiveIsZeroOnAfterSetFilters
[IntegrationEvent(False,False)]
local procedure OnQtyToReceiveIsZeroOnAfterSetFilters(var PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnTestStatusIsNotPendingApproval
[IntegrationEvent(False,False)]
local procedure OnTestStatusIsNotPendingApproval(PurchaseHeader: Record "Purchase Header"; var NotPending: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| NotPending | Boolean |
OnTestStatusIsNotPendingPrepayment
[IntegrationEvent(False,False)]
local procedure OnTestStatusIsNotPendingPrepayment(PurchaseHeader: Record "Purchase Header"; var NotPending: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| NotPending | Boolean |
OnTestStatusIsNotReleased
[IntegrationEvent(False,False)]
local procedure OnTestStatusIsNotReleased(PurchaseHeader: Record "Purchase Header"; var NotReleased: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| NotReleased | Boolean |
OnTransferSavedFieldsSpecialOrderOnBeforeSalesLineModify
[IntegrationEvent(False,False)]
local procedure OnTransferSavedFieldsSpecialOrderOnBeforeSalesLineModify(var DestinationPurchaseLine: Record "Purchase Line"; var SourcePurchaseLine: Record "Purchase Line"; var SalesLine: Record "Sales Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DestinationPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| SalesLine | Table Microsoft.Sales.Document."Sales Line" |
OnUpdateAllLineDimOnBeforePurchLineModify
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforePurchLineModify(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| xPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnUpdateCurrencyFactorOnAfterCurrencyDateSet
[IntegrationEvent(False,False)]
local procedure OnUpdateCurrencyFactorOnAfterCurrencyDateSet(var PurchaseHeader: Record "Purchase Header"; var CurrencyDate: Date; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrencyDate | Date | |
| CurrentFieldNo | Integer |
OnUpdatePurchLinesByFieldNoOnBeforeLineModify
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnBeforeLineModify(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnUpdatePurchLinesByFieldNoOnBeforeValidateFields
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnBeforeValidateFields(var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; var ChangedFieldNo: Integer; var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| xPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| ChangedFieldNo | Integer | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnValidateOrderAddressCodeOnAfterCopyBuyFromVendorAddressFieldsFromVendor
[IntegrationEvent(False,False)]
local procedure OnValidateOrderAddressCodeOnAfterCopyBuyFromVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header"; Vend: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vend | Table Microsoft.Purchases.Vendor.Vendor |
OnValidateOrderAddressCodeOnBeforeCopyBuyFromVendorAddressFieldsFromVendor
[IntegrationEvent(False,False)]
local procedure OnValidateOrderAddressCodeOnBeforeCopyBuyFromVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header"; Vend: Record Vendor; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vend | Table Microsoft.Purchases.Vendor.Vendor | |
| IsHandled | Boolean |
OnValidateOrderAddressCodeOnBeforeUpdateLocationCode
[IntegrationEvent(False,False)]
local procedure OnValidateOrderAddressCodeOnBeforeUpdateLocationCode(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnValidatePaymentTermsCodeOnBeforeCalcDueDate
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeCalcDueDate(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; CalledByFieldNo: Integer; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CalledByFieldNo | Integer | |
| CallingFieldNo | Integer | |
| IsHandled | Boolean |
OnValidatePaymentTermsCodeOnBeforeCalcPmtDiscDate
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeCalcPmtDiscDate(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; CalledByFieldNo: Integer; CallingFieldNo: Integer; var IsHandled: Boolean; var UpdateDocumentDate: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CalledByFieldNo | Integer | |
| CallingFieldNo | Integer | |
| IsHandled | Boolean | |
| UpdateDocumentDate | Boolean |
OnValidatePaymentTermsCodeOnBeforeValidatePmtDiscountWhenBlank
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeValidatePmtDiscountWhenBlank(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnValidatePaymentTermsCodeOnBeforeValidateDueDate
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeValidateDueDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnValidatePaymentTermsCodeOnBeforeValidateDueDateWhenBlank
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeValidateDueDateWhenBlank(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnValidatePayToVendorNoOnBeforeGetPayToVend
[IntegrationEvent(False,False)]
local procedure OnValidatePayToVendorNoOnBeforeGetPayToVend(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnValidatePayToVendorNoOnBeforeRecallModifyAddressNotification
[IntegrationEvent(False,False)]
local procedure OnValidatePayToVendorNoOnBeforeRecallModifyAddressNotification(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
OnValidatePaytoVendorNoBeforeRecreateLines
[IntegrationEvent(False,False)]
local procedure OnValidatePaytoVendorNoBeforeRecreateLines(var PurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer |
OnValidatePayToVendorNoOnBeforeRecreatePurchLines
[IntegrationEvent(False,False)]
local procedure OnValidatePayToVendorNoOnBeforeRecreatePurchLines(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnValidatePricesIncludingVATOnBeforePurchLineModify
[IntegrationEvent(False,False)]
local procedure OnValidatePricesIncludingVATOnBeforePurchLineModify(var PurchaseHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; Currency: Record Currency; RecalculatePrice: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| Currency | Table Microsoft.Finance.Currency.Currency | |
| RecalculatePrice | Boolean |
OnValidateVATBaseAmountPercOnBeforeUpdatePurchAmountLines
[IntegrationEvent(False,False)]
local procedure OnValidateVATBaseAmountPercOnBeforeUpdatePurchAmountLines(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnLookupPostCode
[IntegrationEvent(False,False)]
local procedure OnLookupPostCode(CalledFromFieldNo: Integer; xRecPurchaseHeader: Record "Purchase Header"; var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| CalledFromFieldNo | Integer | |
| xRecPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnLookupBuyfromVendorNameOnAfterSuccessfulLookup
[IntegrationEvent(False,False)]
local procedure OnLookupBuyfromVendorNameOnAfterSuccessfulLookup(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnRecreatePurchLinesOnAfterPurchLineSetFilters
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnAfterPurchLineSetFilters(var PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnRecreatePurchLinesOnDropShipmentSpecialOrder
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnDropShipmentSpecialOrder(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnBeforeCopyDocument
[IntegrationEvent(False,False)]
local procedure OnBeforeCopyDocument(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnRecreatePurchLinesOnBeforeTempPurchLineFindSet
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforeTempPurchLineFindSet(var TempPurchLine: Record "Purchase Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| TempPurchLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnUpdateAllLineDimOnBeforeGetPurchLineNewDimsetID
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeGetPurchLineNewDimsetID(var PurchLine: Record "Purchase Line"; NewParentDimSetID: Integer; OldParentDimSetID: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| NewParentDimSetID | Integer | |
| OldParentDimSetID | Integer |
OnUpdateAllLineDimOnAfterGetPurchLineNewDimsetID
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnAfterGetPurchLineNewDimsetID(PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var NewDimSetID: Integer; NewParentDimSetID: Integer; OldParentDimSetID: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| NewDimSetID | Integer | |
| NewParentDimSetID | Integer | |
| OldParentDimSetID | Integer |
OnUpdateBuyFromVendOnAfterGetContact
[IntegrationEvent(False,False)]
local procedure OnUpdateBuyFromVendOnAfterGetContact(var PurchaseHeader: Record "Purchase Header"; var Cont: Record Contact; var ShouldUpdateFromContact: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Cont | Table Microsoft.CRM.Contact.Contact | |
| ShouldUpdateFromContact | Boolean |
OnUpdatePayToVendOnAfterGetContact
[IntegrationEvent(False,False)]
local procedure OnUpdatePayToVendOnAfterGetContact(var PurchaseHeader: Record "Purchase Header"; var Cont: Record Contact; var ShouldUpdateFromContact: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Cont | Table Microsoft.CRM.Contact.Contact | |
| ShouldUpdateFromContact | Boolean |
OnUpdatePayToVendOnBeforeFindByContact
[IntegrationEvent(False,False)]
local procedure OnUpdatePayToVendOnBeforeFindByContact(var PurchaseHeader: Record "Purchase Header"; Vendor: Record Vendor; Contact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| Contact | Table Microsoft.CRM.Contact.Contact |
OnBeforeValidatePromisedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePromisedReceiptDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; CUrrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| CUrrentFieldNo | Integer |
OnBeforeValidateReceivingNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateReceivingNoSeries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeValidateReturnShipmentNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateReturnShipmentNoSeries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeValidateRequestedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateRequestedReceiptDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeCheckBlockedVendOnDocs
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckBlockedVendOnDocs(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var Vend: Record Vendor; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vend | Table Microsoft.Purchases.Vendor.Vendor | |
| CurrFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeTestPurchLineFieldsBeforeRecreate
[IntegrationEvent(False,False)]
local procedure OnBeforeTestPurchLineFieldsBeforeRecreate(var PurchaseHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnRecreateTempPurchLinesOnAfterTempPurchLineInsert
[IntegrationEvent(False,False)]
local procedure OnRecreateTempPurchLinesOnAfterTempPurchLineInsert(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| TempPurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnBeforeDeletePurchCommentLines
[IntegrationEvent(False,False)]
local procedure OnBeforeDeletePurchCommentLines(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeStorePurchCommentLineToTemp
[IntegrationEvent(False,False)]
local procedure OnBeforeStorePurchCommentLineToTemp(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeTransferItemChargeAssgntPurchToTemp
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferItemChargeAssgntPurchToTemp(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeDeletePurchLines
[IntegrationEvent(False,False)]
local procedure OnBeforeDeletePurchLines(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnRecreatePurchLinesOnBeforeTransferSavedFields
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforeTransferSavedFields(var Rec: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| Rec | Table Microsoft.Purchases.Document."Purchase Header" | |
| TempPurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnAfterCopyBuyFromAddressToPayToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterCopyBuyFromAddressToPayToAddress(var Rec: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| Rec | Table Microsoft.Purchases.Document."Purchase Header" |
OnValidatePrepmtPaymentTermsCodeOnCaseElseOnBeforeValidatePrepaymentDueDate
[IntegrationEvent(False,False)]
local procedure OnValidatePrepmtPaymentTermsCodeOnCaseElseOnBeforeValidatePrepaymentDueDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrFieldNo | Integer | |
| IsHandled | Boolean |
OnValidatePrepmtPaymentTermsCodeOnCaseIfOnBeforeValidatePrepaymentDueDate
[IntegrationEvent(False,False)]
local procedure OnValidatePrepmtPaymentTermsCodeOnCaseIfOnBeforeValidatePrepaymentDueDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrFieldNo | Integer | |
| IsHandled | Boolean |
OnValidateGenBusPostingGroupOnAfterSetVATBusPostingGroup
[IntegrationEvent(False,False)]
local procedure OnValidateGenBusPostingGroupOnAfterSetVATBusPostingGroup(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; GenBusPostingGrp: Record "Gen. Business Posting Group")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| GenBusPostingGrp | Table Microsoft.Finance.GeneralLedger.Setup."Gen. Business Posting Group" |
OnBeforeSetAmountToApply
[IntegrationEvent(False,False)]
local procedure OnBeforeSetAmountToApply(var PurchaseHeader: Record "Purchase Header"; var VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
OnAfterInitPostingNoSeries
[IntegrationEvent(False,False)]
local procedure OnAfterInitPostingNoSeries(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeValidatePayToCity
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePayToCity(var PurchaseHeader: Record "Purchase Header"; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidatePayToPostCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePayToPostCode(var PurchaseHeader: Record "Purchase Header"; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidateShipToCity
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToCity(var PurchaseHeader: Record "Purchase Header"; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidateShipToPostCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToPostCode(var PurchaseHeader: Record "Purchase Header"; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidateBuyFromCity
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromCity(var PurchaseHeader: Record "Purchase Header"; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidateBuyFromPostCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromPostCode(var PurchaseHeader: Record "Purchase Header"; var PostCode: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PostCode | Table Microsoft.Foundation.Address."Post Code" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnValidateShipToCodeOnAfterCopyFromShipToAddr
[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnAfterCopyFromShipToAddr(var PurchaseHeader: Record "Purchase Header"; ShipToAddress: Record "Ship-to Address")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
OnValidateShipToCodeOnAfterCopyFromSellToCust
[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnAfterCopyFromSellToCust(var PurchaseHeader: Record "Purchase Header"; Customer: Record Customer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Customer | Table Microsoft.Sales.Customer.Customer |
OnUpdateShipToAddressOnAfterCopyFromLocation
[IntegrationEvent(False,False)]
local procedure OnUpdateShipToAddressOnAfterCopyFromLocation(var PurchaseHeader: Record "Purchase Header"; Location: Record Location)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Location | Table Microsoft.Inventory.Location.Location |
OnUpdateShipToAddressOnAfterCopyFromCompany
[IntegrationEvent(False,False)]
local procedure OnUpdateShipToAddressOnAfterCopyFromCompany(var PurchaseHeader: Record "Purchase Header"; CompanyInformation: Record "Company Information")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CompanyInformation | Table Microsoft.Foundation.Company."Company Information" |
OnBeforeValidateShipToCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToCode(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var ShipToAddr: Record "Ship-to Address"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ShipToAddr | Table Microsoft.Sales.Customer."Ship-to Address" | |
| IsHandled | Boolean |
OnBeforeLookupBuyFromContactNo
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupBuyFromContactNo(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeLookupPayToContactNo
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPayToContactNo(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnAfterRecreatePurchLines
[IntegrationEvent(False,False)]
local procedure OnAfterRecreatePurchLines(var PurchaseHeader: Record "Purchase Header"; ChangedFieldName: Text[100])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldName | Text[100] |
OnBeforeValidateOrderDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateOrderDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; CurrFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| CurrFieldNo | Integer |
OnBeforeValidateExpectedReceiptDate
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateExpectedReceiptDate(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| CallingFieldNo | Integer |
OnBeforeValidateSendICDocument
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateSendICDocument(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnSendRecordsOnBeforeSendVendorRecords
[IntegrationEvent(False,False)]
local procedure OnSendRecordsOnBeforeSendVendorRecords(ReportUsage: Enum "Report Selection Usage"; var PurchaseHeader: Record "Purchase Header"; DocTxt: Text[150]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ReportUsage | Enum Microsoft.Foundation.Reporting."Report Selection Usage" | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| DocTxt | Text[150] | |
| IsHandled | Boolean |
OnBeforeValidatePaymentDiscountPercent
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePaymentDiscountPercent(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidatePrepmtPaymentDiscountPercent
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtPaymentDiscountPercent(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeGetUserSetupPurchaserCode
[IntegrationEvent(False,False)]
local procedure OnBeforeGetUserSetupPurchaserCode(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnCheckBuyFromContactOnAfterFindByContact
[IntegrationEvent(False,False)]
local procedure OnCheckBuyFromContactOnAfterFindByContact(var PurchHeader: Record "Purchase Header"; var ContBusinessRelation: Record "Contact Business Relation"; var Contact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ContBusinessRelation | Table Microsoft.CRM.BusinessRelation."Contact Business Relation" | |
| Contact | Table Microsoft.CRM.Contact.Contact |
OnBeforeCheckVendorPostingGroupChange
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckVendorPostingGroupChange(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeOnInsert
[IntegrationEvent(False,False)]
local procedure OnBeforeOnInsert(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforePurchLinesExist
[IntegrationEvent(False,False)]
local procedure OnBeforePurchLinesExist(var Rec: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Rec | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnValidatePostingDateOnBeforeCheckNeedUpdateCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnBeforeCheckNeedUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var IsConfirmed: Boolean; var NeedUpdateCurrencyFactor: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsConfirmed | Boolean | |
| NeedUpdateCurrencyFactor | Boolean |
OnValidatePostingDateOnAfterCheckNeedUpdateCurrencyFactor
[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnAfterCheckNeedUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var SkipJobCurrFactorUpdate: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| SkipJobCurrFactorUpdate | Boolean |
OnBeforeValidateBuyFromVendorName
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromVendorName(var PurchaseHeader: Record "Purchase Header"; var Vendor: Record Vendor; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| IsHandled | Boolean |
OnBeforePriceMessageIfPurchLinesExist
[IntegrationEvent(False,False)]
local procedure OnBeforePriceMessageIfPurchLinesExist(var PurchaseHeader: Record "Purchase Header"; ChangedFieldName: Text[100]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldName | Text[100] | |
| IsHandled | Boolean |
OnShowDocDimOnBeforePurchHeaderModify
[IntegrationEvent(False,False)]
local procedure OnShowDocDimOnBeforePurchHeaderModify(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnCreateDimSetForPrepmtAccDefaultDimOnBeforeTempPurchaseLineCreateDim
[IntegrationEvent(False,False)]
local procedure OnCreateDimSetForPrepmtAccDefaultDimOnBeforeTempPurchaseLineCreateDim(var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; PurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] | |
| PurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnRecreatePurchLinesOnBeforePurchLinesExists
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforePurchLinesExists(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; ChangedFieldName: Text[100]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| ChangedFieldName | Text[100] | |
| IsHandled | Boolean |
OnAfterInitPurchaseLineDefaultDimSource
[IntegrationEvent(False,False)]
local procedure OnAfterInitPurchaseLineDefaultDimSource(var PurchaseHeader: Record "Purchase Header"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; SourcePurchaseLine: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" |
OnBeforeInitPurchaseLineDefaultDimSource
[IntegrationEvent(False,False)]
local procedure OnBeforeInitPurchaseLineDefaultDimSource(var PurchaseHeader: Record "Purchase Header"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; SourcePurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] | |
| SourcePurchaseLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| IsHandled | Boolean |
OnBeforeValidateSellToCustomerNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateSellToCustomerNo(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeConfirmCloseUnposted
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmCloseUnposted(var PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeValidateCurrencyCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCurrencyCode(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeCheckDropShipmentLineExists
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDropShipmentLineExists(var SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesShipmentLine | Table Microsoft.Sales.History."Sales Shipment Line" | |
| IsHandled | Boolean |
OnAfterBuyFromAddressEqualsPayToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterBuyFromAddressEqualsPayToAddress(PurchaseHeader: Record "Purchase Header"; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean |
OnAfterIsShipToAddressEqualToCompanyShipToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterIsShipToAddressEqualToCompanyShipToAddress(PurchaseHeader: Record "Purchase Header"; CompanyInformation: Record "Company Information"; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CompanyInformation | Table Microsoft.Foundation.Company."Company Information" | |
| Result | Boolean |
OnAfterBuyFromAddressEqualsShipToAddress
[IntegrationEvent(False,False)]
local procedure OnAfterBuyFromAddressEqualsShipToAddress(PurchaseHeader: Record "Purchase Header"; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean |
OnValidatePayToVendorNoOnAfterConfirmed
[IntegrationEvent(False,False)]
local procedure OnValidatePayToVendorNoOnAfterConfirmed(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnBeforeHasMixedDropShipment
[IntegrationEvent(False,False)]
local procedure OnBeforeHasMixedDropShipment(var PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnValidateBuyFromVendorNoOnBeforeAssignResponsibilityCenter
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnBeforeAssignResponsibilityCenter(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CallingFieldNo | Integer | |
| IsHandled | Boolean |
OnInitRecordOnBeforeAssignResponsibilityCenter
[IntegrationEvent(False,False)]
local procedure OnInitRecordOnBeforeAssignResponsibilityCenter(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnUpdateAllLineDimOnBeforeConfirmUpdateAllLineDim
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeConfirmUpdateAllLineDim(var PurchaseHeader: Record "Purchase Header"; var DefaultAnswer: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| DefaultAnswer | Boolean |
OnSetAmountToApplyAfterOnCalcRemainingAmount
[IntegrationEvent(False,False)]
local procedure OnSetAmountToApplyAfterOnCalcRemainingAmount(var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
OnBeforePerformManualRelease
[IntegrationEvent(False,False)]
local procedure OnBeforePerformManualRelease(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnValidateVATBaseDiscountOnBeforeConfirm
[IntegrationEvent(False,False)]
local procedure OnValidateVATBaseDiscountOnBeforeConfirm(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var Confirmed: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| Confirmed | Boolean |
OnConfirmCurrencyFactorUpdateOnBeforeConfirm
[IntegrationEvent(False,False)]
local procedure OnConfirmCurrencyFactorUpdateOnBeforeConfirm(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var Confirmed: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| Confirmed | Boolean |
OnIsApprovedForPostingOnBeforeError
[IntegrationEvent(False,False)]
local procedure OnIsApprovedForPostingOnBeforeError(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var Approved: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean | |
| Approved | Boolean |
OnAfterPayToAddressEqualsOldBuyFromAddress
[IntegrationEvent(False,False)]
local procedure OnAfterPayToAddressEqualsOldBuyFromAddress(PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean |
OnCopyAddressInfoFromOrderAddressOnBeforeCopyBuyFromVendorAddressFieldsFromOrderAddress
[IntegrationEvent(False,False)]
local procedure OnCopyAddressInfoFromOrderAddressOnBeforeCopyBuyFromVendorAddressFieldsFromOrderAddress(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; OrderAddress: Record "Order Address"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| OrderAddress | Table Microsoft.Purchases.Vendor."Order Address" | |
| IsHandled | Boolean |
OnAfterInitFromVendor
[IntegrationEvent(False,False)]
local procedure OnAfterInitFromVendor(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; VendorNo: Code[20]; VendorCaption: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| VendorNo | Code[20] | |
| VendorCaption | Text |
OnCreateDimOnAfterConfirmKeepExisting
[IntegrationEvent(False,False)]
local procedure OnCreateDimOnAfterConfirmKeepExisting(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; CurrentFieldNo: Integer; OldDimSetID: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| CurrentFieldNo | Integer | |
| OldDimSetID | Integer | |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] |
OnBeforeLookupPrepmtCrMemoNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPrepmtCrMemoNoSeries(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeValidatePrepmtCrMemoNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtCrMemoNoSeries(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeGetPstdDocLinesToReverse
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPstdDocLinesToReverse(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnAfterGetPstdDocLinesToReverse
[IntegrationEvent(False,False)]
local procedure OnAfterGetPstdDocLinesToReverse(var PurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnAfterValidateEmptySellToCustomerAndLocation
[IntegrationEvent(True,False)]
local procedure OnAfterValidateEmptySellToCustomerAndLocation(var PurchaseHeader: Record "Purchase Header"; var Vendor: Record Vendor)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
OnBeforeValidateVendorInvoiceNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVendorInvoiceNo(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeValidateVendorCrMemoNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVendorCrMemoNo(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeCheckIsTotalValid
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIsTotalValid(IncomingDocument: Record "Incoming Document"; PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| IncomingDocument | Table Microsoft.EServices.EDocument."Incoming Document" | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Result | Boolean | |
| IsHandled | Boolean |
OnBeforeUpdatePurchaseOrderLineIfExist
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchaseOrderLineIfExist(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeLookupPrepmtNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPrepmtNoSeries(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeValidatePrepmtNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtNoSeries(var PurchaseHeader: Record "Purchase Header"; var xPurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| IsHandled | Boolean |
OnBeforeGetVend
[IntegrationEvent(False,False)]
local procedure OnBeforeGetVend(PurchaseHeader: Record "Purchase Header"; var Vendor: Record Vendor; VendorNo: Code[20]; var GetVendor: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor | |
| VendorNo | Code[20] | |
| GetVendor | Boolean |
OnInitFromVendorOnBeforeInit
[IntegrationEvent(False,False)]
local procedure OnInitFromVendorOnBeforeInit(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnInitFromContactOnBeforeInit
[IntegrationEvent(False,False)]
local procedure OnInitFromContactOnBeforeInit(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| xPurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
OnLookupBuyFromContactOnAfterValidateBuyFromContactNo
[IntegrationEvent(False,False)]
local procedure OnLookupBuyFromContactOnAfterValidateBuyFromContactNo(var PurchaseHeader: Record "Purchase Header"; Contact: Record Contact)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| Contact | Table Microsoft.CRM.Contact.Contact |