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