Fix for double controller name
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ defined( 'BASEPATH' ) OR exit( 'No direct script access allowed' );
|
|||||||
* Date: 08/02/2018
|
* Date: 08/02/2018
|
||||||
* Time: 15:16
|
* Time: 15:16
|
||||||
*/
|
*/
|
||||||
class EmployeeHoursController extends MY_Controller {
|
class ReportsController extends MY_Controller {
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
@@ -15,7 +15,7 @@ dbo.employeehoursDataService = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getMonthlyEmployeehours : function(month, $year, callback){
|
getMonthlyEmployeehours : function(month, $year, callback){
|
||||||
$.getJSON( 'index.php/reports/employeeHoursController/getMonthlyEmployeehours/' + month + '/' + $year )
|
$.getJSON( 'index.php/reports/reportsController/getMonthlyEmployeehours/' + month + '/' + $year )
|
||||||
.done( function ( data ) {
|
.done( function ( data ) {
|
||||||
callback( data );
|
callback( data );
|
||||||
} );
|
} );
|
||||||
|
|||||||
@@ -9,18 +9,9 @@
|
|||||||
dbo.invoiceDataService = {
|
dbo.invoiceDataService = {
|
||||||
|
|
||||||
getInvoiceOverview: function ( year, callback ) {
|
getInvoiceOverview: function ( year, callback ) {
|
||||||
$.getJSON( 'index.php/reports/employeeHoursController/getInvoiceOverview/' + year )
|
$.getJSON( 'index.php/reports/reportsController/getInvoiceOverview/' + year )
|
||||||
.done( function ( data ) {
|
|
||||||
callback( data );
|
|
||||||
} );
|
|
||||||
},
|
|
||||||
|
|
||||||
getMonthDetails: function ( year, callback ) {
|
|
||||||
$.getJSON( 'index.php/reports/employeeHoursController/getMonthDetails/' + year )
|
|
||||||
.done( function ( data ) {
|
.done( function ( data ) {
|
||||||
callback( data );
|
callback( data );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
}
|
|
||||||
@@ -16,14 +16,14 @@ dbo.reportsDataService = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getRecapProjects: function(callback){
|
getRecapProjects: function(callback){
|
||||||
$.getJSON( 'index.php/reports/employeeHoursController/recapProjects' )
|
$.getJSON( 'index.php/reports/reportsController/recapProjects' )
|
||||||
.done( function ( data ) {
|
.done( function ( data ) {
|
||||||
callback( data );
|
callback( data );
|
||||||
} );
|
} );
|
||||||
},
|
},
|
||||||
|
|
||||||
getEmployeeHours: function ( employeeID, year, callback ) {
|
getEmployeeHours: function ( employeeID, year, callback ) {
|
||||||
$.getJSON( 'index.php/reports/EmployeeHoursController/getMonthlyEmployeeHoursPerProject/' + employeeID + '/' + year )
|
$.getJSON( 'index.php/reports/reportsController/getMonthlyEmployeeHoursPerProject/' + employeeID + '/' + year )
|
||||||
.done( function ( data ) {
|
.done( function ( data ) {
|
||||||
callback( data );
|
callback( data );
|
||||||
} );
|
} );
|
||||||
|
|||||||
Reference in New Issue
Block a user