21 lines
595 B
JavaScript
21 lines
595 B
JavaScript
/**
|
|
* Created by Pensare Software.
|
|
* User: Theo Weijmer
|
|
* Date: 02/03/2018
|
|
* Time: 16:00
|
|
*/
|
|
|
|
|
|
dbo.invoiceDataService = {
|
|
|
|
getInvoiceOverview: function ( year, orderType, orderDirection, archive, callback ) {
|
|
$.getJSON( 'index.php/reports/reportsController/getInvoiceOverview/' + year + '/' + orderType + '/' + orderDirection + '/' + archive )
|
|
.done( function ( data ) {
|
|
callback( data );
|
|
} );
|
|
},
|
|
|
|
createSpreadsheet : function(year){
|
|
$.get( 'index.php/reports/reportsController/createInvoicesSpreadsheet/' + year )
|
|
}
|
|
}; |