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