-
Notifications
You must be signed in to change notification settings - Fork 687
Closed
Closed
[BC Idea]: [Event Request] table 36 - OnValidateResponsibilityCenterOnBeforeRecreateSalesLines#29438
Feature
Copy link
Labels
SCMGitHub request for SCM areaGitHub request for SCM areabcideaIssue is created based on a BC IdeaIssue is created based on a BC Ideaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
BC Idea Link
NA
Description
Why do you need this change?
We need to implement custom logic before recreating sales lines on "Responscibility Center" validate. Event similar to OnValidateBilltoCustomerTemplCodeOnBeforeRecreateSalesLines on 5057; "Bill-to Customer Templ. Code" field.
Describe the request
Could you please add the event OnValidateResponsibilityCenterOnBeforeRecreateSalesLines?
field(5700; "Responsibility Center"; Code[10])
{
Caption = 'Responsibility Center';
TableRelation = "Responsibility Center";
trigger OnValidate()
begin
TestStatusOpen();
if not UserSetupMgt.CheckRespCenter(0, "Responsibility Center") then
Error(
Text027,
RespCenter.TableCaption(), UserSetupMgt.GetSalesFilter());
UpdateLocationCode('');
UpdateOutboundWhseHandlingTime();
UpdateShipToAddress();
CreateDimFromDefaultDim(Rec.FieldNo("Responsibility Center"));
OnValidateResponsibilityCenterOnBeforeRecreateSalesLines(Rec, CurrFieldNo);
if xRec."Responsibility Center" <> "Responsibility Center" then begin
RecreateSalesLines(FieldCaption("Responsibility Center"));
"Assigned User ID" := '';
end;
end;
}
[IntegrationEvent(false, false)]
local procedure OnValidateResponsibilityCenterOnBeforeRecreateSalesLines(var SalesHeader: Record "Sales Header"; CallingFieldNo: Integer)
begin
end;
I will provide the implementation for this BC Idea
- I will provide the implementation for this BC Idea
Internal work item: AB#616642
Metadata
Metadata
Assignees
Labels
SCMGitHub request for SCM areaGitHub request for SCM areabcideaIssue is created based on a BC IdeaIssue is created based on a BC Ideaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update