Remove no longer needed 'monthPeriodStartDay' config property

This commit is contained in:
2019-09-28 21:48:25 +02:00
parent e052a5a98a
commit da86f5c750
3 changed files with 1 additions and 34 deletions

View File

@@ -15,7 +15,6 @@ public class FinancerConfig {
private String serverUrl; private String serverUrl;
private String dateFormat; private String dateFormat;
private String version; private String version;
private Integer monthPeriodStartDay;
private String currencyCode; private String currencyCode;
private Currency currency; private Currency currency;
@@ -43,34 +42,6 @@ public class FinancerConfig {
this.version = version; this.version = version;
} }
/**
* The day of month that indicates a start of an expense period. Valid values range from 1-28. There is no special
* handling for months with more days.
* If the value is 15 for example an expense period is always from the 15th of the current month to the 15th of the
* next month:
* <ul>
* <li>15.01.2019 - 15.02.2019</li>
* <li>15.02.2019 - 15.03.2019</li>
* <li>...</li>
* </ul>
*
* @return the day of month indicating the start of an expense period
*/
public Integer getMonthPeriodStartDay() {
return monthPeriodStartDay;
}
public void setMonthPeriodStartDay(Integer monthPeriodStartDay) {
if (monthPeriodStartDay == null) {
throw new IllegalArgumentException("Parameter 'financer.monthPeriodStartDay' is not set!");
}
else if (monthPeriodStartDay < 1 || monthPeriodStartDay > 28) {
throw new IllegalArgumentException("Parameter 'financer.monthPeriodStartDay' is out of range! Valid range from 1-28");
}
this.monthPeriodStartDay = monthPeriodStartDay;
}
public void setCurrencyCode(String currencyCode) { public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode; this.currencyCode = currencyCode;

View File

@@ -1,2 +1 @@
financer.serverUrl=http://localhost:8080/financer-server-nm/ financer.serverUrl=http://localhost:8080/financer-server-nm/
financer.monthPeriodStartDay=10

View File

@@ -29,9 +29,6 @@ financer.serverUrl=http://localhost:8080/financer-server/
spring.messages.basename=i18n/message spring.messages.basename=i18n/message
# The day of month indicating the start of an expense period. Valid values range from 1-28
financer.monthPeriodStartDay=15
# The currency code to use for displaying money values. Note that the currency is only used for # The currency code to use for displaying money values. Note that the currency is only used for
# displaying. # displaying.
# Possible values are ISO-4271 currency codes. # Possible values are ISO-4271 currency codes.