Pseudo-Algorithm for RemoveInvalidItems
Get the Quote and Quote Item business components.
Check the Invalid input argument:
If Invalid = N, go to step 4.
For each record in the Quote Item business component, check the Invalid Flag field:
If the field value is Y, delete the record.
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.