Patrick Gansterer
88228022e3
API v1 Add financial_transaction_type to FinancialTransactions output
2021-02-12 15:17:25 +01:00
Patrick Gansterer
be269101f8
API v1 financial_transaction_types endpoint
2021-02-12 15:17:25 +01:00
Patrick Gansterer
48391f818f
API v1 financial_transaction_classes endpoint
2021-02-12 15:17:25 +01:00
Patrick Gansterer
9f2e630266
Add CSV downloads for BankTransaction and Invoice
2021-02-12 14:55:59 +01:00
Patrick Gansterer
d0e73ea1ff
Improve selecting deliveries/orders when creating an invoice
...
When creating an invoice after balancing an order, it's not
possible to the corresponding order. Change the elements in
the select box to the latest ended/delivered items (which
have not been assigned already) instead.
2021-02-08 01:05:13 +01:00
lentschi
085562dbf4
#779 Received state for orders (PR #789 , #779 )
2021-02-03 20:57:53 +01:00
lentschi
67ad202859
Fix permission issue in pickups (PR #800 , #799 )
2021-01-30 11:21:00 +01:00
Patrick Gansterer
b22dda4638
Run select_foodcoop as the first before_action
...
When e.g. authenticate is run as before_action, it could use the wrong
database in a multicoop installation, if select_foodcoop is not run first.
2020-11-09 12:33:46 +01:00
JuliusR
4043433539
fix searching in external article database ( #772 )
2020-10-17 12:21:04 +02:00
Patrick Gansterer
3d5043fd05
Set updated_by when changing an GroupOrder via controller
2020-10-10 20:40:22 +02:00
wvengen
78c4ebcb4b
Make navigation API more robust.
...
Fixes https://github.com/foodcoops/foodsoft/issues/755 .
2020-10-07 14:45:22 +02:00
Patrick Gansterer
44a198c7bc
Adopt Rails 5 belongs_to_required_by_default
2020-09-05 14:40:11 +02:00
Patrick Gansterer
785313ac23
Make StockEvent a base class for Delivery and StockTaking
...
This helps to share code between the two entities and allows easier
extensions in the future.
2020-09-05 13:52:18 +02:00
Patrick Gansterer
a5582e9542
Rename Delivery.delivered_on to date
...
This aligns it with column names of StockTaking and us to use inheritance
in a next step to share common code between the entities.
2020-09-05 13:52:18 +02:00
Patrick Gansterer
266e9337be
Various small rails 5 adoptions
2020-09-04 12:54:42 +02:00
Patrick Gansterer
f221a081dd
Rename config tab roles to security
2020-08-12 13:32:37 +02:00
Patrick Gansterer
4c567fece1
Add transport costs to Order
2020-08-07 00:52:43 +02:00
Patrick Gansterer
5f2e319469
Add at least one BankAccount to the reference_calculator
2020-08-01 17:37:43 +02:00
Patrick Gansterer
d90d188dbf
Add SupplierCategory
...
This allows the categorization of suppliers. For a better reporting
it is necessary to split the expenses of the invoices.
E.g. we want to be able to generate independent sums of general cost
like the rent or electricity and the cost of the bought articles.
2020-07-30 17:46:07 +02:00
Patrick Gansterer
645c142bf6
Add FinancialLinksController#incomplete
2020-07-30 17:19:02 +02:00
Patrick Gansterer
3f25138997
Add option to create foodcoop transaction when creating a collection
...
This option can be used, if a kind of "double-entry accounting" is used
and every transaction should have a corresponding transaction.
2020-07-29 18:11:51 +02:00
Florian Lentsch
5eb8abf431
Potential fix for one of the issues mentioned in #49
...
Reduces the number of SQL queries used on group_orders/index and
group_orders/archive, but adds extra complexity to the code
2020-07-29 13:15:11 +02:00
Patrick Gansterer
602f663245
Add UI to show and create financial transactions for the foodcoop
2020-07-29 11:43:45 +02:00
Patrick Gansterer
1a49bee42d
Adopt model to allow FinancialTransaction without an ordergroup
...
This will allow us to add accounting for the foodcoop itself, to support
listing for spendings independent of the order (e.g. rent, electricity).
2020-07-29 11:43:31 +02:00
Patrick Gansterer
e16f03eebf
Add reference_calculator
2020-07-29 11:02:58 +02:00
wvengen
b96ce06d94
API v1 financial_transactions endpoints ( #627 )
2020-07-25 14:18:59 +00:00
Patrick Gansterer
5a9cc811c9
Add download for articles
2020-06-22 16:35:22 +02:00
Patrick Gansterer
b6f5295267
Add created_by user to Task
2020-04-11 00:04:49 +02:00
Patrick Gansterer
a3946ed3d4
Add missing authorization for InvoicesController
2020-04-11 00:04:35 +02:00
Patrick Gansterer
a3defc5463
Add FinacialTransaction create_collection for ordergroup custom fields
...
Custom fields of an ordergroup can set financial_transaction_source to
true, to act as an source for a new collection of FinacialTransaction.
A typical usecase would be a variable membership fee, which will be stored
in a custom field on the ordergroup. When a new membership period begins
a collection with all membership fees can be created with one click.
2020-03-23 17:40:18 +01:00
Patrick Gansterer
d73c206e29
Fix copy operation for stock orders
...
Stock orders have the supplier_id set to zero, which will be ignored
in the url-method by rails. Only use the order_id to fix this.
2020-03-23 17:20:21 +01:00
Patrick Gansterer
3fb3fa409b
Limit financial overview items to speed up loading
...
If a foodcoop does not use the balancing feature the list of unfinished
orders will be very long and needs a significant amount of time to load.
2020-03-23 16:29:30 +01:00
Patrick Gansterer
ab912877c3
Fix query in HomeController::ordergroup
2020-03-23 16:23:13 +01:00
Patrick Gansterer
e606f606da
Convert configuration parameters to Hash for passing to FoodsoftConfig
...
This is required for compatibility with Rails 5.0.
2020-03-23 16:18:58 +01:00
Patrick Gansterer
ecb4a8a4ba
Add method to close all invoices with an invoice direct
...
When the charge_members_manually option is active there is no need for an
explicit balancing step. This new function allows to close_direct all
orders which have an assigned invoice, which is usually indication enough
to find orders which can be closed finally.
2020-02-28 12:17:27 +01:00
Patrick Gansterer
5d84156bd8
Add BankAccountConnector to implement bank import methods in plugins
2020-02-24 14:30:03 +01:00
Patrick Gansterer
640e230d88
Fix usage of task_params in TasksController
2020-02-18 19:06:26 +01:00
Patrick Gansterer
341f86d98e
Fix invoice redirect
2020-02-18 19:02:34 +01:00
Patrick Gansterer
9babb6cfe9
Fix rendering of financial transaction types sums
2019-11-11 13:57:06 +01:00
Patrick Gansterer
eb8241cf04
Fix rescue in Admin::MailDeliveryStatusController#destroy
2019-11-11 11:11:33 +01:00
Patrick Gansterer
e498f9cb58
Add default roles for users
...
Some foodcoops want to give some roles to every member by default,
without adding every users to a workgroup.
2019-11-04 11:39:33 +01:00
Patrick Gansterer
ff76fa60c0
Allow deletion of financial transactions
2019-11-01 20:56:00 +01:00
Patrick Gansterer
260ef90f6b
Add option to create a financial_link when creating financial_transaction
...
If multiple financial transaction belong to a bank transaction, it
is sometimes easier to create them as a collection and add the bank
transaction instead of adding all financial transaction to a link
created via a bank transaction.
2019-10-30 22:27:18 +01:00
Patrick Gansterer
c559a31a9e
Fix and clean up bank account translations for English and German
2019-10-30 12:42:41 +01:00
Patrick Gansterer
1550eedb5a
Add additional eager loading annotations
2019-10-30 11:53:44 +01:00
Patrick Gansterer
39aff78f11
Remove protected_attributes gem
...
We do not enforce the rules, so removing it and switching the existing
annotations to strong_parameters does not make our situation worse.
2019-10-29 18:09:24 +01:00
Patrick Gansterer
d4ab0a055f
Fix "Cannot infer root key from collection type." in UserController
2019-10-29 17:46:04 +01:00
Patrick Gansterer
8e2ca5e7d7
Add automatic generation of financial transactions and links
2019-10-29 13:52:56 +01:00
Patrick Gansterer
2100c738af
Change deprecated *_filter methods to *_action
2019-10-29 09:41:01 +01:00
JuliusR
71bdf3bfcc
Allow to copy articles (PR #673 , #541 )
2019-10-14 07:25:34 +00:00