Skip to content

[Event Request] [W1][Codeunit][7307][Whse.-Activity-Register] OnUpdateTempBinContentBufferOnBeforeModify #29045

Description

Why do you need this change?

The current procedure UpdateTempBinContentBuffer allows adding custom fields when the TempBinContentBuffer is inserted through an existing event, but it is not possible to update any fields at the time of modifying the record, which would happen when multiple warehouse activity lines are grouped together.

Describe the request

Add the following code in the UpdateTempBinContentBuffer local procedure:

        TempBinContentBuffer.Cubage := TempBinContentBuffer.Cubage + Sign * WhseActivLine.Cubage;
        TempBinContentBuffer.Weight := TempBinContentBuffer.Weight + Sign * WhseActivLine.Weight;
        // NEW CODE START
        OnUpdateTempBindContentBufferOnBeforeModify(TempBinContentBuffer, WhseActivLine);
        // NEW CODE END
        TempBinContentBuffer.Modify();

Add the following code at the end of the codeunit or after the OnUpdateTempBinContentBufferOnBeforeInsert event:

    // NEW CODE START
    [IntegrationEvent(false, false)]
    local procedure OnUpdateTempBinContentBufferOnBeforeModify(var TempBinContentBuffer: Record "Bin Content Buffer" temporary; WarehouseActivityLine: Record "Warehouse Activity Line")
    begin
    end;
    // NEW CODE END

Internal work item: AB#597439

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions