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
Patrick Gansterer
91eeac6c40
Set the common ActionMailer default_url_options only once
...
There is no need to set options other than the foodcoop during every
change of the scope. This also makes sure that the correct options will
be loaded during testing to fix problems with newer rails versions.
2019-10-29 13:40:45 +01:00
wvengen
6d9c35db20
Move to apparition for integration tests
2019-10-28 17:58:14 +00:00
wvengen
84319d2c1a
Update midi-smtp-server and silence test messages
2019-10-28 17:58:14 +00:00
wvengen
f2cb17bcd6
Upgrade factory_bot, faker
2019-10-28 17:58:14 +00:00
wvengen
e9be38b3e9
Add OAuth scopes
...
https://github.com/foodcoops/foodsoft/issues/582#issuecomment-442513237
2019-04-03 17:20:44 +00:00
wvengen
02f1940694
API v1 specs for user, config and navigation endpoints
2019-04-03 17:08:38 +00:00
wvengen
900cc91197
API documentation and spec setup
2019-04-03 17:08:38 +00:00
wvengen
25deefced1
Move setting availability to sync method
2019-03-24 22:14:10 +01:00
wvengen
9283ed4f5e
Fix syncing articles with non-import sync methods ( #633 )
2019-03-23 18:31:22 +01:00
Patrick Gansterer
4137992032
fix auto_close_and_send_min_quantity
2018-10-12 15:47:32 +02:00
Patrick Gansterer
924f346b4c
Show the financial transaction type if there are more than one type #367
2017-12-09 11:51:23 +01:00
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
wvengen
8a5c130875
Bundle update
2017-10-27 23:21:31 +02:00
Patrick Gansterer
564492afe4
Add an option to automatically finish an order
2017-10-12 21:14:29 +02:00
Patrick Gansterer
386bc7382d
Support integers for price_markup
...
The config panel writes an integer into the settings table in the
database, which results in a wrong calculation of the fc_price.
2017-10-08 12:33:44 +02:00
Patrick Gansterer
ca7416f2e7
Check correct calculation of fc_price
2017-10-08 12:33:14 +02:00
Patrick Gansterer
b35357d4b3
Do not accept invalid addresses in SMTP RCPT TO
...
This gives the MTA the chance to inform the original sender
about the transmission error via a delivery report.
2017-10-05 10:14:49 +02:00
wvengen
b857b10814
Fix specs after update (switching to webkit)
2017-04-01 15:18:56 +02:00
Patrick Gansterer
b8010fedca
Add ordergroup_name to GroupOrder
2016-03-11 13:36:49 +01:00
wvengen
d6bf09b0b8
Fix failing tests
2016-02-18 23:52:07 +01:00
wvengen
a03789e048
Add optional boxfill phase to orders
2015-11-13 18:10:46 +01:00
wvengen
aa7a2a31ae
Bundle update & restructure tests (RSpec 3)
2015-04-25 17:14:37 +02:00
wvengen
c30ec67548
Allow synchronising units when uploading
2015-04-11 02:52:57 +02:00
wvengen
4d1e102f47
Checkbox to remove articles not in upload
2015-04-11 02:52:57 +02:00
wvengen
6ce1b7f928
Handle errors in upload and sync form
2015-04-11 02:52:57 +02:00
wvengen
18cc105c1e
Add tests for upload
2015-04-11 02:52:57 +02:00
wvengen
26e7012ef0
Fix import options and add tests
2015-04-11 02:52:57 +02:00
wvengen
610cd8fce4
Test rounded at cents
2015-04-11 02:52:57 +02:00
wvengen
1063aea4af
Add file import test
2015-01-14 22:52:17 +01:00
wvengen
c31d015434
Bundle update (and fix spec that started failing)
2015-01-14 21:20:14 +01:00
wvengen
dbdc7ae4aa
Workaround occasional mailer test failure
2015-01-14 20:57:43 +01:00
wvengen
8a4b65c4a5
Add test for reset password
2015-01-13 17:59:31 +01:00
wvengen
219eb71bc9
Allow to specify an order schedule for new orders.
2014-11-23 00:38:13 +01:00
wvengen
6e990fed4c
Upgrade to rails 4.1
2014-11-21 14:37:56 +01:00
wvengen
a594dffed2
disable config validation (closes foodcoops#313)
2014-09-30 15:09:47 +02:00
Benjamin Meichsner
d2a218c9fa
Fixed rspec deprecation warning concerning spec type.
2014-09-21 12:28:00 +02:00
wvengen
8b83787252
simplify config loading
2014-09-11 16:40:21 +02:00
wvengen
1c878c3c13
fix config issue with nested hash
2014-09-02 16:19:08 +02:00
wvengen
10a193add3
make nested properties work better
2014-09-02 15:02:26 +02:00
wvengen
f09ef892dc
add foodsoft_config protection whitelisting
2014-09-02 15:02:25 +02:00
wvengen
6115979bae
allow protected keys to be set/unset + config_db tests
2014-09-02 14:21:32 +02:00
wvengen
647b7f0430
allow to synchronize all articles of a shared supplier
2014-09-02 12:58:31 +02:00
wvengen
d9c61b2db3
allow to match category names on import/sync
2014-09-02 12:58:31 +02:00
wvengen
63d52db91b
more sensible mailer option defaults
...
Conflicts:
app/mailers/base_mailer.rb
config/app_config.yml.SAMPLE
spec/app_config.yml
2014-09-02 12:35:57 +02:00
wvengen
72709be60a
try workaround for failing test
...
(closes foodcoops#303)
2014-08-25 18:29:59 +02:00
wvengen
21838e9c84
prepare for RSpec 3.0
2014-08-19 11:53:01 +02:00
wvengen
6d98be6d22
reload app config before each test
...
(complements 21bef8e304d05025b72b39e790abc7e8a4f4f5e1)
2014-05-13 17:01:26 +02:00
wvengen
ed439d0b08
use minimal app_config for tests
2014-05-13 17:01:26 +02:00
wvengen
25854f2de7
do not store GroupOrderArticles with zero quantity and tolerance
2014-05-13 17:01:26 +02:00
wvengen
7841245795
migrate to Rails 4.0 (closes foodcoops#214)
...
Conflicts:
Gemfile.lock
2014-02-24 12:46:28 +01:00
wvengen
f8fca4d630
fix order article add + test
2014-02-24 11:37:06 +01:00
wvengen
60826ceedc
allow to edit GroupOrderArticle result from orders screen
...
Conflicts:
app/assets/javascripts/application.js
2014-02-10 16:03:08 +01:00
wvengen
e88810e4a7
fix "Mysql2::Error: This connection is in use by" in spec for Rails 4
...
Conflicts:
Gemfile
Gemfile.lock
2014-02-10 15:58:52 +01:00
wvengen
49e563af89
allow non-shared articles to be part of a shared supplier using a blank order number
2014-01-24 22:10:00 +01:00
wvengen
b30b424540
Merge branch 'master' into feature-receive
...
Conflicts:
app/helpers/finance/order_articles_helper.rb
2014-01-09 18:42:29 +01:00
wvengen
8f14ab31f3
cleanup and expand receive integration test
2014-01-08 13:07:11 +01:00
wvengen
d01d1bc496
add integration tests for receive
2014-01-08 11:52:45 +01:00
Manuel Wiedenmann
0d0ff90a64
adds an RSS feed for pages/all
2014-01-04 20:12:01 +01:00
wvengen
2b511ee559
Merge branch 'master' into fresh-flow
...
Conflicts:
app/assets/stylesheets/bootstrap_and_overrides.css.less
2013-12-18 17:03:26 +01:00
wvengen
147365cba1
update coverage and use coveralls.io
2013-12-16 23:11:39 +01:00
wvengen
c900cf4988
make product redistribution work!
2013-11-27 00:06:25 +01:00
wvengen
bd1b932775
add receive screen, quantities for model, redistribution
2013-11-25 14:17:31 +01:00
wvengen
66ac3be81f
Merge branch 'master' into allow-no-nickname
...
Conflicts:
app/views/home/ordergroup.html.haml
app/views/login/new_password.html.haml
app/views/shared/_auto_complete_users.rhtml
app/views/shared/memberships/_current_members.rhtml
app/views/shared/memberships/_non_members.rhtml
2013-11-18 11:42:49 +01:00
wvengen
4219eff0ab
fix rspec warning
2013-11-13 23:22:26 +01:00
wvengen
ac6b00d4f5
add unit tests for shared database synchronisation
2013-11-13 23:09:17 +01:00
wvengen
e883f4cfa7
fix last commit for non-js tests
2013-10-30 01:28:59 +01:00
wvengen
042fbdc3a3
maximise window before running tests
2013-10-30 01:03:51 +01:00
wvengen
c37ed74942
Merge branch 'master' into allow-no-nickname
...
Conflicts:
app/views/foodcoop/users/_users.html.haml
2013-10-29 19:15:52 +01:00
wvengen
bfcf35cd34
fix i18n spec after changes
2013-10-17 17:10:33 +02:00
wvengen
9ac9d1ea50
add spec for foodcoops/foodsoft#179
2013-10-02 16:32:01 +02:00
wvengen
a77c3b59b1
allow to login with email instead of nick as well + tests
2013-09-20 22:39:19 +02:00
wvengen
6b0146eb95
add spec for article#in_open_order
2013-09-18 22:46:57 +02:00
Benjamin Meichsner
857eb64a45
Merge pull request #173 from foodcoop-adam/keep-member-order-on-orderarticle-deletion
...
Keep member order on orderarticle deletion
2013-09-18 08:32:33 -07:00
Manuel Wiedenmann
f462e70e49
uses FactoryGirl helpers
2013-09-18 12:44:41 +02:00
wvengen
f224735718
remember what member ordered when deleted in balancing screen
2013-09-17 14:19:46 +02:00
wvengen
1bb257c41b
remember member order when order article is deleted + test
2013-09-13 15:37:30 +02:00
wvengen
37e5b0c25c
add balancing integration spec
2013-07-26 18:34:03 +02:00
wvengen
eac8260b38
add i18n tests
2013-07-25 14:46:25 +02:00