validation

Gopi Govind
Sun, 14 Jun 2009 14:10:33 -0000

Hi,

 I have one problem,

   Regarding Medical store distributuin

       Store have two users i mean two sales persons, they are
distributing medicine to patients.

       Store having 50 colpol tablets, both users are trying to sale 40
colpol tablets at a same time, it means 80 tablets but store having 50
colpols only.

       For this i want reserve the stock while form entry itself,as well
as i dont want to use database level.

      any ruby or rails concept is there....?

advance thanks