Files
dbois/public/js/lib/dataservices/invoiceDataService.js
T
2018-07-29 21:26:49 +02:00

21 lines
502 B
JavaScript

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