OnIsSpecialProduct

This event can med used to modify the an item lines value for the "Special" field

Example and syntax

function OnIsSpecialProduct(aWrapper:TSalesLineWrapper; aIsSpecialProduct:boolean):boolean;
var
  i : integer;
begin
  Result := aIsSpecialProduct;
  
  if aWrapper.HasCornerCuts then 
    Result := True;
    
  for i:=0 to aWrapper.Elementlist.Count - 1 do
    if aWrapper.Elementlist.Elements[i].Arced then 
      Result := True;
end;

Last updated

Was this helpful?