expense report pdf
This commit is contained in:
parent
e9e0918134
commit
49a75d8a4c
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
/*** controller***/
|
/*** controller***/
|
||||||
app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window', "dateListDescService",
|
app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAlert", "$state", 'md5', 'ipCookie', '$window', "dateListDescService", "$filter",
|
||||||
function ($scope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService) {
|
function ($scope, apiPoint, $http, SweetAlert, $state, md5, ipCookie, $window, dateListDescService, $filter) {
|
||||||
|
|
||||||
// DataTables configurable options
|
// DataTables configurable options
|
||||||
|
|
||||||
@ -269,7 +269,8 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var f_date = $filter('date')(new Date($scope.filters.from_date), 'dd-MM-yyyy');
|
||||||
|
var t_date = $filter('date')(new Date($scope.filters.to_date), 'dd-MM-yyyy');
|
||||||
var docDefinition = {
|
var docDefinition = {
|
||||||
pageMargins: [20, 85, 20, 50],
|
pageMargins: [20, 85, 20, 50],
|
||||||
pageOrientation: 'landscape',
|
pageOrientation: 'landscape',
|
||||||
@ -278,7 +279,7 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
|
|||||||
margin: 0,
|
margin: 0,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
text: ['Expense Report'],
|
text: ['Expense Report ' + f_date + ' to ' + t_date],
|
||||||
alignment: 'left', bold: true, margin: [20, 30, 0, 0], fontSize: 18
|
alignment: 'left', bold: true, margin: [20, 30, 0, 0], fontSize: 18
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user