KVSKBAPriceComparsionList
Procedures
SetItemNoVariantCode(Record Item, Code[10]) :
Summary: Sets the item and variant code for the page.
procedure SetItemNoVariantCode(NewItem: Record "Item"; NewVariantCode: Code[10]):
Parameters:
NewItem: The record of the Item table.NewVariantCode: The variant code to set.
Remarks: This procedure initializes the page with the specified item and variant code, allowing for the display of relevant price comparison information.
Events
OnBeforeChangeContactToVendor(Record Purchase Line, Boolean, Boolean) :
Summary: Integration event that is raised before changing the contact to a vendor in the ChangeContactToVendor procedure.
[IntegrationEvent(false, false)]
local procedure OnBeforeChangeContactToVendor(var PurchaseLine: Record "Purchase Line"; var HaveChanged: Boolean; var IsHandled: Boolean):
Parameters:
PurchaseLine: System.Object[]HaveChanged: Indicates whether the contact has been changed.IsHandled: Indicates whether the event has been handled by a subscriber.
Remarks: Subscribers can use this event to perform custom logic before changing the contact to a vendor in the ChangeContactToVendor procedure.
OnBeforeTransferInToItemVendors(Record Purchase Line, Boolean) :
Summary: Integration event that is raised before transferring the purchase line records into the item/vendor catalog in the TransferInToItemVendors procedure.
[IntegrationEvent(false, false)]
local procedure OnBeforeTransferInToItemVendors(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean):
Parameters:
PurchaseLine: System.Object[]IsHandled: Indicates whether the event has been handled by a subscriber.
Remarks: Subscribers can use this event to perform custom logic before transferring the purchase line records into the item/vendor catalog.
OnTransferInToItemVendorsOnBeforeInsertItemVendor(Record Purchase Line, Record Item Vendor) :
Summary: Integration event that is raised before inserting an item vendor record in the TransferInToItemVendors procedure.
[IntegrationEvent(false, false)]
local procedure OnTransferInToItemVendorsOnBeforeInsertItemVendor(var PurchaseLine: Record "Purchase Line"; var ItemVendor: Record "Item Vendor"):
Parameters:
PurchaseLine: System.Object[]ItemVendor: System.Object[]
Remarks: Subscribers can use this event to perform custom logic before inserting an item vendor record.
OnBeforeSavePriceAndDiscount(Record Purchase Line, Record Purchase Line, Boolean) :
Summary: Integration event that is raised before saving the price and discount in the SavePriceAndDiscount procedure.
[IntegrationEvent(false, false)]
local procedure OnBeforeSavePriceAndDiscount(CurrentPurchaseLine: Record "Purchase Line"; var SelectedPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean):
Parameters:
CurrentPurchaseLine: System.Object[]SelectedPurchaseLine: System.Object[]IsHandled: Indicates whether the event has been handled by a subscriber.
Remarks: Subscribers can use this event to perform custom logic before saving the price and discount.