ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] T83 Item Jnl Line OnBeforeGetDefaultBin
Hello, in T83 Bin Code is taken with
if Location."Bin Mandatory" and not Location."Directed Put-away and Pick" then
WMSManagement.GetDefaultBin("Item No.", "Variant Code", "Location Code", "Bin Code");
can if statement be replaced with function ShouldGetDefultBin:
local procedure ShouldGetDefaultBin(Location: record Location) : boolean
var IsHandled: boolean;
GetBin: boolean;
begin
OnBeforeGetDefaultBin(Location, GetBin, IsHandled);
if IsHandled then exit(GetBin);
GetBin := Location."Bin Mandatory" and not Location."Directed Put-away and Pick;
exit(GetBin);
end
[IntegrationEvent(false, false)]
local procedure OnBeforeGetDefaultBin(Location: record Location; var GetBin: boolean; var IsHandled: boolean)
this would allow to control if we want to get new bin code,
Thanks, Bartek
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.