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
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:
Add the following code at the end of the codeunit or after the OnUpdateTempBinContentBufferOnBeforeInsert event:
Internal work item: AB#597439