OnCheckProduct

This event occurs after the product has been completed. Used to check the product for any errors/failures, such as combinations of non-legal choices which can not be checked by CalWin automatically.

Example and syntax

procedure OnCheckProduct(aWrapper:TSalesLineWrapper);
begin
  CheckProduct_CheckS5andS6Hinge(aWrapper);
  //... Other checks
end;

It is recommended to define exch check as a subprocedure and call that subprocedure from the OnCheckProduct event. Name all subprocedures called from OnCheckProduct using the same naming scheme, typically by the name starting with "CheckProduct". This will make it easy to see that they are related to the OnCheckProduct event, and make them easy to filter out from other procedures in the system script.

Last updated

Was this helpful?