foodsoft/app/models
Patrick Gansterer e7657b987f Update model to support financial transactions #367
This change introduces two new data types to group the financial
transactions. Now every transaction has a "type", which itself belongs
to a "class".
Types should be used add structured information to an transaction, instead
of writing it into the notice textfield. E.g. this could be used to have
different types depending on the source of money (cash vs. bank transfer).
Classes are shown as different columns in the tables and will be uses to
group transactions of specific types. They should be used if not the whole
amount of ordergroup should be used to order food. E.g. if there is a
deposit or membership fee, which is independent of the normal credit.
This will allow us to implement additional features based on classes in
the future. E.g. the sum of transactions in the "membership fee" class
must be positive to allow food orders or show a big warning if it is bellow
a certain value.
2017-12-09 11:51:23 +01:00
..
concerns Add custom fields to invoice, odergroup, supplier and user 2017-10-28 20:16:47 +02:00
article.rb Remove code-duplication of artice price calculation 2017-10-08 12:20:54 +02:00
article_category.rb Use boolean comparators where it makes sense 2015-01-14 21:17:00 +01:00
article_price.rb Remove code-duplication of artice price calculation 2017-10-08 12:20:54 +02:00
assignment.rb Fixed some bugs in tasks, apple feature: 2012-12-16 19:07:45 +01:00
delivery.rb Add more infos to the invoice page 2016-03-04 22:26:55 +01:00
financial_link.rb Add FinancialLinks 2017-10-28 20:17:16 +02:00
financial_transaction.rb Update model to support financial transactions #367 2017-12-09 11:51:23 +01:00
financial_transaction_class.rb Update model to support financial transactions #367 2017-12-09 11:51:23 +01:00
financial_transaction_type.rb Update model to support financial transactions #367 2017-12-09 11:51:23 +01:00
group.rb Fix current_order's ordergroups document preloading 2016-06-09 19:14:53 +02:00
group_order.rb Fix group_order for stock order 2017-10-29 20:44:05 +01:00
group_order_article.rb Remove useless upper bound of 99 items #388 2016-02-24 00:39:57 +01:00
group_order_article_quantity.rb Remove useless upper bound of 99 items #388 2016-02-24 00:39:57 +01:00
invite.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
invoice.rb Add FinancialLinks 2017-10-28 20:17:16 +02:00
mail_delivery_status.rb Log mail delivery errors to database and add an UI for it 2017-10-02 16:02:39 +02:00
membership.rb migrate to Rails 4.0 (closes foodcoops#214) 2014-02-24 12:46:28 +01:00
order.rb Update model to support financial transactions #367 2017-12-09 11:51:23 +01:00
order_article.rb Fix order_articles document preloading 2016-06-09 19:14:53 +02:00
order_comment.rb Removed annoate and hirb Gemfiles. 2012-07-27 18:07:42 +02:00
ordergroup.rb Update model to support financial transactions #367 2017-12-09 11:51:23 +01:00
periodic_task_group.rb Make sure that newly created periodic task are not done 2017-01-26 20:54:53 +01: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 Fix new stock article failing 2016-05-20 21:30:56 +02: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 Add custom fields to invoice, odergroup, supplier and user 2017-10-28 20:16:47 +02:00
task.rb Fix Task.next_unassigned_tasks_for() for non-periodic tasks 2017-10-29 00:06:05 +02:00
user.rb Add custom fields to invoice, odergroup, supplier and user 2017-10-28 20:16:47 +02:00
workgroup.rb Add custom fields to invoice, odergroup, supplier and user 2017-10-28 20:16:47 +02:00