> For the complete documentation index, see [llms.txt](https://docs.calwincloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.calwincloud.com/calwin-script/system-script-events/ongetstockitemgroup.md).

# OnGetStockItemGroup

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

### Example and syntax

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