Hi,
Im a bit stuck on validating, what i need to do is to be able to check if a cylinder already in use, by checking the status of the cylinder, if for example the cylinder new status is equal to null then the cylnder is out with a customer and it cannot be used again, however if its status is returned then it can be used. Another thing i have to take into consideration is over a period of tme the cylnider can be used a number of times, and therefore i have to check the status of latest date of that particular cylinder.
For example -
Cylinder number Status Date Delivered New Status
150007871 Delivered 1/11/06 Returned
150007871 Delivered 1/12/06
When production tries to fill a cylinder if they try to zap 15007871, then thye should get a message saying that this particular cylinder is out with a customer on the 1/12 and cannot be used. It is therefore checking the latest clyinder information.
Im a bit stuck on validating, what i need to do is to be able to check if a cylinder already in use, by checking the status of the cylinder, if for example the cylinder new status is equal to null then the cylnder is out with a customer and it cannot be used again, however if its status is returned then it can be used. Another thing i have to take into consideration is over a period of tme the cylnider can be used a number of times, and therefore i have to check the status of latest date of that particular cylinder.
For example -
Cylinder number Status Date Delivered New Status
150007871 Delivered 1/11/06 Returned
150007871 Delivered 1/12/06
When production tries to fill a cylinder if they try to zap 15007871, then thye should get a message saying that this particular cylinder is out with a customer on the 1/12 and cannot be used. It is therefore checking the latest clyinder information.