[SysODataActionAttribute('getCustomerList', false),
SysODataCollectionAttribute('return', Types::Record, 'SalesLine')]
public static List getCustomerList(ItemId _itemId)
{
List returnList = new List(Types::Record);
SalesLine salesline;
while select CustAccount, sum(SalesQty) from salesLine
group by CustAccount
where salesLine.ItemId == _itemId
{
returnList.addEnd(salesLine);
}
return returnList;
}