OnCheckGlassFromStock

This event can be used to decide if glass for a item line where the glass has stock match should be taken from stock

Example and syntax

procedure OnCheckGlassFromStock(aParams:TScriptOnCheckGlassFromStockParams);
begin
  //If more than 100 is ordered then don't use glass stock
  if aParams.Salesline.QtyOrdered > 100 then
    aParams.FromStock := False;
end;

Last updated

Was this helpful?