Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
83ab5c00
Commit
83ab5c00
authored
6 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
refactoring
parent
74626d18
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/deadlocker8/budgetmaster/repeating/RepeatingTransactionUpdater.java
+8
-10
8 additions, 10 deletions
...8/budgetmaster/repeating/RepeatingTransactionUpdater.java
with
8 additions
and
10 deletions
src/main/java/de/deadlocker8/budgetmaster/repeating/RepeatingTransactionUpdater.java
+
8
−
10
View file @
83ab5c00
...
...
@@ -13,17 +13,15 @@ import java.util.List;
@Service
public
class
RepeatingTransactionUpdater
{
@Autowired
private
TransactionRepository
transactionRepository
;
@Autowired
private
TransactionService
transactionService
;
private
final
TransactionService
transactionService
;
private
final
RepeatingOptionRepository
repeatingOptionRepository
;
@Autowired
private
RepeatingOptionRepository
repeatingOptionRepository
;
@Autowired
private
HelpersService
helpers
;
public
RepeatingTransactionUpdater
(
TransactionService
transactionService
,
RepeatingOptionRepository
repeatingOptionRepository
)
{
this
.
transactionService
=
transactionService
;
this
.
repeatingOptionRepository
=
repeatingOptionRepository
;
}
public
void
updateRepeatingTransactions
(
DateTime
now
)
{
...
...
@@ -39,7 +37,7 @@ public class RepeatingTransactionUpdater
Transaction
newTransaction
=
new
Transaction
(
transactions
.
get
(
0
));
newTransaction
.
setID
(
null
);
newTransaction
.
setDate
(
currentDate
);
transactionRepository
.
save
(
newTransaction
);
transaction
Service
.
get
Repository
()
.
save
(
newTransaction
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment