Hi narayanis,This did the trick thank you, minor adjustment on the IF part which should only be PQTY >IQTY as there is no need for CQty during runtime as its already part of IQTY. Thanks again.
The script is restricting everything its like its not looking at the conditions set in the script. Can you please help editing the script so that we get the desired results