day book admin changes

This commit is contained in:
gandhimathi 2018-08-20 13:16:29 +05:30
parent 83304f1c31
commit ce5f6c9af5

View File

@ -151,7 +151,6 @@ $scope.dayBookApprovalAccess = '';
if (response.data.typeNameStatus) {
$scope.incomeExpenseName = response.data.typeList;
$scope.incomeExpenseType = response.data.typeNameList;
} else {
}
});
}
@ -208,9 +207,7 @@ $scope.dayBookApprovalAccess = '';
}
$scope.copyModel = function (p) {
//console.log(p);
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
console.log(inc);
$scope.incexp = inc[0];
$scope.myModel = {
@ -447,6 +444,26 @@ $scope.dayBookApprovalAccess = '';
}
}
}
function styleXl(){
var mystyle = {
sheetid: 'DAYBOOK DETAILS',
headers: true,
caption: {
title:'DAYBOOK DETAILS'+ '('+ $scope.searchData.date + ' - ' + $scope.searchData.dateTo +')',
width: '300px',
style:'font-size:50px;color:blue;'
},
// style:'background:#00FF00',
column: {
style:'font-size:11px; color:blue;'
}
};
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]);
};
}]);