Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Request] - report 5756 "Create Warehouse Location" OnPostReportOnBeforeLocationModify #27894

Open
Duizy1971 opened this issue Jan 8, 2025 · 0 comments

Comments

@Duizy1971
Copy link

Describe the request

trigger OnPostReport()
var
    WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line";
begin
    Location."Bin Mandatory" := true;
    Location.Validate("Directed Put-away and Pick", true);
    Location.Validate("Adjustment Bin Code", AdjBinCode);
    OnPostReportOnBeforeLocationModify(Location);
    Location.Modify();
    ....
end;


[IntegrationEvent(false, false)]
local procedure OnPostReportOnBeforeLocationModify(var Location: Record Location)
begin
end;

Additional context

We would like to use this report to create a Bin Mandatory location but not Directed Put-away and Pick. We run in a lot of trouble with customers or consultants who create a new location with only one bin code ands "Bin Mandatory" = true so 'maybe in the near future we can actually use that location with bins.' Never happens of course but warehouse entries will be created nonetheless.

It would be even better if w1.base report 5756 "Create Warehouse Location" is enhanced with a new request page option "New Directed Put-away and Pick"::Boolean so I wouldn't need to have a new event. The BC Ideas option to get this simple new functionality in is way too much work at this time.

New code could be something like:

    Location."Bin Mandatory" := true;
    if NewDirectedPutAwayAndPick then begin
        Location.Validate("Directed Put-away and Pick", true);
        Location.Validate("Adjustment Bin Code", AdjBinCode);
    end;
    Location.Modify(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant