Skip to content

[W1][Report][5753][Get Source Documents] add event OnSetDoNotFillQtytoHandle in procedure SetDoNotFillQtytoHandle #30084

@mavohra

Description

@mavohra

Why do you need this change?

We need to conditionally override the DoNotFillQtytoHandle value based on the content of that header. Right now, there is no way to do that. Once SetDoNotFillQtytoHandle is called, the value is fixed and the report proceeds.

The event needs to fire inside SetDoNotFillQtytoHandle, immediately after the incoming value is assigned to DoNotFillQtytoHandle, and must carry both the receipt and shipment headers as var parameters.

Describe the request

Please add the event OnSetDoNotFillQtytoHandle in procedure SetDoNotFillQtytoHandle in Report 5753 "Get Source Documents".

Event Location:

procedure SetDoNotFillQtytoHandle(DoNotFillQtytoHandleToSet: Boolean)
    begin
        DoNotFillQuantityToHandle := DoNotFillQtytoHandleToSet;
        OnSetDoNotFillQtytoHandle(DoNotFillQtytoHandle, RequestType,"No.", WhseReceiptHeader,WhseShptHeader); //<---- New Event
    end;

Event Signature:

 [IntegrationEvent(false, false)]
    procedure OnSetDoNotFillQtytoHandle(var DoNotFillQtytoHandle: Boolean; RequestType: Option Receive,Ship; SourceDocumentNo: Code[20]; var WhseReceiptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header")
    begin
    end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions