Compare commits

...

354 Commits

Author SHA1 Message Date
James Cole
fd932ad5b3 Merge branch 'release/5.6.0-alpha.2' into main 2021-08-10 19:54:31 +02:00
James Cole
02aeccbfb4 Update frontend and packages. 2021-08-10 19:52:56 +02:00
James Cole
ec7bc53b5a Rebuild frontend. 2021-08-10 19:43:51 +02:00
James Cole
21d28a9a19 New translations. 2021-08-10 19:32:48 +02:00
James Cole
8328c26df3 Update PHP code, code cleanup. 2021-08-10 19:31:55 +02:00
James Cole
8e104a62ae Better endpoint to move transactions. 2021-08-10 18:43:21 +02:00
James Cole
840316d4e4 Fix huntr link. 2021-08-10 18:08:22 +02:00
James Cole
5938fb7f88 Update config. 2021-08-10 18:06:49 +02:00
James Cole
c54dc1ad98 Fix readme in dev. 2021-08-10 18:05:40 +02:00
James Cole
54cf46ff32 Rebuild frontend for account creation / editing. 2021-08-09 08:01:27 +02:00
James Cole
6f7900234d Progress and updates for new layout. 2021-08-07 12:14:48 +02:00
James Cole
d97f090f86 Fix conversion. 2021-08-03 10:20:50 +02:00
James Cole
4b9f70db1c cast to string 2021-08-03 06:18:35 +02:00
James Cole
a7eb92b9bb Edit views for auth 2021-08-02 20:31:00 +02:00
James Cole
e04a71738d Fix commonmark error. 2021-08-02 20:30:26 +02:00
James Cole
f7f296c674 Merge pull request #4962 from firefly-iii/dependabot/composer/develop/phpunit/phpunit-9.5.8 2021-08-02 04:13:12 +00:00
James Cole
440ddd175d Merge pull request #4964 from firefly-iii/dependabot/composer/develop/phpstan/phpstan-0.12.94 2021-08-02 04:13:04 +00:00
James Cole
c814082918 Merge pull request #4966 from firefly-iii/dependabot/npm_and_yarn/develop/laravel-mix-6.0.27 2021-08-02 04:12:57 +00:00
James Cole
879c0224d5 Merge pull request #4963 from firefly-iii/dependabot/composer/develop/league/commonmark-2.0.1 2021-08-02 04:12:48 +00:00
James Cole
18bd06760a Merge pull request #4967 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/sass-1.37.0 2021-08-02 04:12:40 +00:00
James Cole
5232aec11e Merge pull request #4968 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/vue-loader-15.9.7 2021-08-02 04:12:32 +00:00
James Cole
8f926fb176 Merge pull request #4965 from firefly-iii/dependabot/npm_and_yarn/develop/uiv-1.3.1 2021-08-02 04:12:25 +00:00
dependabot[bot]
0cda2b7e4e Bump vue-loader from 15.9.6 to 15.9.7 in /frontend
Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.6 to 15.9.7.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/compare/v15.9.6...v15.9.7)

---
updated-dependencies:
- dependency-name: vue-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 03:03:12 +00:00
dependabot[bot]
7ba803965e Bump sass from 1.36.0 to 1.37.0 in /frontend
Bumps [sass](https://github.com/sass/dart-sass) from 1.36.0 to 1.37.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.36.0...1.37.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 03:02:49 +00:00
dependabot[bot]
a22ee35cd0 Bump laravel-mix from 6.0.25 to 6.0.27
Bumps [laravel-mix](https://github.com/JeffreyWay/laravel-mix) from 6.0.25 to 6.0.27.
- [Release notes](https://github.com/JeffreyWay/laravel-mix/releases)
- [Changelog](https://github.com/JeffreyWay/laravel-mix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JeffreyWay/laravel-mix/compare/v6.0.25...v6.0.27)

---
updated-dependencies:
- dependency-name: laravel-mix
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 03:02:07 +00:00
dependabot[bot]
c6386241fd Bump uiv from 1.3.0 to 1.3.1
Bumps [uiv](https://github.com/uiv-lib/uiv) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/uiv-lib/uiv/releases)
- [Commits](https://github.com/uiv-lib/uiv/compare/v1.3.0...v1.3.1)

---
updated-dependencies:
- dependency-name: uiv
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 03:01:56 +00:00
dependabot[bot]
3cd1369e61 Bump phpstan/phpstan from 0.12.93 to 0.12.94
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.12.93 to 0.12.94.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.93...0.12.94)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 03:00:59 +00:00
dependabot[bot]
924b615019 Bump league/commonmark from 2.0.0 to 2.0.1
Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/thephpleague/commonmark/compare/2.0.0...2.0.1)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 03:00:50 +00:00
dependabot[bot]
47c43b485a Bump phpunit/phpunit from 9.5.7 to 9.5.8
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.7 to 9.5.8.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.7...9.5.8)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 03:00:41 +00:00
James Cole
8ebdd481aa Update frontpage and packages. 2021-07-30 07:02:11 +02:00
James Cole
1a79525024 New frontend. 2021-07-29 06:24:50 +02:00
James Cole
03bdca39f1 New translations. 2021-07-29 06:22:59 +02:00
James Cole
89f98bb7ab Catch error. 2021-07-26 18:51:29 +02:00
James Cole
0d4e952a69 Merge pull request #4941 from firefly-iii/dependabot/composer/develop/nunomaduro/larastan-0.7.11
Bump nunomaduro/larastan from 0.7.10 to 0.7.11
2021-07-26 18:45:29 +02:00
dependabot[bot]
3760d5b039 Bump nunomaduro/larastan from 0.7.10 to 0.7.11
Bumps [nunomaduro/larastan](https://github.com/nunomaduro/larastan) from 0.7.10 to 0.7.11.
- [Release notes](https://github.com/nunomaduro/larastan/releases)
- [Changelog](https://github.com/nunomaduro/larastan/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nunomaduro/larastan/compare/v0.7.10...v0.7.11)

---
updated-dependencies:
- dependency-name: nunomaduro/larastan
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 04:33:58 +00:00
James Cole
011d6273fa Merge pull request #4943 from firefly-iii/dependabot/composer/develop/laravel/framework-8.51.0
Bump laravel/framework from 8.50.0 to 8.51.0
2021-07-26 06:33:01 +02:00
dependabot[bot]
c980be28ac Bump laravel/framework from 8.50.0 to 8.51.0
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.50.0 to 8.51.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.50.0...v8.51.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 04:28:42 +00:00
James Cole
095ef308c7 Merge pull request #4944 from firefly-iii/dependabot/npm_and_yarn/develop/postcss-8.3.6
Bump postcss from 8.3.5 to 8.3.6
2021-07-26 06:17:36 +02:00
James Cole
e329784448 Merge pull request #4942 from firefly-iii/dependabot/composer/develop/league/commonmark-2.0.0
Bump league/commonmark from 1.6.6 to 2.0.0
2021-07-26 06:16:02 +02:00
James Cole
b44f893869 Merge pull request #4940 from firefly-iii/dependabot/composer/develop/phpunit/phpunit-9.5.7
Bump phpunit/phpunit from 9.5.6 to 9.5.7
2021-07-26 06:15:52 +02:00
James Cole
2df20b4480 Merge pull request #4945 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/v-calendar-2.3.2
Bump v-calendar from 2.3.1 to 2.3.2 in /frontend
2021-07-26 06:14:24 +02:00
dependabot[bot]
cad0004a92 Bump v-calendar from 2.3.1 to 2.3.2 in /frontend
Bumps [v-calendar](https://github.com/nathanreyes/v-calendar) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/nathanreyes/v-calendar/releases)
- [Commits](https://github.com/nathanreyes/v-calendar/commits)

---
updated-dependencies:
- dependency-name: v-calendar
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 03:02:48 +00:00
dependabot[bot]
453ca0b9f4 Bump postcss from 8.3.5 to 8.3.6
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.5 to 8.3.6.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.5...8.3.6)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 03:01:59 +00:00
dependabot[bot]
ab525867e1 Bump league/commonmark from 1.6.6 to 2.0.0
Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 1.6.6 to 2.0.0.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/main/CHANGELOG-1.x.md)
- [Commits](https://github.com/thephpleague/commonmark/compare/1.6.6...2.0.0)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 03:01:09 +00:00
dependabot[bot]
0153a326da Bump phpunit/phpunit from 9.5.6 to 9.5.7
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.6 to 9.5.7.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.6...9.5.7)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 03:00:47 +00:00
James Cole
9885b7e716 Rebuild frontend. 2021-07-25 19:41:28 +02:00
James Cole
abb4b0befe Update and improve bills. 2021-07-25 19:40:14 +02:00
James Cole
217a382616 Update frontend to facilitate bills. 2021-07-25 19:39:35 +02:00
James Cole
a18742d250 Merge pull request #4936 from Flightkick/feature/fix-broken-images-readme
Feature/fix broken images readme
2021-07-23 13:16:23 +02:00
Flightkick
91e7d3bac0 Update images in readme
Currently pointing to nowhere until the PR will be merged.
2021-07-23 12:05:29 +02:00
Flightkick
b5a2531090 Add screenshots to Github repo 2021-07-23 11:58:30 +02:00
James Cole
afc9f4b7eb Add missing rate limiter. 2021-07-23 06:26:42 +02:00
James Cole
cb759e5c21 Fix issue in liability credits. 2021-07-21 06:23:42 +02:00
James Cole
33d6584924 Merge pull request #4926 from firefly-iii/dependabot/npm_and_yarn/develop/vue-loader-16.3.1
Bump vue-loader from 15.9.7 to 16.3.1
2021-07-19 06:49:29 +02:00
dependabot[bot]
6bbd0f5be6 Bump vue-loader from 15.9.7 to 16.3.1
Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.7 to 16.3.1.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/commits)

---
updated-dependencies:
- dependency-name: vue-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 04:37:48 +00:00
James Cole
fbb5a4dc25 Merge pull request #4927 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/vue-loader-16.3.1 2021-07-19 06:35:52 +02:00
James Cole
abb9ced8e6 Merge pull request #4924 from firefly-iii/dependabot/npm_and_yarn/develop/vue/compiler-sfc-3.1.5 2021-07-19 06:35:40 +02:00
James Cole
35bd023a79 Merge pull request #4925 from firefly-iii/dependabot/npm_and_yarn/develop/vue-i18n-8.25.0 2021-07-19 06:35:32 +02:00
dependabot[bot]
d827bfee99 Bump vue-loader from 15.9.7 to 16.3.1 in /frontend
Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.7 to 16.3.1.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/commits)

---
updated-dependencies:
- dependency-name: vue-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 03:02:49 +00:00
dependabot[bot]
afc21844b5 Bump vue-i18n from 8.24.5 to 8.25.0
Bumps [vue-i18n](https://github.com/kazupon/vue-i18n) from 8.24.5 to 8.25.0.
- [Release notes](https://github.com/kazupon/vue-i18n/releases)
- [Changelog](https://github.com/kazupon/vue-i18n/blob/v8.x/CHANGELOG.md)
- [Commits](https://github.com/kazupon/vue-i18n/compare/v8.24.5...v8.25.0)

---
updated-dependencies:
- dependency-name: vue-i18n
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 03:01:42 +00:00
dependabot[bot]
8a5354fcd7 Bump @vue/compiler-sfc from 3.1.4 to 3.1.5
Bumps [@vue/compiler-sfc](https://github.com/vuejs/vue-next/tree/HEAD/packages/compiler-sfc) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/vuejs/vue-next/releases)
- [Changelog](https://github.com/vuejs/vue-next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-next/commits/v3.1.5/packages/compiler-sfc)

---
updated-dependencies:
- dependency-name: "@vue/compiler-sfc"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 03:01:33 +00:00
James Cole
e959dbc6e0 Rebuild frontend. 2021-07-18 19:23:50 +02:00
James Cole
704cf26725 Translations. 2021-07-18 19:21:30 +02:00
James Cole
e8c08a0e93 Update packages. 2021-07-18 19:20:24 +02:00
James Cole
6d971e86b1 Various fixes and extensions. 2021-07-18 14:51:30 +02:00
James Cole
fb17da3f56 Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop 2021-07-18 14:50:51 +02:00
James Cole
fae8c05e71 Fix events for LDAP 2021-07-17 17:26:12 +02:00
James Cole
a865f4b72e Merge pull request #4913 from firefly-iii/dependabot/composer/develop/phpstan/phpstan-0.12.92
Bump phpstan/phpstan from 0.12.91 to 0.12.92
2021-07-12 06:19:27 +02:00
dependabot[bot]
48ef268c0d Bump phpstan/phpstan from 0.12.91 to 0.12.92
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.12.91 to 0.12.92.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.91...0.12.92)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-12 03:00:44 +00:00
James Cole
2c943e0d53 Fix #4901 2021-07-11 09:31:29 +02:00
James Cole
7e1af72186 Update JS 2021-07-11 09:31:10 +02:00
James Cole
1bf4fb1b70 Rebuild frontend. 2021-07-10 16:24:00 +02:00
James Cole
b7919e4ef2 Add strict thing. 2021-07-10 15:54:49 +02:00
James Cole
d828660b9e Catch LDAP events 2021-07-10 07:35:54 +02:00
James Cole
ddb222cc72 Various code cleanup. 2021-07-10 07:29:39 +02:00
James Cole
b0ccd26928 Update packages 2021-07-10 07:27:22 +02:00
James Cole
c741878f9f Update translations. 2021-07-10 05:21:14 +02:00
James Cole
e2380def5d Delete unused route 2021-07-09 06:42:23 +02:00
James Cole
ec73020b3c Fix exception. 2021-07-08 20:31:12 +02:00
James Cole
253e7499e3 Remove unused strings. 2021-07-05 20:03:54 +02:00
James Cole
48fdd50428 Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop
# Conflicts:
#	frontend/yarn.lock
2021-07-05 20:02:07 +02:00
James Cole
c0d3554acb Clean up views and code 2021-07-05 20:01:36 +02:00
James Cole
24b633b5ad Merge pull request #4896 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/sortablejs-1.14.0
Bump sortablejs from 1.13.0 to 1.14.0 in /frontend
2021-07-05 06:18:21 +02:00
James Cole
41cfa7b84e Merge pull request #4897 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/vue-loader-16.3.0
Bump vue-loader from 15.9.7 to 16.3.0 in /frontend
2021-07-05 06:18:10 +02:00
James Cole
f9abb1fb6e Merge pull request #4895 from firefly-iii/dependabot/composer/develop/phpstan/phpstan-0.12.91
Bump phpstan/phpstan from 0.12.90 to 0.12.91
2021-07-05 06:18:00 +02:00
dependabot[bot]
c4172d7f52 Bump vue-loader from 15.9.7 to 16.3.0 in /frontend
Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.7 to 16.3.0.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/commits)

---
updated-dependencies:
- dependency-name: vue-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-05 03:03:07 +00:00
dependabot[bot]
addb351c85 Bump sortablejs from 1.13.0 to 1.14.0 in /frontend
Bumps [sortablejs](https://github.com/SortableJS/Sortable) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/SortableJS/Sortable/releases)
- [Commits](https://github.com/SortableJS/Sortable/compare/1.13.0...1.14.0)

---
updated-dependencies:
- dependency-name: sortablejs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-05 03:02:56 +00:00
dependabot[bot]
20d94782f5 Bump phpstan/phpstan from 0.12.90 to 0.12.91
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.12.90 to 0.12.91.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.90...0.12.91)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-05 03:00:41 +00:00
James Cole
8135c034a9 Rename file 2021-07-04 19:41:47 +02:00
James Cole
b5583eba23 Catch error 2021-07-04 19:38:17 +02:00
James Cole
b0ab79bb48 Build empty bills things. 2021-07-04 19:20:21 +02:00
James Cole
5eca404866 Fix issue in number formatting. 2021-07-04 19:19:31 +02:00
James Cole
b94885f8ba Update meta file. 2021-07-04 19:18:41 +02:00
James Cole
6814582f32 Empty bills view. 2021-07-04 19:18:23 +02:00
James Cole
a09d831613 Fix #4894 2021-07-04 07:58:11 +02:00
James Cole
d35b0ea279 Merge tag '5.6.0-alpha.1' into develop
5.6.0-alpha.1
2021-07-03 12:35:08 +02:00
James Cole
10545f3e1b Merge branch 'release/5.6.0-alpha.1' 2021-07-03 12:35:07 +02:00
James Cole
2d294015f2 Update PR template 2021-07-03 12:34:47 +02:00
James Cole
739d01efe4 Update and build. 2021-07-03 12:32:02 +02:00
James Cole
3d81315769 Some search fixes. 2021-06-30 20:02:19 +02:00
James Cole
1350da9666 Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop 2021-06-30 19:45:25 +02:00
James Cole
7e73af789d Merge pull request #4889 from firefly-iii/dependabot/npm_and_yarn/develop/vue-loader-16.3.0
Bump vue-loader from 15.9.7 to 16.3.0
2021-06-30 19:44:44 +02:00
James Cole
42267bfc65 Fix feature flag. 2021-06-30 19:44:42 +02:00
dependabot[bot]
e864525e79 Bump vue-loader from 15.9.7 to 16.3.0
Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.7 to 16.3.0.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/commits)

---
updated-dependencies:
- dependency-name: vue-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-30 17:40:45 +00:00
James Cole
a952ba5411 Merge branch 'main' into develop 2021-06-30 19:38:35 +02:00
James Cole
8bf0eaf969 Rebuild front 2021-06-30 06:48:49 +02:00
James Cole
27c90bd217 Remove logging 2021-06-30 06:45:54 +02:00
James Cole
1d6e05f7cf Update translations. 2021-06-30 06:45:37 +02:00
James Cole
7bd1041820 Fix various bugs (very descriptive I know) 2021-06-30 06:45:19 +02:00
James Cole
7195f198a6 add entry 2021-06-30 06:18:05 +02:00
James Cole
70da5917c9 Refactor findNull to find 2021-06-30 06:17:38 +02:00
James Cole
0fed21e831 Merge pull request #4888 from firefly-iii/dependabot/composer/league/flysystem-1.1.4
Bump league/flysystem from 1.1.3 to 1.1.4
2021-06-29 06:42:00 +02:00
dependabot[bot]
405384dbe5 Bump league/flysystem from 1.1.3 to 1.1.4
Bumps [league/flysystem](https://github.com/thephpleague/flysystem) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/thephpleague/flysystem/releases)
- [Changelog](https://github.com/thephpleague/flysystem/blob/2.x/CHANGELOG.md)
- [Commits](https://github.com/thephpleague/flysystem/compare/1.1.3...1.1.4)

---
updated-dependencies:
- dependency-name: league/flysystem
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-29 03:59:39 +00:00
James Cole
b7ae5eda35 Merge pull request #4880 from firefly-iii/dependabot/composer/develop/phpunit/phpunit-9.5.6 2021-06-28 07:30:08 +02:00
dependabot[bot]
3c18808601 Bump phpunit/phpunit from 9.5.5 to 9.5.6
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.5 to 9.5.6.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.5...9.5.6)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 05:26:57 +00:00
James Cole
720a90a6ab Merge pull request #4879 from firefly-iii/dependabot/composer/develop/doctrine/dbal-3.1.1 2021-06-28 07:26:17 +02:00
James Cole
0008da3e79 Merge pull request #4881 from firefly-iii/dependabot/composer/develop/league/commonmark-1.6.5 2021-06-28 07:26:07 +02:00
James Cole
3625204df9 Merge pull request #4882 from firefly-iii/dependabot/composer/develop/laravel/framework-8.48.2 2021-06-28 07:25:52 +02:00
James Cole
d4483aed74 Merge pull request #4883 from firefly-iii/dependabot/npm_and_yarn/develop/laravel-mix-6.0.25 2021-06-28 07:25:45 +02:00
dependabot[bot]
8f5ac5cd7e Bump laravel-mix from 6.0.24 to 6.0.25
Bumps [laravel-mix](https://github.com/JeffreyWay/laravel-mix) from 6.0.24 to 6.0.25.
- [Release notes](https://github.com/JeffreyWay/laravel-mix/releases)
- [Changelog](https://github.com/JeffreyWay/laravel-mix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JeffreyWay/laravel-mix/compare/v6.0.24...v6.0.25)

---
updated-dependencies:
- dependency-name: laravel-mix
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 05:17:18 +00:00
James Cole
9d1135cb69 Merge pull request #4884 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/laravel-mix-6.0.25 2021-06-28 07:15:57 +02:00
James Cole
ac8f2e9e0d Merge pull request #4885 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/vue2-leaflet-2.7.1 2021-06-28 07:15:50 +02:00
James Cole
070a26a85e Merge pull request #4887 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/chart.js-3.4.0 2021-06-28 07:15:44 +02:00
James Cole
0eb3676268 Merge pull request #4886 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/webpack-5.40.0 2021-06-28 07:15:33 +02:00
dependabot[bot]
b6f4a30316 Bump chart.js from 3.3.2 to 3.4.0 in /frontend
Bumps [chart.js](https://github.com/chartjs/Chart.js) from 3.3.2 to 3.4.0.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](https://github.com/chartjs/Chart.js/compare/v3.3.2...v3.4.0)

---
updated-dependencies:
- dependency-name: chart.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 03:03:22 +00:00
dependabot[bot]
84b9aab3c2 Bump webpack from 5.39.1 to 5.40.0 in /frontend
Bumps [webpack](https://github.com/webpack/webpack) from 5.39.1 to 5.40.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.39.1...v5.40.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 03:03:05 +00:00
dependabot[bot]
82b877ed7c Bump vue2-leaflet from 2.7.0 to 2.7.1 in /frontend
Bumps [vue2-leaflet](https://github.com/vue-leaflet/Vue2Leaflet) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/vue-leaflet/Vue2Leaflet/releases)
- [Commits](https://github.com/vue-leaflet/Vue2Leaflet/compare/v2.7.0...v2.7.1)

---
updated-dependencies:
- dependency-name: vue2-leaflet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 03:02:52 +00:00
dependabot[bot]
c446351ffa Bump laravel-mix from 6.0.24 to 6.0.25 in /frontend
Bumps [laravel-mix](https://github.com/JeffreyWay/laravel-mix) from 6.0.24 to 6.0.25.
- [Release notes](https://github.com/JeffreyWay/laravel-mix/releases)
- [Changelog](https://github.com/JeffreyWay/laravel-mix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JeffreyWay/laravel-mix/compare/v6.0.24...v6.0.25)

---
updated-dependencies:
- dependency-name: laravel-mix
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 03:02:38 +00:00
dependabot[bot]
26bc625079 Bump laravel/framework from 8.47.0 to 8.48.2
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.47.0 to 8.48.2.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.47.0...v8.48.2)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 03:01:09 +00:00
dependabot[bot]
395eaddb0c Bump league/commonmark from 1.6.4 to 1.6.5
Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 1.6.4 to 1.6.5.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/main/CHANGELOG-1.x.md)
- [Commits](https://github.com/thephpleague/commonmark/compare/1.6.4...1.6.5)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 03:00:55 +00:00
dependabot[bot]
00c4f47f42 Bump doctrine/dbal from 3.1.0 to 3.1.1
Bumps [doctrine/dbal](https://github.com/doctrine/dbal) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/doctrine/dbal/releases)
- [Commits](https://github.com/doctrine/dbal/compare/3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: doctrine/dbal
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-28 03:00:38 +00:00
James Cole
363d8075f2 Merge branch 'main' into develop 2021-06-21 06:45:13 +02:00
James Cole
3325353639 Rebuild frontend. 2021-06-21 06:44:38 +02:00
James Cole
dbc5997198 Merge pull request #4867 from firefly-iii/dependabot/composer/develop/barryvdh/laravel-debugbar-3.6.2
Bump barryvdh/laravel-debugbar from 3.6.1 to 3.6.2
2021-06-21 06:34:40 +02:00
James Cole
1c8080a9fe Merge pull request #4869 from firefly-iii/dependabot/composer/develop/laravel/framework-8.47.0
Bump laravel/framework from 8.46.0 to 8.47.0
2021-06-21 06:34:32 +02:00
James Cole
3c8e6cfd31 Update dependabot.yml 2021-06-21 04:34:18 +00:00
James Cole
f56a6e8ecd Merge pull request #4868 from firefly-iii/dependabot/composer/develop/phpstan/phpstan-0.12.90
Bump phpstan/phpstan from 0.12.89 to 0.12.90
2021-06-21 06:32:27 +02:00
James Cole
6a107bf745 Merge pull request #4875 from firefly-iii/dependabot/npm_and_yarn/develop/laravel-mix-6.0.24
Bump laravel-mix from 6.0.19 to 6.0.24
2021-06-21 06:30:28 +02:00
dependabot[bot]
5eec0d15bd Bump phpstan/phpstan from 0.12.89 to 0.12.90
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.12.89 to 0.12.90.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.89...0.12.90)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 04:30:20 +00:00
dependabot[bot]
91a798f34e Bump laravel-mix from 6.0.19 to 6.0.24
Bumps [laravel-mix](https://github.com/JeffreyWay/laravel-mix) from 6.0.19 to 6.0.24.
- [Release notes](https://github.com/JeffreyWay/laravel-mix/releases)
- [Changelog](https://github.com/JeffreyWay/laravel-mix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JeffreyWay/laravel-mix/commits)

---
updated-dependencies:
- dependency-name: laravel-mix
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 04:29:50 +00:00
James Cole
0b1b7c4952 Merge pull request #4871 from firefly-iii/dependabot/composer/develop/bacon/bacon-qr-code-2.0.4
Bump bacon/bacon-qr-code from 2.0.3 to 2.0.4
2021-06-21 06:29:19 +02:00
James Cole
1e3668a9d1 Merge pull request #4870 from firefly-iii/dependabot/composer/develop/league/commonmark-1.6.4
Bump league/commonmark from 1.6.2 to 1.6.4
2021-06-21 06:28:40 +02:00
James Cole
29dc3ce430 Merge pull request #4874 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/laravel-mix-6.0.24
Bump laravel-mix from 6.0.23 to 6.0.24 in /frontend
2021-06-21 06:28:31 +02:00
James Cole
e523abacc7 Merge pull request #4872 from firefly-iii/dependabot/npm_and_yarn/develop/vue-i18n-8.24.5
Bump vue-i18n from 8.24.4 to 8.24.5
2021-06-21 06:27:52 +02:00
James Cole
0b7edec983 Merge pull request #4873 from firefly-iii/dependabot/npm_and_yarn/develop/postcss-8.3.5
Bump postcss from 8.3.3 to 8.3.5
2021-06-21 06:27:42 +02:00
dependabot[bot]
c774f87f2e Bump laravel-mix from 6.0.23 to 6.0.24 in /frontend
Bumps [laravel-mix](https://github.com/JeffreyWay/laravel-mix) from 6.0.23 to 6.0.24.
- [Release notes](https://github.com/JeffreyWay/laravel-mix/releases)
- [Changelog](https://github.com/JeffreyWay/laravel-mix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JeffreyWay/laravel-mix/commits)

---
updated-dependencies:
- dependency-name: laravel-mix
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 03:03:00 +00:00
dependabot[bot]
d7ca66efc5 Bump postcss from 8.3.3 to 8.3.5
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.3 to 8.3.5.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.3...8.3.5)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 03:02:29 +00:00
dependabot[bot]
8ded52b3b3 Bump vue-i18n from 8.24.4 to 8.24.5
Bumps [vue-i18n](https://github.com/kazupon/vue-i18n) from 8.24.4 to 8.24.5.
- [Release notes](https://github.com/kazupon/vue-i18n/releases)
- [Changelog](https://github.com/kazupon/vue-i18n/blob/v8.x/CHANGELOG.md)
- [Commits](https://github.com/kazupon/vue-i18n/compare/v8.24.4...v8.24.5)

---
updated-dependencies:
- dependency-name: vue-i18n
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 03:02:21 +00:00
dependabot[bot]
87fbeeaab4 Bump bacon/bacon-qr-code from 2.0.3 to 2.0.4
Bumps [bacon/bacon-qr-code](https://github.com/Bacon/BaconQrCode) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/Bacon/BaconQrCode/releases)
- [Changelog](https://github.com/Bacon/BaconQrCode/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Bacon/BaconQrCode/compare/2.0.3...2.0.4)

---
updated-dependencies:
- dependency-name: bacon/bacon-qr-code
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 03:01:16 +00:00
dependabot[bot]
926f826182 Bump league/commonmark from 1.6.2 to 1.6.4
Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 1.6.2 to 1.6.4.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/main/CHANGELOG-1.x.md)
- [Commits](https://github.com/thephpleague/commonmark/compare/1.6.2...1.6.4)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 03:01:08 +00:00
dependabot[bot]
bcfe3784d7 Bump laravel/framework from 8.46.0 to 8.47.0
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.46.0 to 8.47.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.46.0...v8.47.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 03:01:00 +00:00
dependabot[bot]
3cc60905bd Bump barryvdh/laravel-debugbar from 3.6.1 to 3.6.2
Bumps [barryvdh/laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/barryvdh/laravel-debugbar/releases)
- [Changelog](https://github.com/barryvdh/laravel-debugbar/blob/master/changelog.md)
- [Commits](https://github.com/barryvdh/laravel-debugbar/compare/v3.6.1...v3.6.2)

---
updated-dependencies:
- dependency-name: barryvdh/laravel-debugbar
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 03:00:38 +00:00
James Cole
2fa927266f Fix #4864 and relatred issues. 2021-06-20 18:39:15 +02:00
James Cole
c9eeaf7e95 Fix some logging. 2021-06-20 18:33:17 +02:00
James Cole
1bd87bfb88 Experimental rebuild. 2021-06-19 19:29:51 +02:00
James Cole
1f2c0f634b Make index 2021-06-19 14:03:59 +02:00
James Cole
1f176c93d5 Rebuild + some placeholders. 2021-06-19 13:39:40 +02:00
James Cole
3e31752a8f Add some boxes. 2021-06-19 09:09:08 +02:00
James Cole
4ba55e8546 Update sonar properties. 2021-06-19 08:19:07 +02:00
James Cole
0d80582874 Update translations and account index code. 2021-06-19 08:18:54 +02:00
James Cole
3e88bf4692 Merge pull request #4841 from alex6480/develop
Localize expand and collapse button for splits
2021-06-19 08:10:01 +02:00
James Cole
baae9955c8 Fix bad HTML tag 2021-06-18 06:06:54 +02:00
James Cole
4a77b9c8d5 Rename file 2021-06-17 18:24:09 +02:00
James Cole
f17b6dbdf3 Fix icons. 2021-06-17 18:19:43 +02:00
James Cole
8d454ed92a Merge pull request #4855 from vonsogt/patch-1
Update api.php
2021-06-16 08:40:22 +02:00
VREEdom
3f9661d9b4 Update api.php
to avoid getting error:
```
Unable to prepare route [api/v1/insight/transfer/asset] for serialization. Another route has already been assigned name [api.v1.insight.income.asset].
```
2021-06-16 13:38:42 +07:00
alex6480
4846d102f2 Merge branch 'develop' into develop 2021-06-15 15:25:07 +02:00
Alex
53947eced8 Update translations in resources/lang 2021-06-15 15:22:51 +02:00
James Cole
f4d6d8efa1 Merge pull request #4854 from firefly-iii/dependabot/npm_and_yarn/develop/postcss-8.3.3
Bump postcss from 8.3.2 to 8.3.3
2021-06-14 10:59:42 +02:00
dependabot[bot]
2d4c537c54 Bump postcss from 8.3.2 to 8.3.3
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.2 to 8.3.3.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.2...8.3.3)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 08:44:35 +00:00
James Cole
c681d2742b Merge pull request #4853 from firefly-iii/dependabot/npm_and_yarn/develop/postcss-8.3.2
Bump postcss from 8.3.0 to 8.3.2
2021-06-14 09:12:45 +02:00
dependabot[bot]
2047fa00a9 Bump postcss from 8.3.0 to 8.3.2
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.0 to 8.3.2.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.0...8.3.2)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 05:03:10 +00:00
James Cole
eb9d3f04b9 Merge branch 'main' into develop 2021-06-14 06:11:29 +02:00
James Cole
b19f69dc2a Update lock.yml 2021-06-13 06:33:20 +00:00
James Cole
5262c0240e Various code cleanup. 2021-06-13 08:10:30 +02:00
James Cole
c98706fac0 Various code cleanup. 2021-06-13 07:04:18 +02:00
James Cole
85204de9aa Various code cleanup. 2021-06-12 19:32:34 +02:00
James Cole
4614625f82 Remove TODO's. 2021-06-12 14:14:49 +02:00
James Cole
91b08d1772 Rename variable. 2021-06-12 13:15:01 +02:00
James Cole
cd9d1cf4ab Fix #4846 2021-06-12 08:46:06 +02:00
James Cole
10597e3bef Clean up code. 2021-06-12 08:40:35 +02:00
James Cole
5854dff37e More robust error display 2021-06-12 07:39:38 +02:00
James Cole
fbc3a2fb6a Bad message. 2021-06-12 07:39:30 +02:00
James Cole
c290aaa774 Remove some debug logging 2021-06-12 07:39:23 +02:00
James Cole
def456bd9b Make sure LDAP is persisted in validation 2021-06-12 07:39:16 +02:00
James Cole
1f83ebc6c7 Update example env file. 2021-06-12 07:38:58 +02:00
James Cole
6a928a3321 Update configuration. Not sure about the environment variable. 2021-06-12 06:35:19 +02:00
James Cole
39ad131b55 update packages. 2021-06-12 06:34:19 +02:00
James Cole
00a122833a update default config 2021-06-12 06:34:10 +02:00
James Cole
c593515ec6 Remove old filter. 2021-06-12 06:29:04 +02:00
James Cole
6dde89d1eb Add migrations. 2021-06-12 06:28:44 +02:00
James Cole
351bb81e78 Add LDAP stuff to user model. 2021-06-12 06:28:17 +02:00
James Cole
5ea7c66c83 update changelog 2021-06-12 06:27:14 +02:00
James Cole
8c171fa4d1 Merge branch 'feature/ldap' into develop
# Conflicts:
#	app/Http/Controllers/Auth/LoginController.php
#	composer.json
#	composer.lock
#	config/firefly.php
2021-06-12 06:26:45 +02:00
James Cole
310448e9bb Update API version 2021-06-12 06:20:43 +02:00
James Cole
aba56b331d Message also in v2. 2021-06-11 20:55:15 +02:00
James Cole
8832387b84 Remove TODO's. 2021-06-11 20:39:01 +02:00
James Cole
0d7d3f45f0 Security alert thing. 2021-06-11 20:19:59 +02:00
James Cole
fdf379b88b Set version to alpha version. 2021-06-11 20:04:41 +02:00
James Cole
8a9a36b512 Merge branch 'feature/webhooks' into develop
# Conflicts:
#	app/Events/UpdatedTransactionGroup.php
2021-06-11 20:00:40 +02:00
James Cole
e9f2d6b5ea Replace icons. 2021-06-11 19:50:05 +02:00
James Cole
460161d9a5 Rebuild frontend. 2021-06-11 19:44:01 +02:00
James Cole
204d5ee1e3 Fix issue with searching for external_id 2021-06-11 17:31:13 +02:00
James Cole
c4a00fbc9a Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop 2021-06-11 17:30:23 +02:00
James Cole
41c22c18fe Merge pull request #4850 from vonsogt/patch-1
Update menu-sidebar.twig
2021-06-11 08:00:55 +02:00
VREEdom
374aea4e09 Update menu-sidebar.twig
Small changes for the Classification in the menu-sidebar.
When route `groups` is active add class `menu-open` by adding this code `{{ activeRoutePartial('groups') }}`
2021-06-11 12:14:04 +07:00
James Cole
ebe37495c0 Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop 2021-06-11 06:14:02 +02:00
James Cole
eb4b9f0599 Merge pull request #4849 from hamza-fadil/main
Replace i tag with em to fix minor issues in Sonar
2021-06-11 06:13:21 +02:00
Hamza FADIL
ea2afa46ed Replace i tag with span to fix minor issues in Sonar 2021-06-10 23:40:07 +01:00
James Cole
0fd8d86eac Merge pull request #4848 from kasperkls02/main
Update TransactionCurrencySeeder.php
2021-06-09 20:26:52 +02:00
Kasper Læssø Sørensen
10d6ed01e1 Update TransactionCurrencySeeder.php
Added the currency of denmark
2021-06-09 18:38:58 +02:00
James Cole
9873365369 Show user info about mandatory updates. 2021-06-08 19:19:56 +02:00
James Cole
81669bfcc1 Merge pull request #4843 from firefly-iii/dependabot/composer/develop/phpunit/phpunit-9.5.5
Bump phpunit/phpunit from 9.5.4 to 9.5.5
2021-06-07 10:06:54 +02:00
James Cole
719b9e690a Merge pull request #4842 from firefly-iii/dependabot/composer/develop/barryvdh/laravel-debugbar-3.6.1
Bump barryvdh/laravel-debugbar from 3.6.0 to 3.6.1
2021-06-07 09:48:05 +02:00
James Cole
bd0444437a Merge pull request #4844 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/sass-loader-12.0.0
Bump sass-loader from 11.1.1 to 12.0.0 in /frontend
2021-06-07 09:46:41 +02:00
dependabot[bot]
57e28eb90e Bump sass-loader from 11.1.1 to 12.0.0 in /frontend
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 11.1.1 to 12.0.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v11.1.1...v12.0.0)

---
updated-dependencies:
- dependency-name: sass-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-07 05:27:55 +00:00
dependabot[bot]
ff850d750e Bump phpunit/phpunit from 9.5.4 to 9.5.5
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.5.4 to 9.5.5.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.4...9.5.5)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-07 05:05:49 +00:00
dependabot[bot]
7bd44f5f62 Bump barryvdh/laravel-debugbar from 3.6.0 to 3.6.1
Bumps [barryvdh/laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) from 3.6.0 to 3.6.1.
- [Release notes](https://github.com/barryvdh/laravel-debugbar/releases)
- [Changelog](https://github.com/barryvdh/laravel-debugbar/blob/master/changelog.md)
- [Commits](https://github.com/barryvdh/laravel-debugbar/compare/v3.6.0...v3.6.1)

---
updated-dependencies:
- dependency-name: barryvdh/laravel-debugbar
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-07 05:05:26 +00:00
James Cole
31ba0133c7 Whoops 2021-06-07 06:27:44 +02:00
Alex
a5bb8dfa5a Localize splits 2021-06-06 22:29:04 +02:00
James Cole
20e51d79b6 Fix array thing. Pretty basic. 2021-06-06 17:47:44 +02:00
James Cole
26ad0d3bc3 Basic fix for entire page loading: https://github.com/firefly-iii/firefly-iii/pull/4839 2021-06-06 17:25:38 +02:00
James Cole
a8f4154a77 Add translations. 2021-06-06 17:18:10 +02:00
James Cole
eacaee9e47 Code for #4838 and some translations 2021-06-06 17:17:46 +02:00
James Cole
4d4290c234 Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop 2021-06-06 17:16:27 +02:00
James Cole
a61ea446aa Merge pull request #4839 from alex6480/develop
Add table to transaction index
2021-06-06 17:14:35 +02:00
James Cole
782340908d Remove some old code. 2021-06-06 17:03:30 +02:00
Alex
d1a0dac092 Add table to transaction index 2021-06-06 14:04:51 +02:00
James Cole
fa50f76f5d Disable flag, update packages. 2021-06-05 07:38:49 +02:00
James Cole
38dcb96086 Merge tag '5.5.12' into develop
5.5.12

# Conflicts:
#	config/firefly.php
2021-06-03 13:02:45 +02:00
James Cole
8b90d2297d Merge branch 'hotfix/5.5.12' into main 2021-06-03 13:01:20 +02:00
James Cole
28479ef2ed Update version. 2021-06-03 12:54:21 +02:00
James Cole
9b03ae160d Update changelog. 2021-06-03 12:54:15 +02:00
James Cole
5303321952 Fix export vulnerability, found by GitHub user @oomb and disclosed via the excellent huntr.dev platform. 2021-06-03 12:51:31 +02:00
James Cole
95ba6aa2c3 Add to readme. 2021-06-03 12:50:05 +02:00
James Cole
a54f152a34 Fix issue in exporting. 2021-06-03 12:08:04 +02:00
James Cole
021e0a04ac Merge pull request #4821 from JeroenED/bugfix-sqlite-int-type
BUGFIX: sqlite does not return int types
2021-06-01 18:17:42 +02:00
Jeroen De Meerleer
28faee6e41 Resolved code smell 2021-06-01 12:25:01 +02:00
Jeroen De Meerleer
acc496e3e9 BUGFIX: sqlite does not return int types 2021-06-01 12:07:29 +02:00
James Cole
55ae280aaa Merge pull request #4819 from firefly-iii/dependabot/composer/develop/laravel/ui-3.3.0
Bump laravel/ui from 3.2.1 to 3.3.0
2021-05-31 08:39:11 +02:00
James Cole
299b857946 Merge pull request #4818 from firefly-iii/dependabot/composer/develop/laravel/framework-8.44.0
Bump laravel/framework from 8.42.1 to 8.44.0
2021-05-31 08:38:53 +02:00
James Cole
2d395023fe Merge pull request #4820 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/chart.js-3.3.2
Bump chart.js from 3.3.0 to 3.3.2 in /frontend
2021-05-31 08:28:58 +02:00
dependabot[bot]
e0f34384a3 Bump chart.js from 3.3.0 to 3.3.2 in /frontend
Bumps [chart.js](https://github.com/chartjs/Chart.js) from 3.3.0 to 3.3.2.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](https://github.com/chartjs/Chart.js/compare/v3.3.0...v3.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-31 05:24:49 +00:00
dependabot[bot]
5278e7f072 Bump laravel/ui from 3.2.1 to 3.3.0
Bumps [laravel/ui](https://github.com/laravel/ui) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/laravel/ui/releases)
- [Changelog](https://github.com/laravel/ui/blob/3.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/ui/compare/v3.2.1...v3.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-31 05:03:08 +00:00
dependabot[bot]
895e2d3d7c Bump laravel/framework from 8.42.1 to 8.44.0
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.42.1 to 8.44.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.42.1...v8.44.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-31 05:02:41 +00:00
James Cole
d3a7a59792 Remove unused var. 2021-05-30 07:39:55 +02:00
James Cole
4449ff99dc Disable specific call. 2021-05-29 19:28:43 +02:00
James Cole
ca42a31135 Merge branch 'main' into develop 2021-05-29 17:12:42 +02:00
James Cole
906fca7e9e Merge pull request #4815 from firefly-iii/dependabot/npm_and_yarn/frontend/ws-7.4.6
Bump ws from 7.4.5 to 7.4.6 in /frontend
2021-05-29 16:53:03 +02:00
dependabot[bot]
f64e1f3c1b Bump ws from 7.4.5 to 7.4.6 in /frontend
Bumps [ws](https://github.com/websockets/ws) from 7.4.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.5...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 14:52:33 +00:00
James Cole
c8af3684c6 Merge pull request #4812 from firefly-iii/dependabot/npm_and_yarn/ws-7.4.6
Bump ws from 7.4.5 to 7.4.6
2021-05-29 16:51:32 +02:00
James Cole
16a5dae61d Rebuild frontend. 2021-05-29 16:47:59 +02:00
dependabot[bot]
e3474bb075 Bump ws from 7.4.5 to 7.4.6
Bumps [ws](https://github.com/websockets/ws) from 7.4.5 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.5...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-29 13:54:19 +00:00
James Cole
a7726a014b Merge branch 'main' into develop
# Conflicts:
#	frontend/yarn.lock
2021-05-29 11:35:22 +02:00
James Cole
3be9493e9f Experiment with forage store. 2021-05-29 11:30:44 +02:00
James Cole
40bbed2a8b Limit some collection features. 2021-05-29 11:30:13 +02:00
James Cole
e379bbab4c Various code cleanup. 2021-05-28 23:13:38 +02:00
James Cole
12c2c58afd Submit feedback using another platform 2021-05-28 23:11:12 +02:00
James Cole
8140613a29 Merge pull request #4804 from firefly-iii/dependabot/npm_and_yarn/frontend/dns-packet-1.3.4
Bump dns-packet from 1.3.1 to 1.3.4 in /frontend
2021-05-27 14:29:48 +02:00
dependabot[bot]
00d5b4d29d Bump dns-packet from 1.3.1 to 1.3.4 in /frontend
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 11:37:49 +00:00
James Cole
251a347a42 Merge pull request #4803 from firefly-iii/dependabot/npm_and_yarn/dns-packet-1.3.4
Bump dns-packet from 1.3.1 to 1.3.4
2021-05-27 13:37:16 +02:00
dependabot[bot]
7fb090392f Bump dns-packet from 1.3.1 to 1.3.4
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-27 11:34:37 +00:00
James Cole
312472e7bb Fix #4798 2021-05-25 06:18:40 +02:00
James Cole
2afd959c4f Update breadcrumbs. 2021-05-24 12:40:39 +02:00
James Cole
20442a5023 Merge pull request #4790 from firefly-iii/dependabot/composer/develop/diglactic/laravel-breadcrumbs-7.0.0
Bump diglactic/laravel-breadcrumbs from 6.1.1 to 7.0.0
2021-05-24 11:48:47 +02:00
dependabot[bot]
bfadc5ae52 Bump diglactic/laravel-breadcrumbs from 6.1.1 to 7.0.0
Bumps [diglactic/laravel-breadcrumbs](https://github.com/diglactic/laravel-breadcrumbs) from 6.1.1 to 7.0.0.
- [Release notes](https://github.com/diglactic/laravel-breadcrumbs/releases)
- [Upgrade guide](https://github.com/diglactic/laravel-breadcrumbs/blob/main/UPGRADE.md)
- [Commits](https://github.com/diglactic/laravel-breadcrumbs/compare/v6.1.1...v7.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 09:47:50 +00:00
James Cole
8c7f7cf439 Merge pull request #4789 from firefly-iii/dependabot/npm_and_yarn/develop/postcss-8.3.0
Bump postcss from 8.2.15 to 8.3.0
2021-05-24 11:47:26 +02:00
James Cole
2a5591c95d Merge pull request #4791 from firefly-iii/dependabot/composer/develop/spatie/data-transfer-object-3.1.1
Bump spatie/data-transfer-object from 2.8.3 to 3.1.1
2021-05-24 11:47:12 +02:00
James Cole
85ff048fd8 Add allowed sort. 2021-05-24 10:13:35 +02:00
James Cole
bd181aeed4 Rebuild front. 2021-05-24 09:09:48 +02:00
James Cole
cdde0d252e Update translations. 2021-05-24 09:01:17 +02:00
James Cole
ad54163518 Various code cleanup. 2021-05-24 08:57:02 +02:00
James Cole
d60650cff2 Various code cleanup. 2021-05-24 08:54:58 +02:00
James Cole
815fd5ff6b Various code cleanup. 2021-05-24 08:50:17 +02:00
James Cole
3ec9753808 Various code cleanup. 2021-05-24 08:22:41 +02:00
James Cole
2bff7750b4 Code fixes. 2021-05-24 08:06:56 +02:00
dependabot[bot]
29aca7006b Bump spatie/data-transfer-object from 2.8.3 to 3.1.1
Bumps [spatie/data-transfer-object](https://github.com/spatie/data-transfer-object) from 2.8.3 to 3.1.1.
- [Release notes](https://github.com/spatie/data-transfer-object/releases)
- [Changelog](https://github.com/spatie/data-transfer-object/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spatie/data-transfer-object/compare/2.8.3...3.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 05:06:01 +00:00
dependabot[bot]
d54a219d3d Bump postcss from 8.2.15 to 8.3.0
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.15 to 8.3.0.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.15...8.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 05:04:01 +00:00
James Cole
3b1b353b79 Update packages. 2021-05-23 21:05:19 +02:00
James Cole
5cb13dceb8 Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop 2021-05-23 21:02:55 +02:00
James Cole
55538b668f Add PHP8.0 specific code. 2021-05-23 20:59:18 +02:00
James Cole
6b5f4932ce Merge pull request #4777 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/sass-loader-11.1.1
Bump sass-loader from 11.1.0 to 11.1.1 in /frontend
2021-05-17 07:43:07 +02:00
James Cole
bc366044e4 Merge pull request #4776 from firefly-iii/dependabot/composer/develop/barryvdh/laravel-debugbar-3.5.7
Bump barryvdh/laravel-debugbar from 3.5.5 to 3.5.7
2021-05-17 07:42:10 +02:00
dependabot[bot]
666c1f2919 Bump sass-loader from 11.1.0 to 11.1.1 in /frontend
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 11.1.0 to 11.1.1.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v11.1.0...v11.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 05:28:28 +00:00
dependabot[bot]
d732ab81b7 Bump barryvdh/laravel-debugbar from 3.5.5 to 3.5.7
Bumps [barryvdh/laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) from 3.5.5 to 3.5.7.
- [Release notes](https://github.com/barryvdh/laravel-debugbar/releases)
- [Changelog](https://github.com/barryvdh/laravel-debugbar/blob/master/changelog.md)
- [Commits](https://github.com/barryvdh/laravel-debugbar/compare/v3.5.5...v3.5.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 05:06:16 +00:00
James Cole
8a8aa7ca71 Fix #4774 2021-05-15 12:58:19 +02:00
James Cole
a7f74522bd Fix some edge cases in liabilities. 2021-05-15 09:16:54 +02:00
James Cole
e7d8c3451b Add missing string. 2021-05-13 06:49:38 +02:00
James Cole
c4c85dddc1 Support static cron code. 2021-05-13 06:47:11 +02:00
James Cole
579ffce81b Rebuild frontend. 2021-05-13 06:21:42 +02:00
James Cole
c385979af6 Update translations. 2021-05-13 06:19:32 +02:00
James Cole
6ba45ec3f2 Update translations. 2021-05-13 06:19:15 +02:00
James Cole
7851bb476e Update some code. 2021-05-13 06:17:53 +02:00
James Cole
7453975e92 Update version in develop. 2021-05-13 05:56:07 +02:00
James Cole
3f1bd6b3f1 Currency code expansion. 2021-05-13 05:52:06 +02:00
James Cole
53dffc961f Merge branch 'feature/credit_calc' into develop 2021-05-13 05:35:07 +02:00
James Cole
80384000c1 Extra debug in search. 2021-05-13 05:34:49 +02:00
James Cole
e3efb23b78 Update config. 2021-05-13 05:34:40 +02:00
James Cole
8e667fe291 Update and merge. 2021-05-13 05:34:17 +02:00
James Cole
688515b8bf Merge pull request #4769 from rubenvanerk/develop 2021-05-12 22:22:10 +02:00
Ruben van Erk
6e3cf51749 Disable autcomplete for 2FA field 2021-05-12 19:58:35 +02:00
James Cole
082e690f51 Merge pull request #4760 from firefly-iii/dependabot/npm_and_yarn/frontend/develop/resolve-url-loader-4.0.0 2021-05-10 07:36:54 +02:00
dependabot[bot]
7e285d97f0 Bump resolve-url-loader from 3.1.3 to 4.0.0 in /frontend
Bumps [resolve-url-loader](https://github.com/bholloway/resolve-url-loader/tree/HEAD/packages/resolve-url-loader) from 3.1.3 to 4.0.0.
- [Release notes](https://github.com/bholloway/resolve-url-loader/releases)
- [Changelog](https://github.com/bholloway/resolve-url-loader/blob/v4-maintenance/packages/resolve-url-loader/CHANGELOG.md)
- [Commits](https://github.com/bholloway/resolve-url-loader/commits/4.0.0/packages/resolve-url-loader)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 05:32:54 +00:00
James Cole
8af2d845e7 Disable a feature flag. 2021-05-09 10:11:45 +02:00
James Cole
038996dff9 Make search integer. 2021-05-09 10:11:35 +02:00
James Cole
06a5b60aaf No longer create a default rule. 2021-05-09 07:58:09 +02:00
James Cole
873dfa179c Remove logging. 2021-05-09 07:49:15 +02:00
James Cole
33f6725d37 Update login 2021-05-09 07:49:04 +02:00
James Cole
22c09b7849 Add migration 2021-05-09 07:48:55 +02:00
James Cole
2488e444aa Update auth config and firefly config 2021-05-09 07:48:47 +02:00
James Cole
1157625f6d Login controller (needs more work) 2021-05-09 07:48:30 +02:00
James Cole
47ef9a0102 Add custom fields to user model. 2021-05-09 07:47:58 +02:00
James Cole
15fde3a220 Update meta files. 2021-05-09 07:47:49 +02:00
James Cole
daf7d79a21 Remove old files. 2021-05-09 06:40:21 +02:00
James Cole
787be9deb9 no message 2021-05-09 06:38:44 +02:00
James Cole
10c50fffb1 Merge tag '5.5.11' into develop
5.5.11
2021-05-08 21:35:18 +02:00
James Cole
4a2f751db3 Remove defaults 2021-05-02 14:53:24 +02:00
James Cole
ef3468ef1f Do not fire when fireWebhooks = false 2021-05-02 14:53:13 +02:00
James Cole
ca1eeed605 Add info to events handler 2021-05-02 14:52:49 +02:00
James Cole
2263aa4dbe Add info to array. 2021-05-02 14:52:25 +02:00
James Cole
2577e7301a Add option for webhooks. 2021-05-02 14:52:11 +02:00
James Cole
6d466af424 Add upgrade command. 2021-05-02 06:39:18 +02:00
James Cole
3f4697b6c3 Add upgrade command. 2021-05-02 06:38:34 +02:00
James Cole
d0622dbcd3 Merge branch 'develop' into feature/credit_calc
# Conflicts:
#	app/Repositories/Account/AccountRepository.php
2021-05-02 06:27:32 +02:00
James Cole
aac3027480 First attempt 2021-04-30 19:51:50 +02:00
James Cole
a83578d1ae Update code for proper index. 2021-04-27 07:55:54 +02:00
James Cole
be844b82af Add missing method. 2021-04-27 06:57:06 +02:00
James Cole
65c49c7a71 Merge branch 'develop' into feature/credit_calc
# Conflicts:
#	app/Factory/TransactionJournalMetaFactory.php
#	app/Repositories/Account/AccountRepository.php
#	app/Transformers/AccountTransformer.php
#	config/firefly.php
#	frontend/src/components/accounts/Create.vue
2021-04-27 06:54:38 +02:00
James Cole
8ef6595ced Better sentence 2021-04-26 09:48:04 +02:00
James Cole
0b94851623 Fix some cases in loans 2021-04-26 07:29:39 +02:00
James Cole
be3cb791a5 Fix text 2021-04-23 19:15:03 +02:00
James Cole
e3b93af297 Add some code to fix liabilities. 2021-04-23 19:13:38 +02:00
James Cole
39925f8139 Small changes in list 2021-04-12 06:08:21 +02:00
James Cole
a41d7378ef Some fixes in the account list 2021-04-11 06:41:21 +02:00
James Cole
16b51711f5 Actual debit indicator 2021-04-10 18:21:52 +02:00
James Cole
202facf43d Final touches for the balance and transactions. 2021-04-10 17:56:09 +02:00
James Cole
0426fa63d0 Make sure the user can create liabilities in the "credit" direction with the right transactions. 2021-04-10 17:26:36 +02:00
James Cole
5d7ca1ef9a Remove logging 2021-04-10 17:26:07 +02:00
James Cole
a2957b9e80 Update validation 2021-04-10 17:26:00 +02:00
James Cole
001c1f6518 New events for new accounts 2021-04-10 17:25:48 +02:00
James Cole
7fb4b2bb40 New events for new accounts 2021-04-10 17:25:41 +02:00
James Cole
bff274d058 New account and transaction types 2021-04-10 17:25:24 +02:00
James Cole
41d1ef27b5 New account and transaction types 2021-04-10 17:25:17 +02:00
James Cole
36fa7ae97e Some new strings. 2021-04-10 17:25:00 +02:00
James Cole
30aea37391 New events for new accounts 2021-04-10 17:24:47 +02:00
James Cole
f5af0350a4 Change rules for account requests 2021-04-10 17:24:38 +02:00
James Cole
e07377af86 Clear cache when updating account 2021-04-10 17:24:20 +02:00
James Cole
7825fe4f1d Add flag to feature branch. 2021-04-10 08:03:17 +02:00
James Cole
d01814821f Update forms and transformer. 2021-04-10 08:02:10 +02:00
James Cole
01234b52e3 Recaculation service (does not do much yet). 2021-04-10 07:59:54 +02:00
James Cole
21ac42d3a6 Call service to recalculate debt. 2021-04-10 07:59:41 +02:00
James Cole
dcc5d9f583 Trigger recalculation of credit when editing or storing a group. 2021-04-10 07:58:13 +02:00
James Cole
3a3cec4f9a Store direction. 2021-04-10 07:57:04 +02:00
James Cole
083749e8fe Allow user to submit direction. 2021-04-10 07:56:50 +02:00
924 changed files with 24137 additions and 16736 deletions

View File

@@ -188,7 +188,7 @@ AUTHENTICATION_GUARD=web
# Enter a custom URL here that will force a logout (your authentication provider can tell you).
# Setting this variable only works when AUTHENTICATION_GUARD != web
#
CUSTOM_LOGOUT_URI=
CUSTOM_LOGOUT_URL=
# LDAP connection configuration
# OpenLDAP, FreeIPA or ActiveDirectory
@@ -260,12 +260,6 @@ DISABLE_CSP_HEADER=false
TRACKER_SITE_ID=
TRACKER_URL=
#
# Firefly III can collect telemetry on how you use Firefly III. This is opt-in.
# In order to allow this, change the following variable to true.
# To read more about this feature, go to this page: https://docs.firefly-iii.org/support/telemetry
SEND_TELEMETRY=false
# You can fine tune the start-up of a Docker container by editing these environment variables.
# Use this at your own risk. Disabling certain checks and features may result in lost of inconsistent data.
# However if you know what you're doing you can significantly speed up container start times.

View File

@@ -189,7 +189,7 @@ AUTHENTICATION_GUARD=web
# Enter a custom URL here that will force a logout (your authentication provider can tell you).
# Setting this variable only works when AUTHENTICATION_GUARD != web
#
CUSTOM_LOGOUT_URI=
CUSTOM_LOGOUT_URL=
# LDAP connection configuration
# OpenLDAP, FreeIPA or ActiveDirectory
@@ -261,12 +261,6 @@ DISABLE_CSP_HEADER=false
TRACKER_SITE_ID=
TRACKER_URL=
#
# Firefly III can collect telemetry on how you use Firefly III. This is opt-in.
# In order to allow this, change the following variable to true.
# To read more about this feature, go to this page: https://docs.firefly-iii.org/support/telemetry
SEND_TELEMETRY=false
# You can fine tune the start-up of a Docker container by editing these environment variables.
# Use this at your own risk. Disabling certain checks and features may result in lost of inconsistent data.
# However if you know what you're doing you can significantly speed up container start times.

View File

@@ -38,12 +38,6 @@ TRUSTED_PROXIES=
# Also available are 'syslog', 'errorlog' and 'stdout' which will log to the system itself.
# A rotating log option is 'daily', creates 5 files that (surprise) rotate.
# Default setting 'stack' will log to 'daily' and to 'stdout' at the same time.
# - Docker + versions <= 4.8.1.8 and before: use "stdout"
# - Docker + versions > 4.8.1.8 : use "docker_out"
# - Docker + versions >= 5.1.1 : use "stack"
# - For everything else (als not Docker) : use 'stack'
LOG_CHANNEL=stack
# Log level. You can set this from least severe to most severe:
@@ -53,8 +47,7 @@ LOG_CHANNEL=stack
APP_LOG_LEVEL=notice
# Audit log level.
# set to "emergency" if you dont want to store audit logs.
# leave on info otherwise.
# Set this to "emergency" if you dont want to store audit logs, leave on info otherwise.
AUDIT_LOG_LEVEL=info
# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III
@@ -89,11 +82,11 @@ PGSQL_SSL_CERT=null
PGSQL_SSL_KEY=null
PGSQL_SSL_CRL_FILE=null
# If you're looking for performance improvements, you could install memcached.
# If you're looking for performance improvements, you could install memcached or redis
CACHE_DRIVER=file
SESSION_DRIVER=file
# If you set either of these to 'redis', you might want to update these settings too
# If you set either of the options above to 'redis', you might want to update these settings too
# If you use Docker or similar, you can set REDIS_HOST_FILE, REDIS_PASSWORD_FILE or
# REDIS_PORT_FILE to set the value from a file instead of from an environment variable
@@ -106,8 +99,8 @@ REDIS_PATH=
# use only when using 'tcp' or 'http' for REDIS_SCHEME. Leave empty otherwise.
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=null
# always use quotes and make sure redis db "0" and "1" exists. Otherwise change accordingly.
REDIS_DB="0"
REDIS_CACHE_DB="1"
@@ -115,12 +108,13 @@ REDIS_CACHE_DB="1"
# Cookie settings. Should not be necessary to change these.
# If you use Docker or similar, you can set COOKIE_DOMAIN_FILE to set
# the value from a file instead of from an environment variable
# Setting samesite to "strict" may give you trouble logging in.
COOKIE_PATH="/"
COOKIE_DOMAIN=
COOKIE_SECURE=false
COOKIE_SAMESITE=lax
# If you want Firefly III to mail you, update these settings
# If you want Firefly III to email you, update these settings
# For instructions, see: https://docs.firefly-iii.org/advanced-installation/email
# If you use Docker or similar, you can set these variables from a file by appending them with _FILE
MAIL_MAILER=log
@@ -145,7 +139,7 @@ MAILGUN_ENDPOINT=api.mailgun.net
MANDRILL_SECRET=
SPARKPOST_SECRET=
# Firefly III can send you the following messages
# Firefly III can send you the following messages.
SEND_REGISTRATION_MAIL=true
SEND_ERROR_MESSAGE=true
SEND_LOGIN_NEW_IP_WARNING=true
@@ -153,16 +147,9 @@ SEND_LOGIN_NEW_IP_WARNING=true
# These messages contain (sensitive) transaction information:
SEND_REPORT_JOURNALS=true
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
# If you use Docker or similar, you can set this variable from a file by appending it with _FILE
# Take note: it is no longer necessary to set this value, and it will be removed in future versions.
MAPBOX_API_KEY=
#
# Instead of the mapbox API key, just set this value to true if you want to set the location
# Set this value to true if you want to set the location
# of certain things, like transactions. Since this involves an external service, it's optional
# and disabled by default.
#
ENABLE_EXTERNAL_MAP=false
# The map will default to this location:
@@ -170,100 +157,44 @@ MAP_DEFAULT_LAT=51.983333
MAP_DEFAULT_LONG=5.916667
MAP_DEFAULT_ZOOM=6
# Firefly III has two options for user authentication. "eloquent" is the default,
# and "ldap" for LDAP servers.
# For full instructions on these settings please visit:
# https://docs.firefly-iii.org/advanced-installation/authentication
# If you use Docker or similar, you can set this variable from a file by appending it with _FILE
#
# If you enable 'ldap' AND you run Docker, the Docker image will contact packagist.org
# This is necessary to download the required packages.
# Firefly III authentication settings
#
LOGIN_PROVIDER=eloquent
# It's also possible to change the way users are authenticated. You could use Authelia for example.
# Authentication via the REMOTE_USER header is supported. Change the value below to "remote_user_guard".
#
# This will also allow Windows SSO.
#
# If you do this please read the documentation for instructions and warnings:
# Firefly III supports a few authentication methods:
# - 'web' (default, uses built in DB)
# - 'ldap'
# - 'remote_user_guard' for Authelia etc
# Read more about these settings in the documentation.
# https://docs.firefly-iii.org/advanced-installation/authentication
#
# This function is available in Firefly III v5.3.0 and higher.
AUTHENTICATION_GUARD=web
# If the guard is changed, Firefly III uses the 'REMOTE_USER' header as per RFC 3875.
# You can also use another header, like AUTH_USER when using Windows SSO.
# Some systems use X-Auth headers. In that case, use HTTP_X_AUTH_USERNAME or HTTP_X_AUTH_EMAIL
# Depending on your system, REMOTE_USER may need to be changed to HTTP_REMOTE_USER
#
# If this header is 'unexpectedly empty', check out the documentation.
# https://docs.firefly-iii.org/advanced-installation/authentication
# LDAP connection settings:
#
LDAP_HOST=ldap.yourserver.com
LDAP_PORT=389
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false
LDAP_BASE_DN="o=something,dc=site,dc=com"
LDAP_USERNAME="uid=X,ou=,o=,dc=something,dc=com"
LDAP_PASSWORD=super_secret
LDAP_AUTH_FIELD=uid
#
# Remote user guard settings
#
AUTHENTICATION_GUARD_HEADER=REMOTE_USER
#
# Firefly III uses email addresses as user identifiers. When you're using an external authentication guard
# that doesn't do this, Firefly III is incapable of emailing you. Messages sent to "Bill Gates" always fail.
#
# However, if you set this value, Firefly III will store the value from this header as the user's backup
# email address and use it to communicate. So user "Bill Gates" could still have
# the email address "bill@microsoft.com".
#
# Example value: AUTHENTICATION_GUARD_EMAIL=HTTP_X_AUTH_EMAIL
#
AUTHENTICATION_GUARD_EMAIL=
# It's impossible to log out users who's authentication is handled by an external system.
# Enter a custom URL here that will force a logout (your authentication provider can tell you).
# Setting this variable only works when AUTHENTICATION_GUARD != web
#
CUSTOM_LOGOUT_URI=
# LDAP connection configuration
# OpenLDAP, FreeIPA or ActiveDirectory
# # If you use Docker or similar, you can set this variable from a file by appending it with _FILE
ADLDAP_CONNECTION_SCHEME=OpenLDAP
ADLDAP_AUTO_CONNECT=true
# LDAP connection settings
# You can set the following variables from a file by appending them with _FILE:
# ADLDAP_CONTROLLERS, ADLDAP_PORT, ADLDAP_BASEDN
ADLDAP_CONTROLLERS=
ADLDAP_PORT=389
ADLDAP_TIMEOUT=5
ADLDAP_BASEDN=""
ADLDAP_FOLLOW_REFFERALS=false
# SSL/TLS settings
ADLDAP_USE_SSL=false
ADLDAP_USE_TLS=false
ADLDAP_SSL_CACERTDIR=
ADLDAP_SSL_CACERTFILE=
ADLDAP_SSL_CERTFILE=
ADLDAP_SSL_KEYFILE=
ADLDAP_SSL_CIPHER_SUITE=
ADLDAP_SSL_REQUIRE_CERT=
# You can set the following variables from a file by appending them with _FILE:
ADLDAP_ADMIN_USERNAME=
ADLDAP_ADMIN_PASSWORD=
# You can set the following variables from a file by appending them with _FILE:
ADLDAP_ACCOUNT_PREFIX=
ADLDAP_ACCOUNT_SUFFIX=
# LDAP authentication settings.
ADLDAP_PASSWORD_SYNC=false
ADLDAP_LOGIN_FALLBACK=false
ADLDAP_DISCOVER_FIELD=distinguishedname
ADLDAP_AUTH_FIELD=distinguishedname
# field to sync as local username.
# You can set the following variable from a file by appending it with _FILE:
ADLDAP_SYNC_FIELD=userprincipalname
# Extra authentication settings
#
CUSTOM_LOGOUT_URL=
# You can disable the X-Frame-Options header if it interferes with tools like
# Organizr. This is at your own risk. Applications running in frames run the risk
@@ -284,16 +215,20 @@ DISABLE_CSP_HEADER=false
TRACKER_SITE_ID=
TRACKER_URL=
# Firefly III can collect telemetry on how you use Firefly III. This is opt-in.
# In order to allow this, change the following variable to true.
# To read more about this feature, go to this page: https://docs.firefly-iii.org/support/telemetry
SEND_TELEMETRY=false
#
# Firefly III supports webhooks. These are security sensitive and must be enabled manually first.
#
ALLOW_WEBHOOKS=false
#
# The static cron job token can be useful when you use Docker and wish to manage cron jobs.
# 1. Set this token to any 32-character value (this is important!).
# 2. Use this token in the cron URL instead of a user's command line token.
#
# For more info: https://docs.firefly-iii.org/firefly-iii/advanced-installation/cron/
#
STATIC_CRON_TOKEN=
# You can fine tune the start-up of a Docker container by editing these environment variables.
# Use this at your own risk. Disabling certain checks and features may result in lost of inconsistent data.
# However if you know what you're doing you can significantly speed up container start times.

BIN
.github/assets/img/imac-complete.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 KiB

BIN
.github/assets/img/ipad-complete.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 KiB

BIN
.github/assets/img/iphone-complete.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

BIN
.github/assets/img/logo-small.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -6,6 +6,7 @@ updates:
directory: "/" # Location of package manifests
target-branch: develop
labels: ["bug"]
versioning-strategy: increase
schedule:
interval: "weekly"
@@ -14,6 +15,7 @@ updates:
directory: "/"
target-branch: develop
labels: ["bug"]
versioning-strategy: increase
schedule:
interval: "weekly"
@@ -21,6 +23,7 @@ updates:
- package-ecosystem: "npm"
directory: "/frontend"
target-branch: develop
versioning-strategy: increase
labels: ["bug"]
schedule:
interval: "weekly"

View File

@@ -2,8 +2,7 @@
Before you create a new PR, please consider:
1) Pull requests for the MAIN branch will be closed.
2) We cannot accept pull requests to add new currencies.
3) DO NOT include translations in your PR. Only English US sentences.
2) DO NOT include translations in your PR. Only English US sentences.
Thanks.
-->

View File

@@ -13,7 +13,3 @@ jobs:
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '90'
issue-lock-comment: >
This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

View File

@@ -87,7 +87,7 @@ class AccountController extends Controller
$frontPage = app('preferences')->get('frontPageAccounts', $defaultSet);
$default = app('amount')->getDefaultCurrency();
if (0 === count($frontPage->data)) {
if (empty($frontPage->data)) {
$frontPage->data = $defaultSet;
$frontPage->save();
}
@@ -114,7 +114,6 @@ class AccountController extends Controller
'yAxisID' => 0, // 0, 1, 2
'entries' => [],
];
/** @var Carbon $currentStart */
$currentStart = clone $start;
$range = app('steam')->balanceInRange($account, $start, clone $end);
$previous = round((float)array_values($range)[0], 12);

View File

@@ -26,6 +26,7 @@ namespace FireflyIII\Api\V1\Controllers;
use Carbon\Carbon;
use Carbon\Exceptions\InvalidDateException;
use Carbon\Exceptions\InvalidFormatException;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
@@ -46,6 +47,7 @@ abstract class Controller extends BaseController
protected const CONTENT_TYPE = 'application/vnd.api+json';
protected ParameterBag $parameters;
protected array $allowedSort;
/**
* Controller constructor.
@@ -53,7 +55,8 @@ abstract class Controller extends BaseController
public function __construct()
{
// get global parameters
$this->parameters = $this->getParameters();
$this->allowedSort = config('firefly.allowed_sort_parameters');
$this->parameters = $this->getParameters();
$this->middleware(
function ($request, $next) {
if (auth()->check()) {
@@ -89,7 +92,7 @@ abstract class Controller extends BaseController
if (null !== $date) {
try {
$obj = Carbon::parse($date);
} catch (InvalidDateException $e) {
} catch (InvalidDateException|InvalidFormatException $e) {
// don't care
Log::error(sprintf('Invalid date exception in API controller: %s', $e->getMessage()));
}
@@ -106,10 +109,40 @@ abstract class Controller extends BaseController
}
}
return $bag;
// sort fields:
return $this->getSortParameters($bag);
}
/**
* @param ParameterBag $bag
*
* @return ParameterBag
*/
private function getSortParameters(ParameterBag $bag): ParameterBag
{
$sortParameters = [];
$param = (string)request()->query->get('sort');
if ('' === $param) {
return $bag;
}
$parts = explode(',', $param);
foreach ($parts as $part) {
$part = trim($part);
$direction = 'asc';
if ('-' === $part[0]) {
$part = substr($part, 1);
$direction = 'desc';
}
if (in_array($part, $this->allowedSort, true)) {
$sortParameters[] = [$part, $direction];
}
}
$bag->set('sort', $sortParameters);
return $bag;
}
/**
* Method to help build URI's.
*

View File

@@ -1,4 +1,25 @@
<?php
/*
* AccountController.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers\Data\Bulk;
@@ -12,11 +33,16 @@ use Illuminate\Http\JsonResponse;
/**
* Class AccountController
*
* @deprecated
*/
class AccountController extends Controller
{
private AccountRepositoryInterface $repository;
/**
*
*/
public function __construct()
{
parent::__construct();
@@ -37,9 +63,9 @@ class AccountController extends Controller
*/
public function moveTransactions(MoveTransactionsRequest $request): JsonResponse
{
$accountIds = $request->getAll();
$original = $this->repository->findNull($accountIds['original_account']);
$destination = $this->repository->findNull($accountIds['destination_account']);
$accountIds = $request->getAll();
$original = $this->repository->find($accountIds['original_account']);
$destination = $this->repository->find($accountIds['destination_account']);
/** @var AccountDestroyService $service */
$service = app(AccountDestroyService::class);

View File

@@ -0,0 +1,97 @@
<?php
/*
* TransactionController.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers\Data\Bulk;
use FireflyIII\Api\V1\Controllers\Controller;
use FireflyIII\Api\V1\Requests\Data\Bulk\TransactionRequest;
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
use FireflyIII\Services\Internal\Destroy\AccountDestroyService;
use Illuminate\Http\JsonResponse;
/**
* Class TransactionController
*
* Endpoint to update transactions by submitting
* (optional) a "where" clause and an "update"
* clause.
*
* Because this is a security nightmare waiting to happen validation
* is pretty strict.
*/
class TransactionController extends Controller
{
private AccountRepositoryInterface $repository;
/**
*
*/
public function __construct()
{
parent::__construct();
$this->middleware(
function ($request, $next) {
$this->repository = app(AccountRepositoryInterface::class);
$this->repository->setUser(auth()->user());
return $next($request);
}
);
}
/**
* @param TransactionRequest $request
*
* @return JsonResponse
*/
public function update(TransactionRequest $request): JsonResponse
{
$query = $request->getAll();
$params = $query['query'];
// this deserves better code, but for now a loop of basic if-statements
// to respond to what is in the $query.
// this is OK because only one thing can be in the query at the moment.
if ($this->updatesTransactionAccount($params)) {
$original = $this->repository->find((int)$params['where']['source_account_id']);
$destination = $this->repository->find((int)$params['update']['destination_account_id']);
/** @var AccountDestroyService $service */
$service = app(AccountDestroyService::class);
$service->moveTransactions($original, $destination);
}
return response()->json([], 204);
}
/**
* @param array $params
*
* @return bool
*/
private function updatesTransactionAccount(array $params): bool
{
return array_key_exists('source_account_id', $params['where']) && array_key_exists('destination_account_id', $params['update']);
}
}

View File

@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
/*
* AccountController.php
* ExportController.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
@@ -20,6 +20,8 @@ declare(strict_types=1);
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers\Data\Export;
use FireflyIII\Api\V1\Controllers\Controller;
@@ -70,6 +72,8 @@ class ExportController extends Controller
*
* @return LaravelResponse
* @throws CannotInsertRecord
* @throws \FireflyIII\Exceptions\FireflyException
* @throws \League\Csv\Exception
*/
private function returnExport(string $key): LaravelResponse
{

View File

@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
/*
* PeriodController.php
* BillController.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
@@ -20,6 +20,8 @@ declare(strict_types=1);
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers\Insight\Expense;
use FireflyIII\Api\V1\Controllers\Controller;

View File

@@ -81,7 +81,7 @@ class BudgetController extends Controller
}
/** @var Budget $budget */
foreach ($budgets as $budget) {
$expenses = $this->opsRepository->sumExpenses($start, $end, $assetAccounts, new Collection([$budget]), null);
$expenses = $this->opsRepository->sumExpenses($start, $end, $assetAccounts, new Collection([$budget]));
/** @var array $expense */
foreach ($expenses as $expense) {
$result[] = [
@@ -109,7 +109,7 @@ class BudgetController extends Controller
$end = $request->getEnd();
$assetAccounts = $request->getAssetAccounts();
$result = [];
$expenses = $this->noRepository->sumExpenses($start, $end, $assetAccounts, null);
$expenses = $this->noRepository->sumExpenses($start, $end, $assetAccounts);
/** @var array $expense */
foreach ($expenses as $expense) {
$result[] = [

View File

@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
/*
* PeriodController.php
* TagController.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
@@ -20,6 +20,8 @@ declare(strict_types=1);
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers\Insight\Expense;
use FireflyIII\Api\V1\Controllers\Controller;

View File

@@ -38,7 +38,6 @@ use Illuminate\Http\JsonResponse;
*
* Shows income information grouped or limited by date.
* Ie. all income grouped by account + currency.
* TODO same code as Expense/AccountController.
*/
class AccountController extends Controller
{
@@ -74,8 +73,6 @@ class AccountController extends Controller
}
/**
* TODO same code as Expense/AccountController.
* TODO does not actually include the name of the expense account.
* @param GenericRequest $request
*
* @return JsonResponse
@@ -103,8 +100,6 @@ class AccountController extends Controller
}
/**
* TODO does not actually include the name of the expense account.
*
* @param GenericRequest $request
*
* @return JsonResponse

View File

@@ -35,7 +35,6 @@ use Illuminate\Support\Collection;
/**
* Class CategoryController
* TODO same as opposing category controller
*/
class CategoryController extends Controller
{

View File

@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
/*
* PeriodController.php
* TagController.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
@@ -20,6 +20,8 @@ declare(strict_types=1);
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers\Insight\Income;
use FireflyIII\Api\V1\Controllers\Controller;

View File

@@ -58,8 +58,6 @@ class AccountController extends Controller
}
/**
* TODO same code as Expense/AccountController.
* TODO does not actually include the name of the expense account.
*
* @param GenericRequest $request
*

View File

@@ -39,7 +39,6 @@ class TagController extends Controller
/**
* TagController constructor.
* TODO lots of copying and pasting here.
*/
public function __construct()
{

View File

@@ -72,6 +72,7 @@ class ListController extends Controller
* @param Account $account
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function attachments(Account $account): JsonResponse
@@ -103,6 +104,7 @@ class ListController extends Controller
* @param Account $account
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function piggyBanks(Account $account): JsonResponse
@@ -142,6 +144,7 @@ class ListController extends Controller
* @param Account $account
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function transactions(Request $request, Account $account): JsonResponse
{

View File

@@ -69,8 +69,9 @@ class ShowController extends Controller
*
* @param Request $request
*
* @codeCoverageIgnore
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(Request $request): JsonResponse
{
@@ -84,8 +85,12 @@ class ShowController extends Controller
// get list of accounts. Count it and split it.
$this->repository->resetAccountOrder();
$collection = $this->repository->getAccountsByType($types);
$collection = $this->repository->getAccountsByType($types, $this->parameters->get('sort') ?? []);
$count = $collection->count();
// continue sort:
$accounts = $collection->slice(($this->parameters->get('page') - 1) * $pageSize, $pageSize);
// make paginator:

View File

@@ -31,6 +31,7 @@ use FireflyIII\Transformers\AccountTransformer;
use Illuminate\Http\JsonResponse;
use League\Fractal\Resource\Item;
use Log;
use Preferences;
/**
* Class UpdateController
@@ -75,6 +76,7 @@ class UpdateController extends Controller
$account = $this->repository->update($account, $data);
$manager = $this->getManager();
$account->refresh();
Preferences::mark();
/** @var AccountTransformer $transformer */
$transformer = app(AccountTransformer::class);

View File

@@ -111,6 +111,7 @@ class ShowController extends Controller
* Display a listing of the resource.
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -65,6 +65,7 @@ class ShowController extends Controller
* Display a listing of the resource.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -71,6 +71,7 @@ class ListController extends Controller
* @param Bill $bill
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function attachments(Bill $bill): JsonResponse
@@ -102,6 +103,7 @@ class ListController extends Controller
* @param Bill $bill
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function rules(Bill $bill): JsonResponse
@@ -138,6 +140,7 @@ class ListController extends Controller
* @param Bill $bill
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, Bill $bill): JsonResponse

View File

@@ -63,6 +63,7 @@ class ShowController extends Controller
* Display a listing of the resource.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -73,6 +73,7 @@ class ListController extends Controller
* @param Budget $budget
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function attachments(Budget $budget): JsonResponse
@@ -104,6 +105,7 @@ class ListController extends Controller
* @param Budget $budget
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function budgetLimits(Budget $budget): JsonResponse
@@ -134,6 +136,7 @@ class ListController extends Controller
* @param Budget $budget
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, Budget $budget): JsonResponse

View File

@@ -66,6 +66,7 @@ class ShowController extends Controller
* Display a listing of the resource.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -65,6 +65,7 @@ class DestroyController extends Controller
* @param BudgetLimit $budgetLimit
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function destroy(Budget $budget, BudgetLimit $budgetLimit): JsonResponse

View File

@@ -73,6 +73,7 @@ class ListController extends Controller
* @param BudgetLimit $budgetLimit
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, Budget $budget, BudgetLimit $budgetLimit): JsonResponse

View File

@@ -73,8 +73,10 @@ class ShowController extends Controller
* Display a listing of the budget limits for this budget..
*
* @param Request $request
* @param Budget $budget
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function index(Request $request, Budget $budget): JsonResponse
@@ -104,6 +106,7 @@ class ShowController extends Controller
* @param DateRequest $request
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function indexAll(DateRequest $request): JsonResponse
@@ -133,6 +136,7 @@ class ShowController extends Controller
* @param BudgetLimit $budgetLimit
*
* @return JsonResponse
* @throws FireflyException
*/
public function show(Request $request, Budget $budget, BudgetLimit $budgetLimit): JsonResponse
{

View File

@@ -64,10 +64,9 @@ class StoreController extends Controller
* Store a newly created resource in storage.
*
* @param StoreRequest $request
* @param Budget $budget
*
* @return JsonResponse
* @throws FireflyException
*
*/
public function store(StoreRequest $request, Budget $budget): JsonResponse
{

View File

@@ -69,6 +69,7 @@ class UpdateController extends Controller
* @param BudgetLimit $budgetLimit
*
* @return JsonResponse
* @throws FireflyException
*/
public function update(UpdateRequest $request, Budget $budget, BudgetLimit $budgetLimit): JsonResponse
{

View File

@@ -68,6 +68,7 @@ class ListController extends Controller
* @param Category $category
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function attachments(Category $category): JsonResponse
@@ -101,6 +102,7 @@ class ListController extends Controller
* @param Category $category
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, Category $category): JsonResponse

View File

@@ -63,6 +63,7 @@ class ShowController extends Controller
* Display a listing of the resource.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -67,6 +67,7 @@ class ListController extends Controller
* @param ObjectGroup $objectGroup
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function bills(ObjectGroup $objectGroup): JsonResponse
@@ -99,6 +100,7 @@ class ListController extends Controller
* @param ObjectGroup $objectGroup
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function piggyBanks(ObjectGroup $objectGroup): JsonResponse

View File

@@ -67,8 +67,9 @@ class ShowController extends Controller
*
* @param Request $request
*
* @codeCoverageIgnore
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(Request $request): JsonResponse
{

View File

@@ -62,6 +62,7 @@ class ListController extends Controller
* @param PiggyBank $piggyBank
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function attachments(PiggyBank $piggyBank): JsonResponse
@@ -93,6 +94,7 @@ class ListController extends Controller
* @param PiggyBank $piggyBank
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function piggyBankEvents(PiggyBank $piggyBank): JsonResponse

View File

@@ -62,6 +62,7 @@ class ShowController extends Controller
* List all of them.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -69,6 +69,7 @@ class ListController extends Controller
* @param Recurrence $recurrence
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, Recurrence $recurrence): JsonResponse

View File

@@ -63,6 +63,7 @@ class ShowController extends Controller
* List all of them.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -66,6 +66,7 @@ class ShowController extends Controller
* List all of them.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -65,6 +65,7 @@ class ListController extends Controller
* @param RuleGroup $group
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function rules(RuleGroup $group): JsonResponse

View File

@@ -66,6 +66,7 @@ class ShowController extends Controller
* List all of them.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -77,7 +77,6 @@ class TriggerController extends Controller
*/
public function testGroup(TestRequest $request, RuleGroup $group): JsonResponse
{
/** @var Collection $rules */
$rules = $this->ruleGroupRepository->getActiveRules($group);
if (0 === $rules->count()) {
throw new FireflyException('200023: No rules in this rule group.');
@@ -132,7 +131,6 @@ class TriggerController extends Controller
*/
public function triggerGroup(TriggerRequest $request, RuleGroup $group): JsonResponse
{
/** @var Collection $rules */
$rules = $this->ruleGroupRepository->getActiveRules($group);
if (0 === $rules->count()) {
throw new FireflyException('200023: No rules in this rule group.');

View File

@@ -71,6 +71,7 @@ class ListController extends Controller
* @param Tag $tag
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function attachments(Tag $tag): JsonResponse
@@ -103,6 +104,7 @@ class ListController extends Controller
* @param Tag $tag
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, Tag $tag): JsonResponse

View File

@@ -66,6 +66,7 @@ class ShowController extends Controller
* List all of them.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -69,6 +69,7 @@ class ListController extends Controller
* @param TransactionGroup $transactionGroup
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function attachments(TransactionGroup $transactionGroup): JsonResponse
@@ -101,6 +102,7 @@ class ListController extends Controller
* @param TransactionGroup $transactionGroup
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function piggyBankEvents(TransactionGroup $transactionGroup): JsonResponse
@@ -136,6 +138,7 @@ class ListController extends Controller
* @param TransactionJournal $transactionJournal
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactionLinks(TransactionJournal $transactionJournal): JsonResponse

View File

@@ -50,6 +50,7 @@ class ShowController extends Controller
* @param Request $request
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(Request $request): JsonResponse

View File

@@ -103,7 +103,9 @@ class StoreController extends Controller
throw new ValidationException($validator,0, $e);
}
app('preferences')->mark();
event(new StoredTransactionGroup($transactionGroup, $data['apply_rules'] ?? true));
$applyRules = $data['apply_rules'] ?? true;
$fireWebhooks = $data['fire_webhooks'] ?? true;
event(new StoredTransactionGroup($transactionGroup, $applyRules, $fireWebhooks));
$manager = $this->getManager();
/** @var User $admin */

View File

@@ -80,7 +80,9 @@ class UpdateController extends Controller
$manager = $this->getManager();
app('preferences')->mark();
event(new UpdatedTransactionGroup($transactionGroup, $data['apply_rules'] ?? true));
$applyRules = $data['apply_rules'] ?? true;
$fireWebhooks = $data['fire_webhooks'] ?? true;
event(new UpdatedTransactionGroup($transactionGroup, $applyRules, $fireWebhooks));
/** @var User $admin */
$admin = auth()->user();

View File

@@ -93,6 +93,7 @@ class ListController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function accounts(Request $request, TransactionCurrency $currency): JsonResponse
@@ -143,6 +144,7 @@ class ListController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function availableBudgets(TransactionCurrency $currency): JsonResponse
@@ -178,6 +180,7 @@ class ListController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function bills(TransactionCurrency $currency): JsonResponse
@@ -218,6 +221,7 @@ class ListController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function budgetLimits(TransactionCurrency $currency): JsonResponse
@@ -249,6 +253,7 @@ class ListController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function recurrences(TransactionCurrency $currency): JsonResponse
@@ -299,6 +304,7 @@ class ListController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function rules(TransactionCurrency $currency): JsonResponse
@@ -350,6 +356,7 @@ class ListController extends Controller
* @param TransactionCurrency $currency
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, TransactionCurrency $currency): JsonResponse

View File

@@ -68,6 +68,7 @@ class ShowController extends Controller
* Display a listing of the resource.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -68,6 +68,7 @@ class ShowController extends Controller
* @param Request $request
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(Request $request): JsonResponse

View File

@@ -78,8 +78,8 @@ class StoreController extends Controller
{
$manager = $this->getManager();
$data = $request->getAll();
$inward = $this->journalRepository->findNull($data['inward_id'] ?? 0);
$outward = $this->journalRepository->findNull($data['outward_id'] ?? 0);
$inward = $this->journalRepository->find($data['inward_id'] ?? 0);
$outward = $this->journalRepository->find($data['outward_id'] ?? 0);
if (null === $inward || null === $outward) {
throw new FireflyException('200024: Source or destination does not exist.');
}

View File

@@ -26,7 +26,6 @@ namespace FireflyIII\Api\V1\Controllers\Models\TransactionLink;
use FireflyIII\Api\V1\Controllers\Controller;
use FireflyIII\Api\V1\Requests\Models\TransactionLink\UpdateRequest;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Models\TransactionJournalLink;
use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
use FireflyIII\Repositories\LinkType\LinkTypeRepositoryInterface;
@@ -71,9 +70,6 @@ class UpdateController extends Controller
* @param TransactionJournalLink $journalLink
*
* @return JsonResponse
* @throws FireflyException
*
* TODO generates query exception when link exists.
*/
public function update(UpdateRequest $request, TransactionJournalLink $journalLink): JsonResponse
{

View File

@@ -75,6 +75,7 @@ class ListController extends Controller
* @param LinkType $linkType
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function transactions(Request $request, LinkType $linkType): JsonResponse

View File

@@ -72,6 +72,7 @@ class ShowController extends Controller
* List all of them.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -42,6 +42,7 @@ class TransactionController extends Controller
* @param SearchInterface $searcher
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
*/
public function search(Request $request, SearchInterface $searcher): JsonResponse
{

View File

@@ -175,7 +175,7 @@ class BasicController extends Controller
// format amounts:
$keys = array_keys($sums);
foreach ($keys as $currencyId) {
$currency = $this->currencyRepos->findNull($currencyId);
$currency = $this->currencyRepos->find($currencyId);
if (null === $currency) {
continue;
}
@@ -239,7 +239,7 @@ class BasicController extends Controller
$return = [];
foreach ($paidAmount as $currencyId => $amount) {
$amount = bcmul($amount, '-1');
$currency = $this->currencyRepos->findNull((int)$currencyId);
$currency = $this->currencyRepos->find((int)$currencyId);
if (null === $currency) {
continue;
}
@@ -259,7 +259,7 @@ class BasicController extends Controller
foreach ($unpaidAmount as $currencyId => $amount) {
$amount = bcmul($amount, '-1');
$currency = $this->currencyRepos->findNull((int)$currencyId);
$currency = $this->currencyRepos->find((int)$currencyId);
if (null === $currency) {
continue;
}

View File

@@ -51,7 +51,6 @@ class CronController extends Controller
$return = [];
$return['recurring_transactions'] = $this->runRecurring($config['force'], $config['date']);
$return['auto_budgets'] = $this->runAutoBudget($config['force'], $config['date']);
$return['telemetry'] = $this->runTelemetry($config['force'], $config['date']);
return response()->json($return);
}

View File

@@ -90,6 +90,7 @@ class UserController extends Controller
* Display a listing of the resource.
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -27,6 +27,7 @@ namespace FireflyIII\Api\V1\Controllers\User;
use FireflyIII\Api\V1\Controllers\Controller;
use FireflyIII\Api\V1\Requests\User\PreferenceStoreRequest;
use FireflyIII\Api\V1\Requests\User\PreferenceUpdateRequest;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Models\Preference;
use FireflyIII\Transformers\PreferenceTransformer;
use Illuminate\Http\JsonResponse;
@@ -47,12 +48,12 @@ class PreferencesController extends Controller
* List all of them.
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse
{
// TODO via repository.
$collection = auth()->user()->preferences()->get();
$collection = app('preferences')->all();
$manager = $this->getManager();
$count = $collection->count();
$pageSize = (int)app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;
@@ -115,8 +116,10 @@ class PreferencesController extends Controller
/**
* @param PreferenceUpdateRequest $request
* @param Preference $preference
*
* @return JsonResponse
* @throws FireflyException
*/
public function update(PreferenceUpdateRequest $request, Preference $preference): JsonResponse
{

View File

@@ -62,9 +62,11 @@ class AttemptController extends Controller
}
/**
* @param Webhook $webhook
* @param Webhook $webhook
* @param WebhookMessage $message
*
* @return JsonResponse
* @throws FireflyException
*/
public function index(Webhook $webhook, WebhookMessage $message): JsonResponse
{

View File

@@ -74,9 +74,12 @@ class DestroyController extends Controller
/**
* Remove the specified resource from storage.
*
* @param Webhook $webhook
* @param Webhook $webhook
* @param WebhookMessage $message
* @param WebhookAttempt $attempt
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function destroyAttempt(Webhook $webhook, WebhookMessage $message, WebhookAttempt $attempt): JsonResponse
@@ -97,9 +100,11 @@ class DestroyController extends Controller
/**
* Remove the specified resource from storage.
*
* @param Webhook $webhook
* @param Webhook $webhook
* @param WebhookMessage $message
*
* @return JsonResponse
* @throws FireflyException
* @codeCoverageIgnore
*/
public function destroyMessage(Webhook $webhook, WebhookMessage $message): JsonResponse

View File

@@ -61,6 +61,7 @@ class MessageController extends Controller
* @param Webhook $webhook
*
* @return JsonResponse
* @throws FireflyException
*/
public function index(Webhook $webhook): JsonResponse
{

View File

@@ -62,6 +62,7 @@ class ShowController extends Controller
* Display a listing of the webhooks of the user.
*
* @return JsonResponse
* @throws \FireflyIII\Exceptions\FireflyException
* @codeCoverageIgnore
*/
public function index(): JsonResponse

View File

@@ -73,6 +73,6 @@ class SubmitController extends Controller
SendWebhookMessage::dispatch($message)->afterResponse();
}
return response()->json([], 200);
return response()->json([]);
}
}

View File

@@ -1,4 +1,25 @@
<?php
/*
* MoveTransactionsRequest.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests\Data\Bulk;
@@ -42,7 +63,7 @@ class MoveTransactionsRequest extends FormRequest
* Configure the validator instance with special rules for after the basic validation rules.
*
* @param Validator $validator
* TODO duplicate code.
* See reference nr. 74
*
* @return void
*/
@@ -55,8 +76,8 @@ class MoveTransactionsRequest extends FormRequest
if (array_key_exists('original_account', $data) && array_key_exists('destination_account', $data)) {
$repository = app(AccountRepositoryInterface::class);
$repository->setUser(auth()->user());
$original = $repository->findNull((int)$data['original_account']);
$destination = $repository->findNull((int)$data['destination_account']);
$original = $repository->find((int)$data['original_account']);
$destination = $repository->find((int)$data['destination_account']);
if ($original->accountType->type !== $destination->accountType->type) {
$validator->errors()->add('title', (string)trans('validation.same_account_type'));
@@ -76,8 +97,6 @@ class MoveTransactionsRequest extends FormRequest
}
if ($originalCurrency->code !== $destinationCurrency->code) {
$validator->errors()->add('title', (string)trans('validation.same_account_currency'));
return;
}
}
}

View File

@@ -0,0 +1,86 @@
<?php
/*
* TransactionRequest.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests\Data\Bulk;
use FireflyIII\Enums\ClauseType;
use FireflyIII\Rules\IsValidBulkClause;
use FireflyIII\Support\Request\ChecksLogin;
use FireflyIII\Support\Request\ConvertsDataTypes;
use FireflyIII\Validation\Api\Data\Bulk\ValidatesBulkTransactionQuery;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Validator;
use JsonException;
use Log;
/**
* Class TransactionRequest
*/
class TransactionRequest extends FormRequest
{
use ChecksLogin, ConvertsDataTypes, ValidatesBulkTransactionQuery;
/**
* @return array
*/
public function getAll(): array
{
$data = [];
try {
$data = [
'query' => json_decode($this->get('query'), true, 8, JSON_THROW_ON_ERROR),
];
} catch (JsonException $e) {
// dont really care. the validation should catch invalid json.
Log::error($e->getMessage());
}
return $data;
}
/**
* @return string[]
*/
public function rules(): array
{
return [
'query' => ['required', 'min:1', 'max:255', 'json', new IsValidBulkClause(ClauseType::TRANSACTION)],
];
}
/**
* @param Validator $validator
*
* @return void
*/
public function withValidator(Validator $validator): void
{
$validator->after(
function (Validator $validator) {
// validate transaction query data.
$this->validateTransactionQuery($validator);
}
);
}
}

View File

@@ -53,7 +53,7 @@ class ExportRequest extends FormRequest
foreach ($parts as $part) {
$accountId = (int)$part;
if (0 !== $accountId) {
$account = $repository->findNull($accountId);
$account = $repository->find($accountId);
if (null !== $account && AccountType::ASSET === $account->accountType->type) {
$accounts->push($account);
}

View File

@@ -95,7 +95,7 @@ class GenericRequest extends FormRequest
if (is_array($array)) {
foreach ($array as $accountId) {
$accountId = (int)$accountId;
$account = $repository->findNull($accountId);
$account = $repository->find($accountId);
if (null !== $account) {
$this->accounts->push($account);
}
@@ -159,7 +159,7 @@ class GenericRequest extends FormRequest
if (is_array($array)) {
foreach ($array as $budgetId) {
$budgetId = (int)$budgetId;
$budget = $repository->findNull($budgetId);
$budget = $repository->find($budgetId);
if (null !== $budgetId) {
$this->budgets->push($budget);
}
@@ -191,7 +191,7 @@ class GenericRequest extends FormRequest
if (is_array($array)) {
foreach ($array as $categoryId) {
$categoryId = (int)$categoryId;
$category = $repository->findNull($categoryId);
$category = $repository->find($categoryId);
if (null !== $categoryId) {
$this->categories->push($category);
}
@@ -281,7 +281,7 @@ class GenericRequest extends FormRequest
if (is_array($array)) {
foreach ($array as $tagId) {
$tagId = (int)$tagId;
$tag = $repository->findNull($tagId);
$tag = $repository->find($tagId);
if (null !== $tagId) {
$this->tags->push($tag);
}

View File

@@ -77,13 +77,14 @@ class StoreRequest extends FormRequest
'interest' => $this->string('interest'),
'interest_period' => $this->string('interest_period'),
];
// append Location information.
// append location information.
$data = $this->appendLocationData($data, null);
if ('liability' === $data['account_type_name'] || 'liabilities' === $data['account_type_name']) {
$data['opening_balance'] = bcmul($this->string('liability_amount'), '-1');
$data['opening_balance'] = app('steam')->negative($this->string('liability_amount'));
$data['opening_balance_date'] = $this->date('liability_start_date');
$data['account_type_name'] = $this->string('liability_type');
$data['account_type_name'] = $this->string('liability_type');
$data['liability_direction'] = $this->string('liability_direction');
$data['account_type_id'] = null;
}
@@ -118,11 +119,12 @@ class StoreRequest extends FormRequest
'account_role' => sprintf('in:%s|required_if:type,asset', $accountRoles),
'credit_card_type' => sprintf('in:%s|required_if:account_role,ccAsset', $ccPaymentTypes),
'monthly_payment_date' => 'date' . '|required_if:account_role,ccAsset|required_if:credit_card_type,monthlyFull',
'liability_type' => 'required_if:type,liability|in:loan,debt,mortgage',
'liability_amount' => 'required_if:type,liability|min:0|numeric',
'liability_start_date' => 'required_if:type,liability|date',
'interest' => 'required_if:type,liability|between:0,100|numeric',
'interest_period' => 'required_if:type,liability|in:daily,monthly,yearly',
'liability_type' => 'required_if:type,liability|required_if:type,liabilities|in:loan,debt,mortgage',
'liability_amount' => 'required_with:liability_start_date|min:0|numeric',
'liability_start_date' => 'required_with:liability_amount|date',
'liability_direction' => 'required_if:type,liability|required_if:type,liabilities|in:credit,debit',
'interest' => 'between:0,100|numeric',
'interest_period' => sprintf('in:%s', join(',', config('firefly.interest_periods'))),
'notes' => 'min:0|max:65536',
];

View File

@@ -24,6 +24,7 @@ declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests\Models\Account;
use FireflyIII\Models\Account;
use FireflyIII\Models\Location;
use FireflyIII\Rules\IsBoolean;
use FireflyIII\Rules\UniqueAccountNumber;
@@ -32,6 +33,7 @@ use FireflyIII\Support\Request\AppendsLocationData;
use FireflyIII\Support\Request\ChecksLogin;
use FireflyIII\Support\Request\ConvertsDataTypes;
use Illuminate\Foundation\Http\FormRequest;
use Log;
/**
* Class UpdateRequest
@@ -68,15 +70,23 @@ class UpdateRequest extends FormRequest
'order' => ['order', 'integer'],
'currency_id' => ['currency_id', 'integer'],
'currency_code' => ['currency_code', 'string'],
'liability_direction' => ['liability_direction', 'string'],
'liability_amount' => ['liability_amount', 'string'],
'liability_start_date' => ['liability_start_date', 'date'],
];
$data = $this->getAllData($fields);
$data = $this->appendLocationData($data, null);
/** @var Account $account */
$account = $this->route()->parameter('account');
$data = $this->getAllData($fields);
$data = $this->appendLocationData($data, null);
$valid = config('firefly.valid_liabilities');
if (array_key_exists('liability_amount', $data) && in_array($account->accountType->type, $valid, true)) {
$data['opening_balance'] = app('steam')->negative($data['liability_amount']);
Log::debug(sprintf('Opening balance for liability is "%s".', $data['opening_balance']));
}
if (array_key_exists('account_type_name', $data) && 'liability' === $data['account_type_name']) {
$data['opening_balance'] = bcmul($this->string('liability_amount'), '-1');
$data['opening_balance_date'] = $this->date('liability_start_date');
$data['account_type_name'] = $this->string('liability_type');
$data['account_type_id'] = null;
if (array_key_exists('liability_start_date', $data) && in_array($account->accountType->type, $valid, true)) {
$data['opening_balance_date'] = $data['liability_start_date'];
Log::debug(sprintf('Opening balance date for liability is "%s".', $data['opening_balance_date']));
}
return $data;
@@ -112,6 +122,7 @@ class UpdateRequest extends FormRequest
'credit_card_type' => sprintf('in:%s|nullable|required_if:account_role,ccAsset', $ccPaymentTypes),
'monthly_payment_date' => 'date' . '|nullable|required_if:account_role,ccAsset|required_if:credit_card_type,monthlyFull',
'liability_type' => 'required_if:type,liability|in:loan,debt,mortgage',
'liability_direction' => 'required_if:type,liability|in:credit,debit',
'interest' => 'required_if:type,liability|between:0,100|numeric',
'interest_period' => 'required_if:type,liability|in:daily,monthly,yearly',
'notes' => 'min:0|max:65536',

View File

@@ -55,6 +55,8 @@ class StoreRequest extends FormRequest
'currency_id' => ['currency_id', 'integer'],
'currency_code' => ['currency_code', 'string'],
'date' => ['date', 'date'],
'end_date' => ['end_date', 'date'],
'extension_date' => ['extension_date', 'date'],
'repeat_freq' => ['repeat_freq', 'string'],
'skip' => ['skip', 'integer'],
'active' => ['active', 'boolean'],
@@ -75,16 +77,18 @@ class StoreRequest extends FormRequest
public function rules(): array
{
return [
'name' => 'between:1,255|uniqueObjectForUser:bills,name',
'amount_min' => 'numeric|gt:0',
'amount_max' => 'numeric|gt:0',
'currency_id' => 'numeric|exists:transaction_currencies,id',
'currency_code' => 'min:3|max:3|exists:transaction_currencies,code',
'date' => 'date',
'repeat_freq' => 'in:weekly,monthly,quarterly,half-year,yearly',
'skip' => 'between:0,31',
'active' => [new IsBoolean],
'notes' => 'between:1,65536',
'name' => 'between:1,255|uniqueObjectForUser:bills,name',
'amount_min' => 'numeric|gt:0|required',
'amount_max' => 'numeric|gt:0|required',
'currency_id' => 'numeric|exists:transaction_currencies,id',
'currency_code' => 'min:3|max:3|exists:transaction_currencies,code',
'date' => 'date|required',
'end_date' => 'date|after:date',
'extension_date' => 'date|after:date',
'repeat_freq' => 'in:weekly,monthly,quarterly,half-year,yearly|required',
'skip' => 'between:0,31',
'active' => [new IsBoolean],
'notes' => 'between:1,65536',
];
}

View File

@@ -53,6 +53,8 @@ class UpdateRequest extends FormRequest
'currency_id' => ['currency_id', 'integer'],
'currency_code' => ['currency_code', 'string'],
'date' => ['date', 'date'],
'end_date' => ['end_date', 'date'],
'extension_date' => ['extension_date', 'date'],
'repeat_freq' => ['repeat_freq', 'string'],
'skip' => ['skip', 'integer'],
'active' => ['active', 'boolean'],
@@ -75,16 +77,18 @@ class UpdateRequest extends FormRequest
$bill = $this->route()->parameter('bill');
return [
'name' => sprintf('between:1,255|uniqueObjectForUser:bills,name,%d', $bill->id),
'amount_min' => 'numeric|gt:0',
'amount_max' => 'numeric|gt:0',
'currency_id' => 'numeric|exists:transaction_currencies,id',
'currency_code' => 'min:3|max:3|exists:transaction_currencies,code',
'date' => 'date',
'repeat_freq' => 'in:weekly,monthly,quarterly,half-year,yearly',
'skip' => 'between:0,31',
'active' => [new IsBoolean],
'notes' => 'between:1,65536',
'name' => sprintf('between:1,255|uniqueObjectForUser:bills,name,%d', $bill->id),
'amount_min' => 'numeric|gt:0',
'amount_max' => 'numeric|gt:0',
'currency_id' => 'numeric|exists:transaction_currencies,id',
'currency_code' => 'min:3|max:3|exists:transaction_currencies,code',
'date' => 'date',
'end_date' => 'date|after:date',
'extension_date' => 'date|after:date',
'repeat_freq' => 'in:weekly,monthly,quarterly,half-year,yearly',
'skip' => 'between:0,31',
'active' => [new IsBoolean],
'notes' => 'between:1,65536',
];
}

View File

@@ -76,7 +76,7 @@ class UpdateRequest extends FormRequest
* Configure the validator instance with special rules for after the basic validation rules.
*
* @param Validator $validator
* TODO duplicate code.
* See reference nr. 72
*
* @return void
*/

View File

@@ -135,8 +135,6 @@ class StoreRequest extends FormRequest
*/
public function rules(): array
{
$today = Carbon::now()->addDay();
return [
'type' => 'required|in:withdrawal,transfer,deposit',
'title' => 'required|between:1,255|uniqueObjectForUser:recurrences,title',

View File

@@ -109,7 +109,7 @@ class UpdateRequest extends FormRequest
}
$return[] = $current;
}
if (0 === count($return)) {
if (empty($return)) {
return null;
}

View File

@@ -167,7 +167,7 @@ class StoreRequest extends FormRequest
$data = $validator->getData();
$triggers = $data['triggers'] ?? [];
// need at least one trigger
if (!is_countable($triggers) || 0 === count($triggers)) {
if (!is_countable($triggers) || empty($triggers)) {
$validator->errors()->add('title', (string)trans('validation.at_least_one_trigger'));
}
}
@@ -182,7 +182,7 @@ class StoreRequest extends FormRequest
$data = $validator->getData();
$actions = $data['actions'] ?? [];
// need at least one trigger
if (!is_countable($actions) || 0 === count($actions)) {
if (!is_countable($actions) || empty($actions)) {
$validator->errors()->add('title', (string)trans('validation.at_least_one_action'));
}
}

View File

@@ -180,7 +180,7 @@ class UpdateRequest extends FormRequest
$data = $validator->getData();
$triggers = $data['triggers'] ?? null;
// need at least one trigger
if (is_array($triggers) && 0 === count($triggers)) {
if (is_array($triggers) && empty($triggers)) {
$validator->errors()->add('title', (string)trans('validation.at_least_one_trigger'));
}
}
@@ -195,7 +195,7 @@ class UpdateRequest extends FormRequest
$data = $validator->getData();
$actions = $data['actions'] ?? null;
// need at least one action
if (is_array($actions) && 0 === count($actions)) {
if (is_array($actions) && empty($actions)) {
$validator->errors()->add('title', (string)trans('validation.at_least_one_action'));
}
}

View File

@@ -51,9 +51,8 @@ class StoreRequest extends FormRequest
'description' => $this->string('description'),
'has_location' => true,
];
$data = $this->appendLocationData($data, null);
return $data;
return $this->appendLocationData($data, null);
}
/**

View File

@@ -53,9 +53,8 @@ class UpdateRequest extends FormRequest
'description' => ['description', 'string'],
];
$data = $this->getAllData($fields);
$data = $this->appendLocationData($data, null);
return $data;
return $this->appendLocationData($data, null);
}
/**
@@ -66,7 +65,7 @@ class UpdateRequest extends FormRequest
public function rules(): array
{
$tag = $this->route()->parameter('tagOrId');
// TODO is uniqueObjectForUser not obsolete?
// See reference nr. 73
$rules = [
'tag' => 'min:1|uniqueObjectForUser:tags,tag,' . $tag->id,
'description' => 'min:1|nullable',

View File

@@ -53,15 +53,14 @@ class StoreRequest extends FormRequest
public function getAll(): array
{
Log::debug('get all data in TransactionStoreRequest');
$data = [
return [
'group_title' => $this->string('group_title'),
'error_if_duplicate_hash' => $this->boolean('error_if_duplicate_hash'),
'apply_rules' => $this->boolean('apply_rules', true),
'fire_webhooks' => $this->boolean('fire_webhooks', true),
'transactions' => $this->getTransactionData(),
];
// TODO location
return $data;
// See reference nr. 71
}
/**

View File

@@ -129,6 +129,9 @@ class UpdateRequest extends FormRequest
if ($this->has('apply_rules')) {
$data['apply_rules'] = $this->boolean('apply_rules', true);
}
if ($this->has('fire_webhooks')) {
$data['fire_webhooks'] = $this->boolean('fire_webhooks', true);
}
if ($this->has('group_title')) {
$data['group_title'] = $this->string('group_title');
}
@@ -366,7 +369,7 @@ class UpdateRequest extends FormRequest
$this->validateJournalIds($validator, $transactionGroup);
// all transaction types must be equal:
$this->validateTransactionTypesForUpdate($validator, $transactionGroup);
$this->validateTransactionTypesForUpdate($validator);
// validate source/destination is equal, depending on the transaction journal type.
$this->validateEqualAccountsForUpdate($validator, $transactionGroup);

View File

@@ -72,8 +72,8 @@ class StoreRequest extends FormRequest
{
return [
'name' => 'required|between:1,255|unique:transaction_currencies,name',
'code' => 'required|between:3,3|unique:transaction_currencies,code',
'symbol' => 'required|between:1,8|unique:transaction_currencies,symbol',
'code' => 'required|between:3,51|unique:transaction_currencies,code',
'symbol' => 'required|between:1,51|unique:transaction_currencies,symbol',
'decimal_places' => 'between:0,20|numeric|min:0|max:20',
'enabled' => [new IsBoolean()],
'default' => [new IsBoolean()],

View File

@@ -54,10 +54,8 @@ class UpdateRequest extends FormRequest
'enabled' => ['enabled', 'boolean'],
];
$return = $this->getAllData($fields);
return $return;
return $this->getAllData($fields);
// return $return;
}
/**
@@ -71,8 +69,8 @@ class UpdateRequest extends FormRequest
return [
'name' => sprintf('between:1,255|unique:transaction_currencies,name,%d', $currency->id),
'code' => sprintf('between:3,3|unique:transaction_currencies,code,%d', $currency->id),
'symbol' => sprintf('between:1,8|unique:transaction_currencies,symbol,%d', $currency->id),
'code' => sprintf('between:3,51|unique:transaction_currencies,code,%d', $currency->id),
'symbol' => sprintf('between:1,51|unique:transaction_currencies,symbol,%d', $currency->id),
'decimal_places' => 'between:0,20|numeric|min:0|max:20',
'enabled' => [new IsBoolean()],
'default' => [new IsBoolean()],

View File

@@ -104,8 +104,8 @@ class StoreRequest extends FormRequest
$data = $validator->getData();
$inwardId = (int)($data['inward_id'] ?? 0);
$outwardId = (int)($data['outward_id'] ?? 0);
$inward = $journalRepos->findNull($inwardId);
$outward = $journalRepos->findNull($outwardId);
$inward = $journalRepos->find($inwardId);
$outward = $journalRepos->find($outwardId);
if (null === $inward) {
$validator->errors()->add('inward_id', 'Invalid inward ID.');

View File

@@ -104,8 +104,8 @@ class UpdateRequest extends FormRequest
$inwardId = $data['inward_id'] ?? $existing->source_id;
$outwardId = $data['outward_id'] ?? $existing->destination_id;
$inward = $journalRepos->findNull((int)$inwardId);
$outward = $journalRepos->findNull((int)$outwardId);
$inward = $journalRepos->find((int)$inwardId);
$outward = $journalRepos->find((int)$outwardId);
if (null === $inward) {
$inward = $existing->source;
}

View File

@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);
/*
* PreferenceStoreRequest.php
* PreferenceUpdateRequest.php
* Copyright (c) 2021 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
@@ -20,6 +20,8 @@ declare(strict_types=1);
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests\User;
use FireflyIII\Support\Request\ChecksLogin;

View File

@@ -96,6 +96,7 @@ class CorrectOpeningBalanceCurrencies extends Command
* @param TransactionJournal $journal
*
* @return int
* @throws JsonException
*/
private function correctJournal(TransactionJournal $journal): int
{
@@ -146,7 +147,6 @@ class CorrectOpeningBalanceCurrencies extends Command
* @param Account $account
*
* @return TransactionCurrency
* @throws JsonException
*/
private function getCurrency(Account $account): TransactionCurrency
{

View File

@@ -63,7 +63,7 @@ class CreateAccessTokens extends Command
$users = $repository->all();
/** @var User $user */
foreach ($users as $user) {
$pref = app('preferences')->getForUser($user, 'access_token', null);
$pref = app('preferences')->getForUser($user, 'access_token');
if (null === $pref) {
$token = $user->generateAccessToken();
app('preferences')->setForUser($user, 'access_token', $token);

View File

@@ -57,7 +57,6 @@ class DeleteZeroAmount extends Command
$start = microtime(true);
$set = Transaction::where('amount', 0)->get(['transaction_journal_id'])->pluck('transaction_journal_id')->toArray();
$set = array_unique($set);
/** @var Collection $journals */
$journals = TransactionJournal::whereIn('id', $set)->get();
/** @var TransactionJournal $journal */
foreach ($journals as $journal) {

View File

@@ -67,14 +67,12 @@ class EnableCurrencies extends Command
}
// get all from journals:
/** @var Collection $journals */
$journals = TransactionJournal::groupBy('transaction_currency_id')->get(['transaction_currency_id']);
foreach ($journals as $entry) {
$found[] = (int)$entry->transaction_currency_id;
}
// get all from transactions
/** @var Collection $transactions */
$transactions = Transaction::groupBy('transaction_currency_id', 'foreign_currency_id')->get(['transaction_currency_id', 'foreign_currency_id']);
foreach ($transactions as $entry) {
$found[] = (int)$entry->transaction_currency_id;
@@ -82,7 +80,6 @@ class EnableCurrencies extends Command
}
// get all from budget limits
/** @var Collection $limits */
$limits = BudgetLimit::groupBy('transaction_currency_id')->get(['transaction_currency_id']);
foreach ($limits as $entry) {
$found[] = (int)$entry->transaction_currency_id;

View File

@@ -56,12 +56,12 @@ class FixFrontpageAccounts extends Command
*/
public function handle(): int
{
$start = microtime(true);
$start = microtime(true);
$users = User::get();
/** @var User $user */
foreach ($users as $user) {
$preference = Preferences::getForUser($user, 'frontPageAccounts', null);
$preference = Preferences::getForUser($user, 'frontPageAccounts');
if (null !== $preference) {
$this->fixPreference($preference);
}
@@ -88,16 +88,12 @@ class FixFrontpageAccounts extends Command
if (is_array($data)) {
/** @var string $accountId */
foreach ($data as $accountId) {
$accountId = (int)$accountId;
$account = $repository->findNull($accountId);
if (null !== $account) {
if (
in_array($account->accountType->type, [AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE], true)
&& true === $account->active
) {
$fixed[] = $account->id;
continue;
}
$accountIdInt = (int)$accountId;
$account = $repository->find($accountIdInt);
if (null !== $account
&& in_array($account->accountType->type, [AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE], true)
&& true === $account->active) {
$fixed[] = $account->id;
}
}
}

View File

@@ -48,9 +48,6 @@ class FixPiggies extends Command
*/
protected $signature = 'firefly-iii:fix-piggies';
/** @var int */
private $count;
/**
* Execute the console command.
*
@@ -58,8 +55,8 @@ class FixPiggies extends Command
*/
public function handle(): int
{
$this->count = 0;
$start = microtime(true);
$count = 0;
$start = microtime(true);
$set = PiggyBankEvent::with(['PiggyBank', 'TransactionJournal', 'TransactionJournal.TransactionType'])->get();
/** @var PiggyBankEvent $event */
@@ -74,7 +71,7 @@ class FixPiggies extends Command
if (null === $journal) {
$event->transaction_journal_id = null;
$event->save();
$this->count++;
$count++;
continue;
}
@@ -84,14 +81,14 @@ class FixPiggies extends Command
$event->transaction_journal_id = null;
$event->save();
$this->line(sprintf('Piggy bank #%d was referenced by an invalid event. This has been fixed.', $event->piggy_bank_id));
$this->count++;
$count++;
}
}
if (0 === $this->count) {
if (0 === $count) {
$this->line('All piggy bank events are correct.');
}
if (0 !== $this->count) {
$this->line(sprintf('Fixed %d piggy bank event(s).', $this->count));
if (0 !== $count) {
$this->line(sprintf('Fixed %d piggy bank event(s).', $count));
}
$end = round(microtime(true) - $start, 2);

Some files were not shown because too many files have changed in this diff Show More