Remove no longer needed 'monthPeriodStartDay' config property
This commit is contained in:
@@ -15,7 +15,6 @@ public class FinancerConfig {
|
||||
private String serverUrl;
|
||||
private String dateFormat;
|
||||
private String version;
|
||||
private Integer monthPeriodStartDay;
|
||||
private String currencyCode;
|
||||
private Currency currency;
|
||||
|
||||
@@ -43,34 +42,6 @@ public class FinancerConfig {
|
||||
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) {
|
||||
this.currencyCode = currencyCode;
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
financer.serverUrl=http://localhost:8080/financer-server-nm/
|
||||
financer.monthPeriodStartDay=10
|
||||
@@ -29,9 +29,6 @@ financer.serverUrl=http://localhost:8080/financer-server/
|
||||
|
||||
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
|
||||
# displaying.
|
||||
# Possible values are ISO-4271 currency codes.
|
||||
|
||||
Reference in New Issue
Block a user