add refund logic and fix books inventory logic
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Controllers\Administrator;
|
||||
|
||||
use App\Controllers\BaseController;
|
||||
use App\Models\ConfigurationModel;
|
||||
use App\Models\SchoolYearModel;
|
||||
use App\Support\SchoolYear\SchoolYearStatus;
|
||||
use Throwable;
|
||||
@@ -43,6 +44,8 @@ class SchoolYearController extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
$configurationModel = new ConfigurationModel();
|
||||
|
||||
return view('school_years/index', [
|
||||
'schoolYears' => $schoolYears,
|
||||
'statuses' => SchoolYearStatus::ALL,
|
||||
@@ -54,6 +57,7 @@ class SchoolYearController extends BaseController
|
||||
'latestTransitions' => service('schoolYearManagement')->latestTransitionByYear(),
|
||||
'yearVerification' => $this->verificationByYear($schoolYears),
|
||||
'schoolYearNamesById' => array_column($schoolYears, 'name', 'id'),
|
||||
'totalInstructionalWeeks' => $configurationModel->getConfigValueByKey('total_instructional_weeks'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user