pdf,excel name change

This commit is contained in:
venbatechnologies@gmail.com 2018-10-08 16:21:36 +05:30
parent ec4d6fb648
commit 745310f762

View File

@ -494,7 +494,7 @@ $scope.loadStaring = true;
// return true;
// });
// pdfMake.createPdf(docDefinition).getDataUrl(function(url) { alert('your pdf is done'); });
pdfMake.createPdf(docDefinition).download('DAYBOOK DETAILS' + '( ' + $scope.searchData.date + ' - ' + $scope.searchData.dateTo + ' ).pdf', function(res) {
pdfMake.createPdf(docDefinition).download('Non Operational Entry' + '( ' + $scope.searchData.date + ' - ' + $scope.searchData.dateTo + ' ).pdf', function(res) {
if(res === 'success'){
$scope.$apply(function(){
$scope.loadStaring = false;
@ -946,7 +946,7 @@ $scope.loadStaring = true;
return mystyle;
}
$scope.exportData = function () {
alasql('SELECT Date as Date, ListName as IncomeExpense, VoucherNumber as VoucherNumberBillNumber, concat( PaidTo,Lastname )as PaidToReceivedFrom,TypeName as Type, Amount as Amount,Balance as Balance, Description as Comments INTO XLS("daybook_details.xls",?) FROM ?', [styleXl(), $scope.data]);
alasql('SELECT Date as Date, ListName as IncomeExpense, VoucherNumber as VoucherNumberBillNumber, concat( PaidTo,Lastname )as PaidToReceivedFrom,TypeName as Type, Amount as Amount,Balance as Balance, Description as Comments INTO XLS("NonOperational_details.xls",?) FROM ?', [styleXl(), $scope.data]);
};
//Modal for bill details