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
|
||||
$scope.exportAction = function(){
|
||||
alert();
|
||||
switch('excel'){
|
||||
switch('excel'){
|
||||
case 'pdf': $scope.$broadcast('export-pdf', {});
|
||||
break;
|
||||
case 'excel': $scope.$broadcast('export-excel', {});
|
||||
@ -233,10 +233,6 @@ $scope.dayBookApprovalAccess = '';
|
||||
$scope.incomeExpenseName = response.data.typeList;
|
||||
$scope.incomeExpenseType = response.data.typeNameList;
|
||||
|
||||
console.log($scope.incomeExpenseName)
|
||||
|
||||
console.log($scope.incomeExpenseType);
|
||||
} else {
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -272,7 +268,6 @@ $scope.dayBookApprovalAccess = '';
|
||||
$scope.myModelAdd.type = '';
|
||||
$scope.getTypes = type === 'I002' ? $scope.getIncomeTypes : $scope.getExpenseTypes;
|
||||
|
||||
console.log($scope.getTypes)
|
||||
};
|
||||
|
||||
$scope.editId = -1;
|
||||
@ -316,7 +311,6 @@ $scope.dayBookApprovalAccess = '';
|
||||
|
||||
$scope.copyModel = function (p) {
|
||||
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
|
||||
console.log(inc);
|
||||
$scope.incexp = inc[0];
|
||||
$scope.myModel = {
|
||||
"id": p.ID,
|
||||
@ -537,12 +531,10 @@ $scope.dayBookApprovalAccess = '';
|
||||
$scope.daybookeditUpdate = {
|
||||
submit: function (form, myModel) {
|
||||
|
||||
console.log(myModel.type);
|
||||
//return false;
|
||||
var firstError = null;
|
||||
if (form.$invalid) {
|
||||
|
||||
alert();
|
||||
var field = null, firstError = null;
|
||||
for (field in form) {
|
||||
if (field[0] != '$') {
|
||||
@ -601,7 +593,7 @@ $scope.dayBookApprovalAccess = '';
|
||||
style:'font-size:11px; color:blue;'
|
||||
}
|
||||
};
|
||||
return mystyle
|
||||
return mystyle;
|
||||
}
|
||||
$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]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user