Fix for double controller name

This commit is contained in:
2018-03-07 19:45:31 +01:00
parent f50dbcabe2
commit 3241cc0c67
4 changed files with 6 additions and 15 deletions
@@ -7,7 +7,7 @@ defined( 'BASEPATH' ) OR exit( 'No direct script access allowed' );
* Date: 08/02/2018
* Time: 15:16
*/
class EmployeeHoursController extends MY_Controller {
class ReportsController extends MY_Controller {
public function __construct()
{
@@ -15,7 +15,7 @@ dbo.employeehoursDataService = {
},
getMonthlyEmployeehours : function(month, $year, callback){
$.getJSON( 'index.php/reports/employeeHoursController/getMonthlyEmployeehours/' + month + '/' + $year )
$.getJSON( 'index.php/reports/reportsController/getMonthlyEmployeehours/' + month + '/' + $year )
.done( function ( data ) {
callback( data );
} );
@@ -9,18 +9,9 @@
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 )
$.getJSON( 'index.php/reports/reportsController/getInvoiceOverview/' + year )
.done( function ( data ) {
callback( data );
} );
}
}
};
@@ -16,14 +16,14 @@ dbo.reportsDataService = {
},
getRecapProjects: function(callback){
$.getJSON( 'index.php/reports/employeeHoursController/recapProjects' )
$.getJSON( 'index.php/reports/reportsController/recapProjects' )
.done( function ( data ) {
callback( data );
} );
},
getEmployeeHours: function ( employeeID, year, callback ) {
$.getJSON( 'index.php/reports/EmployeeHoursController/getMonthlyEmployeeHoursPerProject/' + employeeID + '/' + year )
$.getJSON( 'index.php/reports/reportsController/getMonthlyEmployeeHoursPerProject/' + employeeID + '/' + year )
.done( function ( data ) {
callback( data );
} );