0

Problem:

In the CopyTo(var PriceAsset: Record "Price Asset") procedure of the "Price List Line" table, the event OnAfterCopyToPriceAsset(PriceAsset) does not provide the source "Price List Line" record (Rec). As a result, it is not possible to copy additional fields or apply context-specific logic in the event subscriber.


This limitation affects functionality such as the IsLookupOK interface method in "Price Asset", where specific filtering (e.g. by "Source No.") cannot be applied due to the lack of source data.


Proposed Solution:

Enhance the event OnAfterCopyToPriceAsset by adding the source "Price List Line" record as an additional parameter, like so:


[IntegrationEvent(false, false)]

local procedure OnAfterCopyToPriceAsset(var PriceAsset: Record "Price Asset"; SourcePriceListLine: Record "Price List Line")


Category: Development
STATUS DETAILS
New