day book super admin changes
This commit is contained in:
parent
ce30d74d68
commit
83304f1c31
@ -14,7 +14,7 @@ app.controller('daybooksuperadminCtrl', ["$scope", "$rootScope", "toaster", "$fi
|
|||||||
//In controller
|
//In controller
|
||||||
$scope.exportAction = function(){
|
$scope.exportAction = function(){
|
||||||
alert();
|
alert();
|
||||||
switch('excel'){
|
switch('excel'){
|
||||||
case 'pdf': $scope.$broadcast('export-pdf', {});
|
case 'pdf': $scope.$broadcast('export-pdf', {});
|
||||||
break;
|
break;
|
||||||
case 'excel': $scope.$broadcast('export-excel', {});
|
case 'excel': $scope.$broadcast('export-excel', {});
|
||||||
@ -233,10 +233,6 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
$scope.incomeExpenseName = response.data.typeList;
|
$scope.incomeExpenseName = response.data.typeList;
|
||||||
$scope.incomeExpenseType = response.data.typeNameList;
|
$scope.incomeExpenseType = response.data.typeNameList;
|
||||||
|
|
||||||
console.log($scope.incomeExpenseName)
|
|
||||||
|
|
||||||
console.log($scope.incomeExpenseType);
|
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -272,7 +268,6 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
$scope.myModelAdd.type = '';
|
$scope.myModelAdd.type = '';
|
||||||
$scope.getTypes = type === 'I002' ? $scope.getIncomeTypes : $scope.getExpenseTypes;
|
$scope.getTypes = type === 'I002' ? $scope.getIncomeTypes : $scope.getExpenseTypes;
|
||||||
|
|
||||||
console.log($scope.getTypes)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.editId = -1;
|
$scope.editId = -1;
|
||||||
@ -316,7 +311,6 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
|
|
||||||
$scope.copyModel = function (p) {
|
$scope.copyModel = function (p) {
|
||||||
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
|
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
|
||||||
console.log(inc);
|
|
||||||
$scope.incexp = inc[0];
|
$scope.incexp = inc[0];
|
||||||
$scope.myModel = {
|
$scope.myModel = {
|
||||||
"id": p.ID,
|
"id": p.ID,
|
||||||
@ -537,12 +531,10 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
$scope.daybookeditUpdate = {
|
$scope.daybookeditUpdate = {
|
||||||
submit: function (form, myModel) {
|
submit: function (form, myModel) {
|
||||||
|
|
||||||
console.log(myModel.type);
|
|
||||||
//return false;
|
//return false;
|
||||||
var firstError = null;
|
var firstError = null;
|
||||||
if (form.$invalid) {
|
if (form.$invalid) {
|
||||||
|
|
||||||
alert();
|
|
||||||
var field = null, firstError = null;
|
var field = null, firstError = null;
|
||||||
for (field in form) {
|
for (field in form) {
|
||||||
if (field[0] != '$') {
|
if (field[0] != '$') {
|
||||||
@ -601,7 +593,7 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
style:'font-size:11px; color:blue;'
|
style:'font-size:11px; color:blue;'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return mystyle
|
return mystyle;
|
||||||
}
|
}
|
||||||
$scope.exportData = function () {
|
$scope.exportData = function () {
|
||||||
alasql('SELECT Date as Date, ListName as IncomeExpense, VoucherNumber as VoucherNumberBillNumber, PaidTo as PaidToReceivedFrom,FeePaymentDetails as Sem, CourseName as Course,UniversityName as University,TypeName as Type, ReceiptNo as Receipt_No, ReceiptNoComments as Comments, ModeOfPayment as Mode_of_Payment,Amount as Amount,Balance as Balance, Reason, Activity INTO XLS("daybook_details.xls",?) FROM ?',[styleXl(),$scope.data]);
|
alasql('SELECT Date as Date, ListName as IncomeExpense, VoucherNumber as VoucherNumberBillNumber, PaidTo as PaidToReceivedFrom,FeePaymentDetails as Sem, CourseName as Course,UniversityName as University,TypeName as Type, ReceiptNo as Receipt_No, ReceiptNoComments as Comments, ModeOfPayment as Mode_of_Payment,Amount as Amount,Balance as Balance, Reason, Activity INTO XLS("daybook_details.xls",?) FROM ?',[styleXl(),$scope.data]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user