add refund logic and fix books inventory logic
This commit is contained in:
@@ -505,4 +505,21 @@ class Services extends BaseService
|
||||
model(\App\Models\StudentYearStatusModel::class)
|
||||
);
|
||||
}
|
||||
|
||||
public static function withdrawalFinancial(bool $getShared = true): \App\Services\WithdrawalFinancialService
|
||||
{
|
||||
if ($getShared) {
|
||||
return static::getSharedInstance('withdrawalFinancial');
|
||||
}
|
||||
|
||||
$db = \Config\Database::connect();
|
||||
|
||||
return new \App\Services\WithdrawalFinancialService(
|
||||
$db,
|
||||
new \App\Services\WithdrawalRefundCalculator(),
|
||||
new \App\Services\StudentBookIssueService($db),
|
||||
new \App\Libraries\InvoiceLedgerService(),
|
||||
new \App\Libraries\RefundEligibilityService()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user