day book changes in staff

This commit is contained in:
gandhimathi 2018-08-20 13:31:16 +05:30
parent b0e7d3eebf
commit a1eee92436

View File

@ -452,6 +452,29 @@ $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:25px; 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]);
};
}]);