Files
dbois/public/js/lib/dataservices/invoiceDataService.js
T
2018-03-07 17:03:45 +01:00

26 lines
610 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/employeeHoursController/getInvoiceOverview/' + year )
.done( function ( data ) {
callback( data );
} );
},
getMonthDetails: function ( year, callback ) {
$.getJSON( 'index.php/reports/employeeHoursController/getMonthDetails/' + year )
.done( function ( data ) {
callback( data );
} );
}
}