OnGetLoadPoints

This event can be used to decide the item lines load points for a bottleneck of type load points

Example and syntax

procedure OnGetLoadPoints(aWrapper:TSalesLineWrapper; aBottleneckId:string; var aLoadPoints:double);
begin
  aLoadPoints := 0;
  case StrToInt(aBottleneckId) of //use of case like this requires all bottlenects to me a number         
    110 : //Glass
      begin         
        aLoadPoints := GetGlassCount(aWrapper); //Helper function example that must be defined
      end;
    
    112 : //Fire safety glass
      begin
        aLoadPoints := GetFireSafetyGlassCount(aWrapper); //Helper function example that must be defined 
      end;
      
    //other bottlenecks...
  end; //case
end;

Last updated

Was this helpful?