OnGetStockItemGroup

This event can be used to modify the item lines item group

Example and syntax

function OnGetStockItemGroup(aWrapper:TSalesLineWrapper; aNewStockItemGroup:string):string;
begin
  Result := aNewStockItemGroup; 
  
  if aWrapper.Supplier = '20020' then 
    aNewStockItemGroup := '1400';
end;

Last updated

Was this helpful?