|
Returns true if the specified item code belongs to an Item that has been configured to have varieties (e.g. ITEMCODE.BLACK.XL) |
|
ItemCode |
The Item code that is going to be checked for variety configuration. |
|
// Try this with UK demo data
external inner function Boolean IsVarietyItem(string);
global
procedure OnApplicationStartup()
begin
Record INVc INr;
SetCompany(1,true);
while(LoopMain(INr,1,true)) begin
if(IsVarietyItem(INr.Code)) then begin
stopalert(INr.Code & " has varieties!");
end;
end;
return;
end;
««