Philipp Rothmann
6e80f81c54
wip move stuff to a plugin
2023-07-24 16:17:26 +02:00
Philipp Rothmann
3b5b057eed
merge automatic group order invoice generation
2023-07-24 10:50:35 +02:00
Philipp Rothmann
817e409a2b
fix test
2023-07-14 10:27:20 +02:00
Philipp Rothmann
e80ec9c1ce
change tests to use assert_select
2023-07-14 10:27:20 +02:00
Philipp Rothmann
7f23b4784c
feat(finance): show sum of ordergroup balances
2023-07-14 10:27:20 +02:00
Philipp Rothmann
33034e66b8
fix: add null checks for articles convert_units
...
Prevents division by zero exception because of a unit beeing 0.
A Unit becomes also zero e.g. when a comma symbol is used Unit.new("0,9kg") == 0
fixes #1014
2023-06-22 22:49:22 +02:00
Philipp Rothmann
913136bb72
fix: invalid params request test
...
fixes #999
2023-06-17 13:31:43 +02:00
Philipp Rothmann
a1682932ac
fix: price_markup with value nil gives exception
...
fixes #1011
2023-06-16 13:20:33 +02:00
Philipp Rothmann
fb2b4d8a8a
chore: rubocop
...
chore: fix api test conventions
chore: rubocop -A spec/
chore: more rubocop -A
fix failing test
rubocop fixes
removes helper methods that are in my opinion dead code
more rubocop fixes
rubocop -a --auto-gen-config
2023-06-09 17:35:05 +02:00
Philipp Rothmann
c67e9b5be8
Replace apivore with rswag for api tests ( #969 )
...
* Replace apivore api tests with rswag
* move to OpenAPI Spec 3.0.1
* a swagger UI is now reachable at http://localhost:3000/api-docs/index.html
* swagger file is generated by running `RAILS_ENV=test rails rswag`
and it was moved from /docs/swagger.v1.yml to /swagger/v1/swagger.yml
---------
Co-authored-by: viehlieb <pf@pragma-shift.net>
2023-05-12 11:11:48 +02:00
Philipp Rothmann
503ed6c379
Add home controller test ( #972 )
...
Co-authored-by: viehlieb <pf@pragma-shift.net>
Co-authored-by: Tobias Kneuker <tk@pragma-shift.net>
2023-03-25 18:20:13 +01:00
Philipp Rothmann
c6560e0cea
Add additional model and integration tests
...
This commit adds new tests for a better coverage.
integration/
* home
* supplier
models/
* article
* delivery
* group_order_article
* supplier
also adds a new factory for delivery
Co-authored-by: viehlieb <pf@pragma-shift.net>
Co-authored-by: Tobias Kneuker <tk@pragma-shift.net>
2022-11-27 12:39:57 +01:00
3ffdb424d5
replace deprecated update_attributes with update
2022-10-26 13:19:27 +02:00
Philipp Rothmann
0c5ff5b41d
Add test to delete article
2022-10-09 13:24:29 +02:00
Patrick Gansterer
a81bb25512
Bundle update rubocop and auto correct style issues
2022-10-08 16:03:19 +02:00
Patrick Gansterer
9c9ebdf557
Bundle update rubocop and auto correct style issues
2022-05-27 23:10:07 +02:00
Patrick Gansterer
3a25a50d8d
Small improvements and style fixes in BankAccountInformationImporter
2022-05-27 22:41:08 +02:00
Harald Reingruber
0a6345c60b
Make columns of user and ordergroup lists sortable
...
This commit implements the sort functionality for the user lists (by name, email, last_activity) and ordergroup lists (by name).
It is a first attempt addressing issue #560 .
2022-05-27 17:06:25 +02:00
Harald Reingruber
15e715c9f3
Fix filtering of active ordergroups
2022-03-08 00:11:06 +01:00
Patrick Gansterer
7e8c1d041d
Auto correct rubocop style issues
2022-02-20 16:28:54 +01:00
twothreenine
f3493b3242
charge transport cost as well when accounting order ( fix #861 after f7c7b56
)
2022-02-18 13:27:09 +01:00
kidhab
64ab699047
Allow longer passwords ( #923 )
2022-02-16 18:13:08 +01:00
Patrick Gansterer
bca29bea70
Bundle update midi-smtp-server
2022-02-16 17:56:04 +01:00
Patrick Gansterer
ea2862fdef
Run rubocop --fix-layout and remove encoding comments
2021-03-02 09:12:19 +01:00
lentschi
9a7d4bf07d
Add option to send mails when an order has been received
2021-02-27 17:24:25 +01:00
Patrick Gansterer
7a6779ebfd
Add API v1 finance_overview endpoint
2021-02-24 15:50:22 +01:00
Patrick Gansterer
4752a0aaa9
Add method to parse bank transactions as JSON
...
This implements parsing of the Account Information Service format as
defined in the Berlin Group Group NextGenPSD2 XS2A Framework, which
is widely used across various European banks.
This is a first step to replace the current bank import features with
a standardized JSON interface.
2021-02-24 14:59:55 +01:00
Patrick Gansterer
00f1dddd3d
Add admin interface to enable the self service functionality
2021-02-18 18:09:40 +01:00
Patrick Gansterer
e6061e6760
Add API v1 financial_transactions POST endpoint
...
In a first step we allow members to create financial transactions
for their own ordergroup.
2021-02-18 18:09:40 +01:00
Patrick Gansterer
434cc59ae8
Use GitHub Actions to upload Coveralls report
2021-02-18 15:38:16 +01:00
wvengen
69732cca0d
API v1 article_categories endpoint
2021-02-17 17:07:39 +01:00
wvengen
e1d50e5b9c
API v1 group_order_articles endpoints
2021-02-17 17:07:39 +01:00
wvengen
ed9192c47f
API v1 order_articles endpoints
2021-02-17 17:07:39 +01:00
wvengen
127ae83f04
API v1 orders endpoints
2021-02-17 17:07:39 +01:00
Patrick Gansterer
7d5155bef6
Add option to ignore financial transaction when calculating the balance
2021-02-17 14:07:03 +01:00
Patrick Gansterer
ca0398632b
Improve parsing of BankTransactionReference
...
Allow more characters before and after the actual reference.
Also use the correct matching method during testing.
2021-02-12 15:17:45 +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
lentschi
45a8911ca6
Add option to ignore delivered amounts in order group distribution ( #765 )
2021-02-05 16:19:05 +01:00
Florian Lentsch
ecda1c1478
Added rspec tests for order boolean states
2021-02-05 14:57:26 +01:00
Florian Lentsch
f7b65856aa
Refactored order model's scope rspec test to ignore sequence
2021-02-05 14:57:26 +01:00
Florian Lentsch
e33d2d7f48
Added order scope rspec tests for #779
2021-02-05 14:57:26 +01:00
Patrick Gansterer
c6250de945
Disable JavaScript errors in tests
2020-09-05 16:55:43 +02:00
Patrick Gansterer
44a198c7bc
Adopt Rails 5 belongs_to_required_by_default
2020-09-05 14:40:11 +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
wvengen
ef1903381b
Improve testing on docker
2020-07-27 18:17:30 +02:00
wvengen
b96ce06d94
API v1 financial_transactions endpoints ( #627 )
2020-07-25 14:18:59 +00:00
Patrick Gansterer
1d9856ff93
Handle nil values correctly in User.authenticateUser
2019-11-11 11:10:26 +01:00
wvengen
ef613300e0
Reduce integration spec error rate ( #686 , PR #693 )
2019-10-30 15:56:53 +00:00
Patrick Gansterer
8e2ca5e7d7
Add automatic generation of financial transactions and links
2019-10-29 13:52:56 +01:00