Skip to content

report 794 "Adjust Item Costs/Prices" OnAfterAdjustFieldValidate #29462

@Kotaite

Description

@Kotaite

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"

Current code:
Image

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;

Image Image

Internal work item: AB#614928

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions