/** * 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 ); } ); } }