Minor bug fixes
This commit is contained in:
@@ -21,7 +21,7 @@ public class AccountStatistic {
|
||||
private long transactionCountFrom;
|
||||
private long spendingTotalTo;
|
||||
private long transactionCountTo;
|
||||
private long endBalance;
|
||||
private Long endBalance;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -75,11 +75,11 @@ public class AccountStatistic {
|
||||
this.transactionCountTo = transactionCountTo;
|
||||
}
|
||||
|
||||
public long getEndBalance() {
|
||||
public Long getEndBalance() {
|
||||
return endBalance;
|
||||
}
|
||||
|
||||
public void setEndBalance(long endBalance) {
|
||||
public void setEndBalance(Long endBalance) {
|
||||
this.endBalance = endBalance;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<properties>
|
||||
<packaging.type>jar</packaging.type>
|
||||
<activeProfiles>hsqldb,dev</activeProfiles>
|
||||
<activeProfiles>postgres,dev</activeProfiles>
|
||||
<deploymentProfile>mk</deploymentProfile>
|
||||
</properties>
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ public class RecurringTransactionController {
|
||||
final ResponseEntity<String> response = new StringTemplate().exchange(builder);
|
||||
final ResponseReason responseReason = ResponseReason.fromResponseEntity(response);
|
||||
|
||||
if (!ResponseReason.OK.equals(responseReason)) {
|
||||
if (!ResponseReason.CREATED.equals(responseReason)) {
|
||||
model.addAttribute("errorMessage", responseReason.name());
|
||||
model.addAttribute("subTitle", sub);
|
||||
ControllerUtils.addVersionAttribute(model, this.financerConfig);
|
||||
@@ -225,7 +225,7 @@ public class RecurringTransactionController {
|
||||
final ResponseEntity<String> response = new StringTemplate().exchange(builder);
|
||||
final ResponseReason responseReason = ResponseReason.fromResponseEntity(response);
|
||||
|
||||
if (!ResponseReason.OK.equals(responseReason)) {
|
||||
if (!ResponseReason.CREATED.equals(responseReason)) {
|
||||
model.addAttribute("errorMessage", responseReason.name());
|
||||
model.addAttribute("subTitle", form.getSubTitle());
|
||||
ControllerUtils.addVersionAttribute(model, this.financerConfig);
|
||||
|
||||
Reference in New Issue
Block a user