1

Hi


In codeunit 1002 "Job Create-Invoice" there is an event called OnCreateSalesLineOnBeforeValidateCurrencyCode


The Signature of this event is as follows:

[IntegrationEvent(false, false)]

local procedure OnCreateSalesLineOnBeforeValidateCurrencyCode(var IsHandled: Boolean; SalesLine: Record "Sales Line"; JobPlanningLine: Record "Job Planning Line")

begin

end;


The SalesLine parameter is NOT marked as var - thus making it difficult to actually handle the things you would handle before setting the IsHandled parameter to true


In my scenario, I need to avoid the "Unit Price" from the JobPlanningLine to be multiplied by the Currency Factor of the sales header as the price is already represented in that particular currency. I cannot do that.


If the paramater SalesLine was marked var I could actually have handled the scenario and marked the IsHandled as true.

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team