cyklokoalicia / OpenSourceBikeShare

The world's first low-cost and open source bike sharing system. (new version in development, use working "breakthrough" release instead!)
http://opensourcebikeshare.com/
GNU General Public License v3.0
168 stars 71 forks source link

add rent only / return only stands #15

Open nekromoff opened 10 years ago

nekromoff commented 10 years ago

when stands needs to be removed / replaced, set special tag (serviceTag?) so it will only allow renting, but not returns.

please, discuss, then reassign.

mmmaly commented 10 years ago

Either use a different bit of service tag, e.g.: 1st bit (1) - don't show in map/FREE command 2nd bit (2) - don't allow rentals from this stand 3rd bit (4) - don't allow returns to this stand.

Or create a different column (serviceTag -> dontShow, dontAllowRentals) and create maxNumberBikes. After reaching maxNumberBikes, no more returns would be possible.