OnCalcProductPurchaseDeliveryTime
Example and syntax
procedure OnCalcProductPurchaseDeliveryTime(aParams:TScriptOnCalcProductPurchaseDeliveryTimeParams);
begin
//Increase the deliverytime by 10 days if the product has alu cladding
if HasAluCladding(aParams.Salesline) then //HasAluCladding is a helper function that must be defined
aParams.DeliveryTime := aParams.DeliveryTime + 10;
end;Last updated