Skip to content
Snippets Groups Projects
Commit 27c123e5 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #319 - repeating end date must be after payment date

parent dd2f7006
No related branches found
No related tags found
No related merge requests found
Pipeline #173 passed
...@@ -42,6 +42,8 @@ $( document ).ready(function() { ...@@ -42,6 +42,8 @@ $( document ).ready(function() {
} }
}); });
pickerStartDate = pickerStartDate.pickadate('picker');
var pickerEndDate = $('#payment-repeating-end-date-input').pickadate({ var pickerEndDate = $('#payment-repeating-end-date-input').pickadate({
selectMonths: true, selectMonths: true,
selectYears: 100, selectYears: 100,
...@@ -71,6 +73,14 @@ $( document ).ready(function() { ...@@ -71,6 +73,14 @@ $( document ).ready(function() {
}); });
pickerEndDate = pickerEndDate.pickadate('picker'); pickerEndDate = pickerEndDate.pickadate('picker');
// picker end date
var selectedDate = pickerStartDate.get('select').obj;
if(pickerEndDate.get('select').obj < selectedDate)
{
pickerEndDate.set('select', selectedDate);
}
pickerEndDate.set('min', selectedDate);
} }
if($('#payment-amount').length) if($('#payment-amount').length)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment