foodcoops / foodsoft

Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling).
https://foodcoops.net/
Other
326 stars 146 forks source link

Possible to go under minimum balance by opening orders in multiple tabs #1040

Open twothreenine opened 8 months ago

twothreenine commented 8 months ago

Let's you have an avaible credit of € 20:

  1. you open an order of supplier 1,
  2. in another tab you open an order of supplier 2,
  3. you place an order of € 15 for supplier 1 and save it,
  4. you go to the other tab and can still place an order of up to € 20 and save it
  5. you have less available credit than allowed.

Possible solution: When saving an order, check if the balance minimum is still satisfied and throw an error if not?

It's not important to me, but I wanted to let you know about this.

yksflip commented 8 months ago

thanks for raising this!