- I would ask you to have a close look on to the datas' you are having in the tables zstock and zcoilst in quality.
- You are using a select single for data fetching from both these tables, which means what follows after where condition will be a primary key. (If not what values it may return....?)
- Please do some debugging in your quality system to know how the data is being passed and what values are getting returned.
Regards,
Philip.