-
Notifications
You must be signed in to change notification settings - Fork 687
Description
Why do you need this change?
At 4PS Construct, we restrict the adjustment of Standard Cost through the standard "Adjust Item Costs/Prices" report. The current implementation of the report allows users to select "Standard Cost" as an adjustment field, but this conflicts with our processes. We need to prevent users from selecting "Standard Cost" as the field to adjust.
To correctly implement our standard cost process, we need a new event OnAfterAdjustFieldValidate to validate that the Selection parameter does not equal "Standard Cost".
Describe the request
Dear ALAppExtensions team,
On behalf of 4PS, I would like to request a new integration event OnAfterAdjustFieldValidate in report 794 "Adjust Item Costs/Prices"
Suggested extensibility:
field(AdjustField; Selection)
{
ApplicationArea = Basic, Suite;
Caption = 'Adjust Field';
OptionCaption = 'Unit Price,Profit %,Indirect Cost %,Last Direct Cost,Standard Cost';
ToolTip = 'Specifies which field should be adjusted.';
trigger OnValidate()
begin
if Selection = Selection::"Indirect Cost %" then
IndirectCost37SelectionOnValid();
if Selection = Selection::"Profit %" then
Profit37SelectionOnValidate();
if Selection = Selection::"Unit Price" then
UnitPriceSelectionOnValidate();
**OnAfterAdjustFieldValidate(Selection);** --> new
end;
}
[IntegrationEvent(false, false)]
local procedure OnAfterAdjustFieldValidate(Selection: Option "Unit Price","Profit %","Indirect Cost %","Last Direct Cost","Standard Cost")
begin
--> new
end;
Internal work item: AB#614928
