You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The text was updated successfully, but these errors were encountered:
Describe the request
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:
The text was updated successfully, but these errors were encountered: