Skip to content

Commit

Permalink
Merge pull request #42 from motech-implementations/financial_year_issue
Browse files Browse the repository at this point in the history
not able select financial year issue fixed
  • Loading branch information
anuranjan authored Apr 26, 2021
2 parents 172d243 + d4a361e commit 9a43adf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/scripts/controllers/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
$scope.datePickerOptions.minMode = '';
$scope.datePickerOptions.datepickerMode = 'year';
$scope.datePickerOptions.minMode = 'year';
if(new Date().getMonth()>3){
if(new Date().getMonth()>2){
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear());
}else{
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear() -1);
Expand All @@ -247,7 +247,7 @@
$scope.datePickerOptions.minMode = '';
$scope.datePickerOptions.datepickerMode = 'year';
$scope.datePickerOptions.minMode = 'year';
if(new Date().getMonth()>3){
if(new Date().getMonth()>2){
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear());
}else{
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear() -1);
Expand Down Expand Up @@ -648,7 +648,7 @@
$scope.datePickerOptions.minMode = '';
$scope.datePickerOptions.datepickerMode = 'year';
$scope.datePickerOptions.minMode = 'year';
if(new Date().getMonth()>3){
if(new Date().getMonth()>2){
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear());
}else{
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear() -1);
Expand All @@ -661,7 +661,7 @@
$scope.datePickerOptions.minMode = '';
$scope.datePickerOptions.datepickerMode = 'year';
$scope.datePickerOptions.minMode = 'year';
if(new Date().getMonth()>3){
if(new Date().getMonth()>2){
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear());
}else{
$scope.datePickerOptions.maxDate = new Date().setYear(new Date().getFullYear() -1);
Expand Down

0 comments on commit 9a43adf

Please sign in to comment.