Fix for double controller name
This commit is contained in:
@@ -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 );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user