pdf,excel name change
This commit is contained in:
parent
ec4d6fb648
commit
745310f762
@ -494,7 +494,7 @@ $scope.loadStaring = true;
|
|||||||
// return true;
|
// return true;
|
||||||
// });
|
// });
|
||||||
// pdfMake.createPdf(docDefinition).getDataUrl(function(url) { alert('your pdf is done'); });
|
// 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'){
|
if(res === 'success'){
|
||||||
$scope.$apply(function(){
|
$scope.$apply(function(){
|
||||||
$scope.loadStaring = false;
|
$scope.loadStaring = false;
|
||||||
@ -946,7 +946,7 @@ $scope.loadStaring = true;
|
|||||||
return mystyle;
|
return mystyle;
|
||||||
}
|
}
|
||||||
$scope.exportData = function () {
|
$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
|
//Modal for bill details
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user