microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
791 stars 622 forks source link

[Bug]: codeunit 5748 "Transfer Whse. Post Shipment" ModifyHeader #27675

Open ChristiaanJansen opened 19 hours ago

ChristiaanJansen commented 19 hours ago

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;

[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

Additional context

No response

I will provide a fix for a bug