This event is used to decide whether an Auto Line is to be included for an Order
Example and syntax
procedure OnCalcSalesHeaderAutoLineData(aSalesHeader:TSalesHeaderWrapper; const aParams:TScriptOnCalcSalesHeaderAutoLineDataParams);
begin
//The WEBDISCOUNT auto line should only be included for web orders
if (aParams.AutoLineSetupId = 'WEBDISCOUNT') then
aParams.Include := (aSalesHeader.Source = shsWEB);
end;