Commit Graph

222 Commits

Author SHA1 Message Date
44af29c7a7 Select active Spring profile based on Maven profile
build-war uses the Spring postgres profile, default is hsqldb and dev
2019-03-16 22:52:13 +01:00
57643f5b5b Various stuff
build-war maven profile now builds a tomcat parallel deployment
compatible war file. Fix test data and integrations tests. Add a bunch
of accounts to the init data.
2019-03-16 22:27:02 +01:00
aa92718e74 Add PostgreSQL support
Therefore add migration scripts and default connection settings. Also
add a draft chapter in the documentation about how to setup the database
. Make HSQLDB the default for integration tests.
2019-03-16 00:04:13 +01:00
e9774b3b35 Add various delete methods
Add delete methods for transactions and recurring transactions. Also add
 open/close methods for accounts. Add unit tests for all new methods.
 Also JAXB is no longer a provided dependency for build-war.
2019-03-15 20:24:47 +01:00
ab7fb15254 Add integration test for RecurringTransactionController.getAll()
Also adjust .gitignore to ignore financer.log* because of rotation
2019-03-13 22:43:21 +01:00
a8d4d6682c Enable file logging and add .gitignore file 2019-03-12 22:36:09 +01:00
bae50081c2 Make financer deployable on a standalone servlet container 2019-03-12 22:28:01 +01:00
07a454e227 Various cleanups according to code check 2019-03-11 22:11:24 +01:00
0d83ea75b2 Add build-war maven profile
The profile builds a .war file with no embedded tomcat, so it can be
deployed on a standalone tomcat instance
2019-03-11 21:58:33 +01:00
a27d26596b Add basic logging
Add basic logging of exceptions, warnings, info and debug statements.
The implementation used is Logback.
2019-03-11 21:25:22 +01:00
a0884e1f21 Fix NPE in RecurringTransactionController.createTransaction
As the amount parameter is optional it may be null - use the appropriate
Optional method ofNullable()
2019-03-11 20:32:43 +01:00
297d7a80fd Add basic mail reminder for recurring transactions
Also add some basic accounts to the DB init. Further add dependency to JAXB as it was missing.
Add an optional parameter amount to the recurringTransactions/createTransaction method that can be used to overwrite the amount of the recurring transaction.
2019-03-10 23:13:55 +01:00
24e9dcda35 Adjust reference from transaction to recurring transaction
- Make the reference nullable
- Add the reference when a transaction gets created by a recurring transaction
- Add overload method createTransaction as the reference is optional
- Fix integration tests name so they get picked up by surefire
- Add a integration test for the recurringTransaction -> transaction creation
2019-03-08 19:37:06 +01:00
b6318c65d4 Various stuff all over the tree again
- RecurringTransactions can now be used to create Transactions
- Improve JavaDoc
- Add unit tests and fix various small bugs because of them
- Add integration test
2019-03-07 23:48:47 +01:00
449e8fb216 Add implementation to create a recurring transaction
- Therefore extracted the date format into the financer config
- Simplify date testing, also for plain transaction service
- Add test for duePast MONTHLY SAME_DAY
2019-03-05 23:13:26 +01:00
35902afe43 Various stuff all over the tree
- Increase Java version to 1.9
- Add commons-collection and Jollyday dependencies
- Add JavaDoc plugin
- Add country and state configuration for Jollyday library
- Add WIP implementation of the recurring transaction feature
- Improve JavaDoc
- Use Java 8 date API
- Reformatting
- Add special Flyway migration version for test data
- Add and improve unit tests
2019-03-01 20:39:31 +01:00
fe5380a865 Fix broken test (LIABILITY->EXPENSE is now valid) and adjust mapping of RecurringTransaction in Transaction to better reflect the actual relationship 2019-02-18 21:22:02 +01:00
a02a5635a0 Cleanup integration test properties 2019-02-18 21:17:23 +01:00
f486570920 Re-add EXPENSE as a valid booking target of a LIABILITY account (e.g. an instalment purchase can be handled this way) 2019-02-18 21:13:01 +01:00
d2d5d7f38a Add a basic startup test of the app 2019-02-18 21:10:13 +01:00
dfe1e08dc7 - Add reference from Transaction to the RecurringTransaction that created the transaction
- Add BANK as valid booking target of a BANK account
- Remove EXPENSE as valid booking target of a LIABILITY account
- Fix a bug in the getMultiplierFromAccount and getMultiplierToAccount methods that caused the result to always be the default case
- Adjust init SQL script to reflect the changes done
- Add a sample integration test
- Add unit tests for the RuleService
- Configure surefire plugin
- Add a profile for integration test running
2019-02-17 23:42:24 +01:00
86ccb0b52c Initial commit for financer 2019-02-15 21:30:10 +01:00