OnCalcProductPurchaseDeliveryTime
This event can be used to calculate the delivery time (days) for products that are being purchased
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
Was this helpful?