microsoft / ALAppExtensions

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

[Extensibility] Remove local from GetPhysInvtRecordHeader in "Phys. Invt. Record Line" #27335

Open dannoe opened 1 week ago

dannoe commented 1 week ago

Describe the request

Please remove the local modifier from the GetPhysInvtRecordHeader function in table "Phys. Invt. Record Line"

-   local procedure GetPhysInvtRecordHeader()
+   procedure GetPhysInvtRecordHeader()
    begin
        TestField("Order No.");
        TestField("Recording No.");

        if ("Order No." <> PhysInvtRecordHeader."Order No.") or
           ("Recording No." <> PhysInvtRecordHeader."Recording No.")
        then
            PhysInvtRecordHeader.Get("Order No.", "Recording No.");
    end;

Please make PhysInvtRecordHeader available as protected:

-    var
+    protected var
        PhysInvtRecordHeader: Record "Phys. Invt. Record Header";

Additional context

Prevent code duplication, as we need this function. Internal work item: AB#550934