Skip to content

[BC Idea]: [Event Request] table 36 - OnValidateResponsibilityCenterOnBeforeRecreateSalesLines #29438

@mmmurdered

Description

@mmmurdered

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

No one assigned

    Labels

    SCMGitHub request for SCM areabcideaIssue is created based on a BC Ideaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions