i'm developing hospital management product.
Blood Management is there which is having blood status contains blood group and blood quantity.
While giving blood to patient i need to refer blood status table & quantity should be less than or equal.
i want throw error back if quantity is more than available blood .
How can i implement this.?