student view
This commit is contained in:
parent
5c49e6a040
commit
dced4ac52f
@ -990,9 +990,23 @@ app.controller('feesStatusCtrl', ["$scope","$rootScope","toaster", "$filter", "n
|
|||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$scope.setModel.feesType.BatchCode = $scope.BatchDetails[0].BatchCode;
|
|
||||||
|
|
||||||
$scope.BatchDate = new Date($scope.BatchDetails[0].BatchDate.substring(6,10)+'-'+$scope.BatchDetails[0].BatchDate.substring(3,5)+'-'+$scope.BatchDetails[0].BatchDate.substring(0,2));
|
$scope.obj = model.batchDetails.find(x => x.IsDefault == true);
|
||||||
|
if($scope.obj==undefined || $scope.obj=='' || $scope.obj==null){
|
||||||
|
$scope.setModel.feesType.BatchCode = $scope.BatchDetails[0].BatchCode;
|
||||||
|
|
||||||
|
$scope.BatchDate = new Date($scope.BatchDetails[0].BatchDate.substring(6,10)+'-'+$scope.BatchDetails[0].BatchDate.substring(3,5)+'-'+$scope.BatchDetails[0].BatchDate.substring(0,2));
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
|
||||||
|
$scope.setModel.feesType.BatchCode = $scope.obj.BatchCode;
|
||||||
|
$scope.BatchDate = new Date($scope.obj.BatchDate.substring(6,10)+'-'+$scope.obj.BatchDate.substring(3,5)+'-'+$scope.obj.BatchDate.substring(0,2));
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* $scope.myModelInstallemt.ID="";
|
/* $scope.myModelInstallemt.ID="";
|
||||||
$scope.myModelInstallemt.name="";
|
$scope.myModelInstallemt.name="";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user