Table of Contents

KVSKBABlanketPurchOrderSubform

Extends #437dbf0e84ff417a965ded2bb9650972#Blanket Purchase Order Subform

Events

KVSKBAOnBeforeSavePriceAndDiscount(Record Purchase Line, Record Purchase Line, Boolean) :

Summary: This event is raised before saving the price and discount on the selected purchase lines.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeSavePriceAndDiscount(CurrentPurchLine: Record "Purchase Line"; var SelectedPurchLines: Record "Purchase Line"; var IsHandled: Boolean): 

Parameters:

  • CurrentPurchLine: The current purchase line record that is being processed.
  • SelectedPurchLines: The record of selected purchase lines for which the price and discount are being saved.
  • IsHandled: Indicates whether the event is handled. If set to true, the standard handling of saving the price and discount will be skipped.

Remarks: Subscribers can use this event to perform custom logic before saving the price and discount on the selected purchase lines. If the event is handled, the standard handling of saving the price and discount will be skipped.

KVSKBAOnBeforeSaveAndUpdateOtherPurchLinesDirectUnitCost(Record Purchase Line, Boolean) :

Summary: This event is raised before saving and updating the direct unit cost on other purchase lines.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeSaveAndUpdateOtherPurchLinesDirectUnitCost(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean): 

Parameters:

  • PurchLine: The current purchase line record that is being processed.
  • IsHandled: Indicates whether the event is handled. If set to true, the standard handling of saving and updating the direct unit cost on other purchase lines will be skipped.

Remarks: Subscribers can use this event to perform custom logic before saving and updating the direct unit cost on other purchase lines. If the event is handled, the standard handling of saving and updating the direct unit cost on other purchase lines will be skipped.

KVSKBAOnBeforeNewCalcDUnitCostLineDisc(Record Purchase Line, Boolean) :

Summary: This event is raised before calculating the direct unit cost and line discount on a purchase line.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeNewCalcDUnitCostLineDisc(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean): 

Parameters:

  • PurchLine: The purchase line record that is being processed.
  • IsHandled: Indicates whether the event is handled. If set to true, the standard handling of calculating the direct unit cost and line discount will be skipped.

KVSKBAOnItemReferenceNoOnLookup(Record Purchase Line) :

Summary: This event is raised when the user clicks on the Item Reference No. field's lookup in the Blanket Purchase Order Subform page.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnItemReferenceNoOnLookup(var PurchaseLine: Record "Purchase Line"): 

Parameters:

  • PurchaseLine: The purchase line record for which the Item Reference No. lookup is being performed.

Remarks: Subscribers can use this event to perform custom logic when the user clicks on the Item Reference No. field's lookup in the Blanket Purchase Order Subform page, such as displaying a custom lookup page or filtering the available item references based on specific criteria.