ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Need old functionality from Codeunit 7000.OnAfterGetSalesLinePrice into new Price Functionality

Open KristjanGaukur opened this issue 5 years ago • 3 comments

I am using the Event OnAfterGetSalesLinePrice from Codeunit 7000 that is now marked obsolete. This event has not been moved over to the new Price functionality, and my best guess on where it should be is:

in Table 37 function "PickPrice" get the event OnAfterPickPrice as the last line, with the same parameters as the old event :: LOCAL [IntegrationEvent] OnAfterGetSalesLineLineDisc(VAR SalesLine : Record "Sales Line";VAR SalesLineDiscount : Record "Sales Line Discount")

If there is a different place that is better for this event, then I'm fine with that. What I need is to be able to grab the results of the "Get Price" actions in the document subforms for the "Sales Line" table (which seem to call T37.PickPrice).

Cheers, Kristján Gaukur Kristjánsson

KristjanGaukur avatar May 11 '21 14:05 KristjanGaukur

Please note that since Sales Line Discount is also obsolete, it's not needed(used) here and will not be provided only Sales Line will be provided as parameter, if you discover that you need something else, let us know in another issue.

Stepanenko-Vadim avatar May 27 '21 06:05 Stepanenko-Vadim

I need to know which price entry was found, so I can utilize my extension fields in that entry. (Be it "Sales Price" while it is not yet discontinued, and the "Price List Line" that is taking over.) That is what the Event OnAfterGetSalesLinePrice from Codeunit 7000 is giving me now.

(Why do I need to create another issue?)

KristjanGaukur avatar May 27 '21 10:05 KristjanGaukur

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Jun 01 '21 14:06 JesperSchulz