Integrationevents OnInitSourceDocumentHeaderOnBeforeTransferHeaderUpdatePostingDate and OnInitSourceDocumentHeaderOnBeforeTransHeaderModify where boolean "ModifyHeader" should by ByVar.
[IntegrationEvent(false, false)]
local procedure OnInitSourceDocumentHeaderOnBeforeTransferHeaderUpdatePostingDate(var TransferHeader: Record "Transfer Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; ModifyHeader: Boolean; IsHandled: Boolean)
begin
end;
[IntegrationEvent(false, false)]
local procedure OnInitSourceDocumentHeaderOnBeforeTransHeaderModify(var TransferHeader: Record "Transfer Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; ModifyHeader: Boolean)
begin
end;
Expected behavior
[IntegrationEvent(false, false)]
local procedure OnInitSourceDocumentHeaderOnBeforeTransferHeaderUpdatePostingDate(var TransferHeader: Record "Transfer Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var ModifyHeader: Boolean; IsHandled: Boolean)
begin
end;
[IntegrationEvent(false, false)]
local procedure OnInitSourceDocumentHeaderOnBeforeTransHeaderModify(var TransferHeader: Record "Transfer Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var ModifyHeader: Boolean)
begin
end;
Steps to reproduce
Create transfer order --> create whse shipment --> post whse Shipment
Describe the issue
codeunit 5748 "Transfer Whse. Post Shipment"
Integrationevents OnInitSourceDocumentHeaderOnBeforeTransferHeaderUpdatePostingDate and OnInitSourceDocumentHeaderOnBeforeTransHeaderModify where boolean "ModifyHeader" should by ByVar.
[IntegrationEvent(false, false)] local procedure OnInitSourceDocumentHeaderOnBeforeTransferHeaderUpdatePostingDate(var TransferHeader: Record "Transfer Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; ModifyHeader: Boolean; IsHandled: Boolean) begin end;
Expected behavior
Steps to reproduce
Create transfer order --> create whse shipment --> post whse Shipment
Additional context
No response
I will provide a fix for a bug