ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] table 37 "Sales Line" - OnAfterFindResUnitCostOnAfterValidateUnitCostLCY

Open alapenas opened this issue 3 years ago • 1 comments

Hello, would it be possible to add OnAfterFindResUnitCostOnAfterValidateUnitCostLCY event to table 37 "Sales Line", like this:

procedure FindResUnitCost() 
... 
          ResCost."Work Type Code" := "Work Type Code";
         CODEUNIT.Run(CODEUNIT::"Resource-Find Cost", ResCost);
         OnAfterFindResUnitCost(Rec, ResCost);
         Validate("Unit Cost (LCY)", ResCost."Unit Cost" * "Qty. per Unit of Measure");
>         OnAfterFindResUnitCostOnAfterValidateUnitCostLCY(Rec, xRec); //New Event
     end;
 
     [Obsolete('Replaced by the new implementation (V16) of price calculation.', '17.0')]
     procedure FindResUnitCostOnAfterInitResCost(var ResourceCost: Record "Resource Cost") 
  
     [IntegrationEvent(false, false)]
     local procedure OnAfterFindResUnitCostOnAfterValidateUnitCostLCY(var SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line") 
     begin
     end; 

alapenas avatar Feb 27 '23 16:02 alapenas

Sorry, we are not adding a new publishers for obsoleted procedures.

tomasevics avatar Jun 14 '23 09:06 tomasevics