foodsoft/app/models
Benjamin Meichsner 91bcf0c580 Avoid out of range error when using big numbers in financial transactions.
The database schema allows numbers up (+/-) 999_999.99. But as we are also adding the amount to the Ordergroup#account_balance, we use lower barriers to avoid running in errors when updating the account balance.

So, technically the user has to make 10 times the maximum input to raise an account balance error. This should be sufficient, I hope.
2014-09-22 11:36:10 +02:00
..
article.rb query performance improvements 2014-09-02 12:58:32 +02:00
article_category.rb allow to match category names on import/sync 2014-09-02 12:58:31 +02:00
article_price.rb add some model api docs 2014-06-23 17:51:19 +02:00
assignment.rb Fixed some bugs in tasks, apple feature: 2012-12-16 19:07:45 +01:00
delivery.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
financial_transaction.rb Avoid out of range error when using big numbers in financial transactions. 2014-09-22 11:36:10 +02:00
group.rb Delete memberships when deleting associated groups. 2014-09-21 12:47:58 +02:00
group_order.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
group_order_article.rb fix order bug 2014-05-13 17:01:27 +02:00
group_order_article_quantity.rb Removed annoate and hirb Gemfiles. 2012-07-27 18:07:42 +02:00
invite.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
invoice.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
membership.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
order.rb validate date and time inputs 2014-06-23 17:51:18 +02:00
order_article.rb fix articles with zero quantity showing 2014-09-11 13:47:03 +02:00
order_comment.rb Removed annoate and hirb Gemfiles. 2012-07-27 18:07:42 +02:00
ordergroup.rb make apple points optional 2014-05-13 17:01:25 +02:00
periodic_task_group.rb Delete only the FOLLOWING tasks. 2013-06-21 22:04:36 +02:00
shared_article.rb allow to match category names on import/sync 2014-09-02 12:58:31 +02:00
shared_supplier.rb allow to synchronize all articles of a shared supplier 2014-09-02 12:58:31 +02:00
stock_article.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
stock_change.rb Add StockChanges index 2013-07-09 21:46:04 +02:00
stock_taking.rb Removed annoate and hirb Gemfiles. 2012-07-27 18:07:42 +02:00
supplier.rb query performance improvements 2014-09-02 12:58:32 +02:00
task.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
user.rb fix order bug 2014-05-13 17:01:27 +02:00
workgroup.rb fix order bug 2014-05-13 17:01:27 +02:00