Pseudo-Algorithm for RemoveInvalidItems

  1. Get the Quote and Quote Item business components.

  2. Check the Invalid input argument:

    If Invalid = N, go to step 4.

  3. For each record in the Quote Item business component, check the Invalid Flag field:

    If the field value is Y, delete the record.

  4. Set the Error Message output argument if there is any error;

    If Return Error Code = N, do not return an error;

    Else return an error.