Skip to content

[Request for External] Make GetItem() and GetItemUnitOfMeasure() procedures public in Report 5756 "Create Warehouse Location" #30109

@jasonchen-sudo

Description

@jasonchen-sudo

Why do you need this change?

We would like to customise logic around TempWhseJnlLine."Unit of Measure Code" assignment inside CreateWhseJnlLine() in Report 5756 "Create Warehouse Location" , so we would need to expose GetItem() and GetItemUnitOfMeasure() procedures which are both currently local along with the event request here #30098 .

Describe the request

Hi,

Following the issue #30098, can we please expose both GetItem() and GetItemUnitOfMeasure() procedures in Report 5756 "Create Warehouse Location" to be external so they could get called from outside?

    local procedure GetItem(ItemNo: Code[20])
    begin
        if Item."No." <> ItemNo then
            Item.Get(ItemNo);
    end;

    local procedure GetItemUnitOfMeasure(ItemNo: Code[20]; UOMCode: Code[10])
    begin
        if (ItemUnitOfMeasure."Item No." <> ItemNo) or
           (ItemUnitOfMeasure.Code <> UOMCode)
        then
            if not ItemUnitOfMeasure.Get(ItemNo, UOMCode) then
                ItemUnitOfMeasure.Init();
    end;

Regards,
Jason
Internal work item: AB#636121

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM arearequest-for-externalRequest for exposing a function for extension development

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions