ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] T83 Item Jnl Line OnBeforeGetDefaultBin

Open BWilczewski opened this issue 6 years ago • 1 comments

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

BWilczewski avatar Aug 06 '20 08:08 BWilczewski

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.

bc-ghost avatar Aug 13 '20 08:08 bc-ghost