fixed validierung Buchungsperiode
This commit is contained in:
parent
430bfe3c39
commit
99b1cdff93
1 changed files with 2 additions and 2 deletions
|
|
@ -190,8 +190,8 @@ public class InvoicePlugin extends AbstractPlugin {
|
|||
LocalDate localDate = LocalDate.now();
|
||||
int year = localDate.getYear();
|
||||
// build regex....
|
||||
String regex = "(" + year + "|" + (year + 1) + ")(1[0-2]|0[1-9])";
|
||||
|
||||
String regex = "(" + year + "|" + (year + 1) + "|" + (year - 1) + ")(1[0-2]|0[1-9])";
|
||||
|
||||
if (!period.matches(regex)) {
|
||||
// throw a plugin exception - because name is missing!
|
||||
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
|
||||
|
|
|
|||
Loading…
Reference in a new issue