Table of Contents

KVSKBAPurchaseHeader

Events

OnBeforeSearchPricingVendor(Record Purchase Header, Boolean) :

Summary: Raised before searching for the pricing vendor on a purchase header. Subscribers can use this event to implement custom logic for determining the pricing vendor.

[IntegrationEvent(false, false)]
local procedure OnBeforeSearchPricingVendor(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 

Parameters:

  • PurchaseHeader: The purchase header record being processed.
  • IsHandled: Set to true to indicate that the event has been handled and the standard logic for searching for the pricing vendor should be skipped.

Remarks: Subscribers should set the IsHandled parameter to true if they are handling the event to prevent the standard logic from executing.

OnBeforeSetPricingFields(Record Purchase Header, Boolean) :

Summary: Raised before setting pricing fields on a purchase header. Subscribers can use this event to implement custom logic for setting pricing fields.

[IntegrationEvent(false, false)]
local procedure OnBeforeSetPricingFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 

Parameters:

  • PurchaseHeader: The purchase header record being processed.
  • IsHandled: Set to true to indicate that the event has been handled and the standard logic for setting pricing fields should be skipped.

Remarks: Subscribers should set the IsHandled parameter to true if they are handling the event to prevent the standard logic from executing.

OnBeforeOnValidatePaytoVendorNoBeforeRecreateLines(Record Purchase Header, Boolean) :

Summary: Raised before validating the "Pay-to Vendor No." field on the purchase header during the line recreation process. Subscribers can use this event to implement custom logic for validating the "Pay-to Vendor No." field.

[IntegrationEvent(false, false)]
local procedure OnBeforeOnValidatePaytoVendorNoBeforeRecreateLines(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 

Parameters:

  • PurchaseHeader: The purchase header record being processed.
  • IsHandled: Set to true to indicate that the event has been handled and the standard logic for validating the "Pay-to Vendor No." field should be skipped.

Remarks: Subscribers should set the IsHandled parameter to true if they are handling the event to prevent the standard logic from executing.