|
|
|
@ -265,16 +265,18 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
}
|
|
|
|
|
if ($scope.currentUser.client.has_children && !$scope.currentUser.client.hide_sub_mch) {
|
|
|
|
|
$scope.searchSubClients('',1);
|
|
|
|
|
$scope.params.dateto = new Date();
|
|
|
|
|
var day = new Date();
|
|
|
|
|
day.setDate(day.getDate() - 7);
|
|
|
|
|
$scope.params.datefrom = day;
|
|
|
|
|
// $scope.params.dateto = new Date();
|
|
|
|
|
// var day = new Date();
|
|
|
|
|
// day.setDate(day.getDate() - 7);
|
|
|
|
|
// $scope.params.datefrom = day;
|
|
|
|
|
$scope.params.datefrom = $scope.params.dateto = new Date();
|
|
|
|
|
$scope.chooseClient('all');
|
|
|
|
|
}else {
|
|
|
|
|
$scope.params.dateto = new Date();
|
|
|
|
|
var day = new Date();
|
|
|
|
|
day.setDate(day.getDate() - 7);
|
|
|
|
|
$scope.params.datefrom = day;
|
|
|
|
|
// $scope.params.dateto = new Date();
|
|
|
|
|
// var day = new Date();
|
|
|
|
|
// day.setDate(day.getDate() - 7);
|
|
|
|
|
// $scope.params.datefrom = day;
|
|
|
|
|
$scope.params.datefrom = $scope.params.dateto = new Date();
|
|
|
|
|
$scope.chooseClient('all');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|