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]
"Pay-to Address 2"
Text[50]
"Pay-to City"
Text[30]
"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]
"Ship-to Address"
Text[100]
"Ship-to Address 2"
Text[50]
"Ship-to City"
Text[30]
"Ship-to Contact"
Text[100]
Specifies the name of the contact person at the address that the items are shipped to.
"Order Date"
Date
"Posting Date"
Date
Specifies the date when the posting of the purchase document will be recorded.
"Expected Receipt Date"
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
"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 location where the items are to be placed when they are received. 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]
"Currency Code"
Code[10]
Specifies the code of the currency of the amounts on the purchase lines.
"Currency Factor"
Decimal
"Prices Including VAT"
Boolean
"Invoice Disc. Code"
Code[20]
"Language Code"
Code[10]
"Format Region"
Text[80]
"Purchaser Code"
Code[20]
Specifies which purchaser is assigned to the vendor.
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]
"Vendor Invoice No."
Code[35]
"Vendor Cr. Memo No."
Code[35]
"VAT Registration No."
Text[20]
"Sell-to Customer No."
Code[20]
"Reason Code"
Code[10]
"Gen. Bus. Posting Group"
Code[20]
"Transaction Type"
Code[10]
"Transport Method"
Code[10]
"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]
"Buy-from Address 2"
Text[50]
"Buy-from City"
Text[30]
"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]
"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]
"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]
"Ship-to Country/Region Code"
Code[10]
Specifies the country/region code of the address that the items are shipped to.
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
"Creditor No."
Code[20]
"Payment Reference"
Code[50]
"Invoice Received Date"
Date
"Journal Templ. Name"
Code[10]
"VAT Reporting Date"
Date
"Ship-to Phone No."
Text[30]
"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]
"Invoice Discount Amount"
Decimal
"No. of Archived Versions"
Integer
"Doc. No. Occurrence"
Integer
"Campaign No."
Code[20]
"Buy-from Contact No."
Code[20]
"Pay-to Contact No."
Code[20]
"Responsibility Center"
Code[10]
"Partially Invoiced"
Boolean
"Completely Received"
Boolean
"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
"Lead Time Calculation"
DateFormula
"Inbound Whse. Handling Time"
DateFormula
"Date Filter"
Date
"Vendor Authorization No."
Code[35]
Specifies the compensation agreement identification number, sometimes referred to as the RMA No. (Returns Materials Authorization).
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
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.
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")
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)
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")
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.
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.
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.
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.
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)
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)
Return value: Temporary item charge assignment record set to transfer to.
OpenPurchaseOrderStatistics
Obsolete
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
procedure OpenPurchaseOrderStatistics()
OpenDocumentStatistics
Obsolete
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
procedure OpenDocumentStatistics()
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()
ShowDocumentStatisticsPage
Obsolete
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
procedure ShowDocumentStatisticsPage()
SkipStatisticsPreparation
Obsolete
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
procedure SkipStatisticsPreparation(): Boolean
Returns
Type
Description
Boolean
ResetSkipStatisticsPreparationFlag
Obsolete
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
procedure ResetSkipStatisticsPreparationFlag()
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.
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")
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")
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.
[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)
[IntegrationEvent(False,False)]
local procedure OnAfterHasDifferentBuyFromAddress(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, var Result: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterHasDifferentPayToAddress(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, var Result: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeGetFullDocTypeTxt(var PurchaseHeader: Record "Purchase Header", var FullDocTypeTxt: Text, var IsHandled: Boolean)
[IntegrationEvent(True,False)]
local procedure OnBeforeGetNoSeriesCode(PurchSetup: Record "Purchases & Payables Setup", var NoSeriesCode: Code[20], var IsHandled: Boolean, var PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnBeforeGetNextArchiveDocOccurrenceNo(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeGetPostingNoSeriesCode(var PurchaseHeader: Record "Purchase Header", PurchasesPayablesSetup: Record "Purchases & Payables Setup", var PostingNos: Code[20], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterAddShipToAddress(var PurchaseHeader: Record "Purchase Header", SalesHeader: Record "Sales Header", ShowError: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterAddSpecialOrderToAddress(var PurchaseHeader: Record "Purchase Header", SalesHeader: Record "Sales Header", ShowError: Boolean)
[IntegrationEvent(True,False)]
local procedure OnAfterCopyAddressInfoFromOrderAddress(var OrderAddress: Record "Order Address", var PurchHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnAfterCouldDimensionsBeKept(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var Result: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterCheckBuyFromVendor(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", Vendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnAfterCheckPayToVendor(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", Vendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnAfterConfirmPurchPrice(var PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", var RecalculateLines: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterCopyBuyFromVendorFieldsFromVendor(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnAfterCopyPayToVendorFieldsFromVendor(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnAfterCopyBuyFromVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header", BuyFromVendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnAfterCopyPayToVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header", PayToVendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnAfterCopyShipToVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header", BuyFromVendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnAfterRecreatePurchLine(var PurchLine: Record "Purchase Line", var TempPurchLine: Record "Purchase Line" temporary, var PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnAfterGetNoSeriesCode(var PurchHeader: Record "Purchase Header", PurchSetup: Record "Purchases & Payables Setup", var NoSeriesCode: Code[20])
[IntegrationEvent(False,False)]
local procedure OnAfterGetPrepaymentPostingNoSeriesCode(PurchaseHeader: Record "Purchase Header", var PostingNos: Code[20])
[IntegrationEvent(False,False)]
local procedure OnAfterGetPurchSetup(PurchaseHeader: Record "Purchase Header", var PurchasesPayablesSetup: Record "Purchases & Payables Setup", CalledByFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnAfterGetReportSelectionsUsageFromDocumentType(PurchaseHeader: Record "Purchase Header", var ReportSelectionsUsage: Option, var DocTxt: Text[150])
[IntegrationEvent(False,False)]
local procedure OnAfterSetShipToForSpecOrder(var PurchaseHeader: Record "Purchase Header", Location: Record Location, CompanyInformation: Record "Company Information")
[IntegrationEvent(False,False)]
local procedure OnAfterTestNoSeries(var PurchHeader: Record "Purchase Header", PurchSetup: Record "Purchases & Payables Setup")
[IntegrationEvent(False,False)]
local procedure OnAfterTransferSavedFields(var DestinationPurchaseLine: Record "Purchase Line", SourcePurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnTransferSavedFieldsOnAfterSetVariantCode(var DestinationPurchaseLine: Record "Purchase Line", SourcePurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateBuyFromCont(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, Contact: Record Contact)
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePayToAddressFromBuyFromAddress(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", FieldNumber: Integer)
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePayToCont(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, Contact: Record Contact)
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePurchLinesByFieldNo(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", ChangedFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header", HideValidationDialog: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateInboundWhseHandlingTime(var PurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShipToCode(var PurchHeader: Record "Purchase Header", Cust: Record Customer, ShipToAddr: Record "Ship-to Address")
[IntegrationEvent(False,False)]
local procedure OnAfterAppliesToDocNoOnLookup(var PurchaseHeader: Record "Purchase Header", VendorLedgerEntry: Record "Vendor Ledger Entry")
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnBeforeModifyRec(var PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnAfterCalcShouldConfirmReservationDateConflict(var PurchaseHeader: Record "Purchase Header", ChangedFieldNo: Integer, var ShouldConfirmReservationDateConflict: Boolean)
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnAfterPurchLineSetFilters(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", ChangedFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByChangedFieldName(PurchHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", ChangedFieldName: Text[100], ChangedFieldNo: Integer, xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnValidateShortcutDimCodeOnBeforeUpdateAllLineDim(var PurcasehHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", FieldNumber: Integer)
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var PurchHeader: Record "Purchase Header", xPurchHeader: Record "Purchase Header", FieldNumber: Integer, var ShortcutDimCode: Code[20])
[IntegrationEvent(False,False)]
local procedure OnAfterTransferExtendedTextForPurchaseLineRecreation(var PurchLine: Record "Purchase Line", var TempPurchaseLine: Record "Purchase Line" temporary)
[IntegrationEvent(False,False)]
local procedure OnValidatePurchaseHeaderPayToVendorNoOnBeforeCheckDocType(Vendor: Record Vendor, var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", SkipPayToContact: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnBeforeResetInvoiceDiscountValue(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeAddSpecialOrderToAddress(var PurchaseHeader: Record "Purchase Header", var SalesHeader: Record "Sales Header", var IsHandled: Boolean, ShowError: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeAssistEdit(var PurchaseHeader: Record "Purchase Header", OldPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeBuyFromPostCodeOnBeforeLookupHandled(var PurchaseHeader: Record "Purchase Header", PostCode: Record "Post Code", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeCouldDimensionsBeKept(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckShipToCodeChange(PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSpecialOrderSalesLineLink(PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmDeletion(var PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[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)
[IntegrationEvent(False,False)]
local procedure OnAfterConfirmUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header", var HideValidationDialog: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header", var HideValidationDialog: Boolean, var ForceConfirm: Boolean)
[IntegrationEvent(True,False)]
local procedure OnBeforeContactIsNotRelatedToVendorError(Contact: Record Contact, ContactNo: Code[20], var IsHandled: Boolean)
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimSetForPrepmtAccDefaultDim(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDimensionsFromValidatePayToVendorNo(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmResvDateConflict(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, ChangedFieldNo: Integer)
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeDeletePurchaseLines(var PurchaseLine: Record "Purchase Line", var IsHandled: Boolean, var PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteRecordInApprovalRequest(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeInitInsert(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeHasBuyFromAddress(var PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeHasShipToAddress(var PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeHasPayToAddress(var PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupAppliesToDocNo(var PurchaseHeader: Record "Purchase Header", var VendorLedgEntry: Record "Vendor Ledger Entry", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupReturnShipmentNoSeries(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeMessageIfPurchLinesExist(var PurchaseHeader: Record "Purchase Header", ChangedFieldName: Text[100], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeModifyPayToVendorAddress(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeModifyVendorAddress(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeOpenPurchaseOrderStatistics(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferSavedFields(var DestinationPurchaseLine: Record "Purchase Line", SourcePurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header", var Updated: Boolean, var CurrencyExchangeRate: Record "Currency Exchange Rate", CurrentFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchLineAmounts(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeRecreatePurchLinesHandler(var PurchHeader: Record "Purchase Header", xPurchHeader: Record "Purchase Header", ChangedFieldName: Text[100], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeSetSecurityFilterOnRespCenter(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckContactRelatedToVendorCompany(PurchaseHeader: Record "Purchase Header", CurrFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeShowDocDim(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeSendToPosting(var PurchaseHeader: Record "Purchase Header", var IsSuccess: Boolean, var IsHandled: Boolean, PostingCodeunitID: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforePrintRecords(var PurchaseHeader: Record "Purchase Header", ShowRequestForm: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeSendProfile(var PurchaseHeader: Record "Purchase Header", var DocumentSendingProfile: Record "Document Sending Profile", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeSetPurchaserCode(var PurchaseHeader: Record "Purchase Header", PurchaserCodeToCheck: Code[20], var PurchaserCodeToAssign: Code[20], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferSavedFieldsDropShipment(var DestinationPurchaseLine: Record "Purchase Line", var SourcePurchaseLine: Record "Purchase Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferSavedFieldsSpecialOrder(var DestinationPurchaseLine: Record "Purchase Line", var SourcePurchaseLine: Record "Purchase Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAllLineDim(var PurchaseHeader: Record "Purchase Header", NewParentDimSetID: Integer, OldParentDimSetID: Integer, var IsHandled: Boolean, xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateLocationCode(var PurchaseHeader: Record "Purchase Header", LocationCode: Code[10], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchLinesByFieldNo(var PurchaseHeader: Record "Purchase Header", ChangedFieldNo: Integer, var AskQuestion: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateShipToAddress(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, CurrentFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromVendorNo(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer, var SkipBuyFromContact: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePostingDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateEmptySellToCustomerAndLocation(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, var IsHandled: Boolean, var xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnCollectParamsInBufferForCreateDimSetOnAfterSetTempPurchLineFilters(var TempPurchaseLine: Record "Purchase Line" temporary, PurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure CollectParamsInBufferForCreateDimSetOnBeforeInsertTempPurchaseLineInBuffer(var GeneralPostingSetup: Record "General Posting Setup", var DefaultDimension: Record "Default Dimension")
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePayToVendorNo(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", var Confirmed: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePricesIncludingVAT(var PurchaseHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", var IsHandled: Boolean, var xPurchaseHeader: Record "Purchase Header")
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDocumentDateWithPostingDate(var PurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer, var IsHandled: Boolean, xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
procedure OnBuyFromCityOnBeforeOnLookup(var PurchaseHeader: Record "Purchase Header", PostCode: Record "Post Code", var IsHandled: Boolean)
[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]]])
[IntegrationEvent(False,False)]
local procedure OnInsertTempPurchLineInBufferOnBeforeTempPurchLineInsert(var TempPurchaseLine: Record "Purchase Line" temporary, PurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnAfterValidateType(var PurchaseLine: Record "Purchase Line", TempPurchaseLine: Record "Purchase Line" temporary)
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforeInsertPurchLine(var PurchaseLine: Record "Purchase Line", var TempPurchaseLine: Record "Purchase Line" temporary, ChangedFieldName: Text[100])
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforeTempPurchLineInsert(var TempPurchaseLine: Record "Purchase Line" temporary, PurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLineOnAfterProcessAttachedToLineNo(var TempPurchaseLine: Record "Purchase Line" temporary, PurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnAfterProcessTempPurchLines(var TempPurchaseLine: Record "Purchase Line" temporary, var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", ChangedFieldName: Text[100])
[IntegrationEvent(False,False)]
local procedure OnShipToPostCodeOnBeforeOnLookup(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, PostCode: Record "Post Code")
[IntegrationEvent(False,False)]
local procedure OnShowDocDimOnAfterSetDimensionSetID(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnAfterRecreateLines(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoBeforeRecreateLines(var PurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer, var Vendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnAfterUpdateBuyFromCont(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer, var SkipBuyFromContact: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnValidateBuyFromVendorNoOnBeforeValidatePayToVendor(var PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnBeforeOnRename(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeShowPostedDocsToPrintCreatedMsg(var ShowPostedDocsToPrint: Boolean, HideValidationDialog: Boolean, var PurchaseHeader: Record "Purchase Header")
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeOpenDocumentStatistics(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
This element will become obsolete from version 26.0. The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.
[Obsolete(The statistics action will be replaced with the PurchaseOrderStatistics action. The new action uses RunObject and does not run the action trigger. Use a page extension to modify the behaviour.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnGetStatisticsPageID(var PageID: Integer, PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(True,False)]
local procedure OnBeforeTestStatusOpen(var PurchHeader: Record "Purchase Header", xPurchHeader: Record "Purchase Header", CallingFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnInitFromPurchHeader(var PurchaseHeader: Record "Purchase Header", SourcePurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnInitFromContactOnBeforeInitRecord(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnInitFromVendorOnBeforeInitRecord(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnInitInsertOnBeforeInitRecord(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header")
[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)
[IntegrationEvent(False,False)]
local procedure OnPrintRecordsOnBeforeTrySendToPrinterVendor(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, ShowRequestForm: Boolean)
[IntegrationEvent(False,False)]
local procedure OnTransferSavedFieldsSpecialOrderOnBeforeSalesLineModify(var DestinationPurchaseLine: Record "Purchase Line", var SourcePurchaseLine: Record "Purchase Line", var SalesLine: Record "Sales Line")
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforePurchLineModify(var PurchaseLine: Record "Purchase Line", xPurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnUpdateCurrencyFactorOnAfterCurrencyDateSet(var PurchaseHeader: Record "Purchase Header", var CurrencyDate: Date, CurrentFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLinesByFieldNoOnBeforeLineModify(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", PurchaseLine: Record "Purchase Line")
[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)
[IntegrationEvent(False,False)]
local procedure OnValidateOrderAddressCodeOnAfterCopyBuyFromVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header", Vend: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnValidateOrderAddressCodeOnBeforeCopyBuyFromVendorAddressFieldsFromVendor(var PurchaseHeader: Record "Purchase Header", Vend: Record Vendor, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidateOrderAddressCodeOnBeforeUpdateLocationCode(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeCalcDueDate(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", CalledByFieldNo: Integer, CallingFieldNo: Integer, var IsHandled: Boolean)
[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)
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeValidatePmtDiscountWhenBlank(var PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeValidateDueDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeValidateDueDateWhenBlank(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidatePayToVendorNoOnBeforeRecallModifyAddressNotification(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", Vendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnValidatePaytoVendorNoBeforeRecreateLines(var PurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnValidatePricesIncludingVATOnBeforePurchLineModify(var PurchaseHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", Currency: Record Currency, RecalculatePrice: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidateVATBaseAmountPercOnBeforeUpdatePurchAmountLines(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnLookupPostCode(CalledFromFieldNo: Integer, xRecPurchaseHeader: Record "Purchase Header", var PurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnDropShipmentSpecialOrder(var PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)
[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)
[IntegrationEvent(False,False)]
local procedure OnUpdateBuyFromVendOnAfterGetContact(var PurchaseHeader: Record "Purchase Header", var Cont: Record Contact, var ShouldUpdateFromContact: Boolean)
[IntegrationEvent(False,False)]
local procedure OnUpdatePayToVendOnAfterGetContact(var PurchaseHeader: Record "Purchase Header", var Cont: Record Contact, var ShouldUpdateFromContact: Boolean)
[IntegrationEvent(False,False)]
local procedure OnUpdatePayToVendOnBeforeFindByContact(var PurchaseHeader: Record "Purchase Header", Vendor: Record Vendor, Contact: Record Contact)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePromisedReceiptDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, CUrrentFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateReceivingNoSeries(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateReturnShipmentNoSeries(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateRequestedReceiptDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckBlockedVendOnDocs(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var Vend: Record Vendor, CurrFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeTestPurchLineFieldsBeforeRecreate(var PurchaseHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnRecreateTempPurchLinesOnAfterTempPurchLineInsert(var PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", var TempPurchaseLine: Record "Purchase Line" temporary)
[IntegrationEvent(False,False)]
local procedure OnBeforeDeletePurchCommentLines(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeStorePurchCommentLineToTemp(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferItemChargeAssgntPurchToTemp(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeDeletePurchLines(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var PurchLine: Record "Purchase Line", var IsHandled: Boolean)
[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")
[IntegrationEvent(False,False)]
local procedure OnValidatePrepmtPaymentTermsCodeOnCaseElseOnBeforeValidatePrepaymentDueDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidatePrepmtPaymentTermsCodeOnCaseIfOnBeforeValidatePrepaymentDueDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidateGenBusPostingGroupOnAfterSetVATBusPostingGroup(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", GenBusPostingGrp: Record "Gen. Business Posting Group")
[IntegrationEvent(False,False)]
local procedure OnBeforeSetAmountToApply(var PurchaseHeader: Record "Purchase Header", var VendLedgEntry: Record "Vendor Ledger Entry")
[IntegrationEvent(False,False)]
local procedure OnAfterInitPostingNoSeries(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header")
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePayToCity(var PurchaseHeader: Record "Purchase Header", var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePayToPostCode(var PurchaseHeader: Record "Purchase Header", var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToCity(var PurchaseHeader: Record "Purchase Header", var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToPostCode(var PurchaseHeader: Record "Purchase Header", var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromCity(var PurchaseHeader: Record "Purchase Header", var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromPostCode(var PurchaseHeader: Record "Purchase Header", var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnAfterCopyFromShipToAddr(var PurchaseHeader: Record "Purchase Header", ShipToAddress: Record "Ship-to Address")
[IntegrationEvent(False,False)]
local procedure OnValidateShipToCodeOnAfterCopyFromSellToCust(var PurchaseHeader: Record "Purchase Header", Customer: Record Customer)
[IntegrationEvent(False,False)]
local procedure OnUpdateShipToAddressOnAfterCopyFromLocation(var PurchaseHeader: Record "Purchase Header", Location: Record Location)
[IntegrationEvent(False,False)]
local procedure OnUpdateShipToAddressOnAfterCopyFromCompany(var PurchaseHeader: Record "Purchase Header", CompanyInformation: Record "Company Information")
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShipToCode(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var ShipToAddr: Record "Ship-to Address", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupBuyFromContactNo(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPayToContactNo(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateOrderDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, CurrFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateExpectedReceiptDate(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, CallingFieldNo: Integer)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateSendICDocument(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnSendRecordsOnBeforeSendVendorRecords(ReportUsage: Enum "Report Selection Usage", var PurchaseHeader: Record "Purchase Header", DocTxt: Text[150], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePaymentDiscountPercent(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtPaymentDiscountPercent(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeGetUserSetupPurchaserCode(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnCheckBuyFromContactOnAfterFindByContact(var PurchHeader: Record "Purchase Header", var ContBusinessRelation: Record "Contact Business Relation", var Contact: Record Contact)
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckVendorPostingGroupChange(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforePurchLinesExist(var Rec: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnBeforeCheckNeedUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var IsConfirmed: Boolean, var NeedUpdateCurrencyFactor: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnAfterCheckNeedUpdateCurrencyFactor(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var SkipJobCurrFactorUpdate: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBuyFromVendorName(var PurchaseHeader: Record "Purchase Header", var Vendor: Record Vendor, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforePriceMessageIfPurchLinesExist(var PurchaseHeader: Record "Purchase Header", ChangedFieldName: Text[100], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnCreateDimSetForPrepmtAccDefaultDimOnBeforeTempPurchaseLineCreateDim(var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]], PurchaseLine: Record "Purchase Line")
[IntegrationEvent(False,False)]
local procedure OnRecreatePurchLinesOnBeforePurchLinesExists(var PurchHeader: Record "Purchase Header", xPurchHeader: Record "Purchase Header", ChangedFieldName: Text[100], var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterInitPurchaseLineDefaultDimSource(var PurchaseHeader: Record "Purchase Header", var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]], SourcePurchaseLine: Record "Purchase Line")
[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)
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmCloseUnposted(var PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCurrencyCode(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CurrentFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDropShipmentLineExists(var SalesShipmentLine: Record "Sales Shipment Line", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterIsShipToAddressEqualToCompanyShipToAddress(PurchaseHeader: Record "Purchase Header", CompanyInformation: Record "Company Information", var Result: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterBuyFromAddressEqualsShipToAddress(PurchaseHeader: Record "Purchase Header", var Result: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeHasMixedDropShipment(var PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidateBuyFromVendorNoOnBeforeAssignResponsibilityCenter(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", CallingFieldNo: Integer, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnInitRecordOnBeforeAssignResponsibilityCenter(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeConfirmUpdateAllLineDim(var PurchaseHeader: Record "Purchase Header", var DefaultAnswer: Boolean)
[IntegrationEvent(False,False)]
local procedure OnValidateVATBaseDiscountOnBeforeConfirm(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, var Confirmed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnConfirmCurrencyFactorUpdateOnBeforeConfirm(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, var Confirmed: Boolean)
[IntegrationEvent(False,False)]
local procedure OnIsApprovedForPostingOnBeforeError(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean, var Approved: Boolean)
[IntegrationEvent(False,False)]
local procedure OnAfterPayToAddressEqualsOldBuyFromAddress(PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", var Result: Boolean)
[IntegrationEvent(False,False)]
local procedure OnCopyAddressInfoFromOrderAddressOnBeforeCopyBuyFromVendorAddressFieldsFromOrderAddress(var PurchaseHeader: Record "Purchase Header", xPurchaseHeader: Record "Purchase Header", OrderAddress: Record "Order Address", var IsHandled: Boolean)
[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]]])
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPrepmtCrMemoNoSeries(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtCrMemoNoSeries(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(True,False)]
local procedure OnAfterValidateEmptySellToCustomerAndLocation(var PurchaseHeader: Record "Purchase Header", var Vendor: Record Vendor)
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIsTotalValid(IncomingDocument: Record "Incoming Document", PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchaseOrderLineIfExist(var PurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPrepmtNoSeries(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtNoSeries(var PurchaseHeader: Record "Purchase Header", var xPurchaseHeader: Record "Purchase Header", var IsHandled: Boolean)