Merge remote-tracking branch 'refs/remotes/origin/staging' into staging

This commit is contained in:
kevin
2023-07-04 09:42:37 +07:00
1905 changed files with 550 additions and 13 deletions

0
Modules/Internal/Config/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Config/config.php Executable file → Normal file
View File

0
Modules/Internal/Console/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Database/Migrations/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Database/Seeders/.gitkeep Executable file → Normal file
View File

View File

0
Modules/Internal/Database/factories/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Emails/SendVerifyEmail.php Executable file → Normal file
View File

0
Modules/Internal/Entities/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Events/ForgetPassword.php Executable file → Normal file
View File

0
Modules/Internal/Http/Controllers/.gitkeep Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File

@@ -80,7 +80,7 @@ class CorporateController extends Controller
{
$request->validate([
'code' => 'required|regex:/^[a-zA-Z0-9]+$/',
'code' => 'required|regex:/^[a-zA-Z0-9_]+$/',
'name' => 'required',
'payor_id' => 'required',
// 'logo' => 'required',
@@ -303,7 +303,7 @@ class CorporateController extends Controller
public function update(Request $request, $id)
{
$request->validate([
'code' => 'required|regex:/^[a-zA-Z0-9]+$/',
'code' => 'required|regex:/^[a-zA-Z0-9_]+$/',
'payor_id' => 'required',
'name' => 'required',
'policy_code' => 'required_with:policy_id',
@@ -673,6 +673,7 @@ class CorporateController extends Controller
$row['prorate_lookup'], // "Prorate Lookup",
$row['max_days_for_disability'], // "Max Days for Disability",
$row['max_period_for_disability'], // "Max Periode of Disability",
$row['limit_free_tc'], // "Currency",
$row['currency'], // "Currency",
$row['show_benefit_item'], // "Show Benefit Item",
$row['show_benefit_value'], // "Show Benefit Value",

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@@ -13,10 +13,14 @@ class MemberController extends Controller
* Display a listing of the resource.
* @return Renderable
*/
public function index()
public function index(Request $request)
{
return Member::query()
->with('currentPlan')
->when($request->search, function ($query, $search) {
return $query->where('name', 'LIKE', '%' . $search . '%')
->orWhere('member_id', 'LIKE', '%' . $search . '%');
})
->with('currentPlan', 'currentCorporate')
->paginate();
}

View File

View File

View File

View File

View File

View File

View File

View File

0
Modules/Internal/Http/Middleware/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Http/Requests/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Listeners/SendVerifyEmail.php Executable file → Normal file
View File

0
Modules/Internal/Notifications/NotifyVerifyEmail.php Executable file → Normal file
View File

0
Modules/Internal/Providers/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Providers/EventServiceProvider.php Executable file → Normal file
View File

0
Modules/Internal/Providers/InternalServiceProvider.php Executable file → Normal file
View File

0
Modules/Internal/Providers/RouteServiceProvider.php Executable file → Normal file
View File

0
Modules/Internal/Resources/assets/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Resources/assets/js/app.js Executable file → Normal file
View File

0
Modules/Internal/Resources/assets/sass/app.scss Executable file → Normal file
View File

0
Modules/Internal/Resources/lang/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Resources/views/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Resources/views/index.blade.php Executable file → Normal file
View File

View File

0
Modules/Internal/Routes/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Routes/api.php Executable file → Normal file
View File

0
Modules/Internal/Routes/web.php Executable file → Normal file
View File

13
Modules/Internal/Services/CorporateService.php Executable file → Normal file
View File

@@ -218,19 +218,24 @@ class CorporateService
if (!empty($row['budget']) && !in_array($budget_aso)) {
throw new ImportRowException(__('plan.MAX_FREQUENCY'), 0, null, $row);
}
// if (empty($row['limit_free_tc'])){
// throw new ImportRowException(__('plan.REQUIRED', [
// 'attribute' => 'Limit Free TC'
// ]), 0, null, $row);
// }
}
public function handleBenefitRow(Corporate $corporate, $row)
{
try {
// $row['limit_free_tc'] = 0;
$benefit_data = $row;
$this->validateBenefitRow($benefit_data, $corporate->id);
$benefit_data["corporate_id"] = $corporate->id;
$plan = $corporate->plans()
->where('corporate_plan_id', $benefit_data['plan_code'])
->first();
// $corporate->plans->where('corporate_plan_id', $benefit_data['plan_code'])->first();
$benefit_data['plan_code'] = $plan->id;
$benefit = Benefit::updateOrCreate([
@@ -241,10 +246,10 @@ class CorporateService
'service_code' => $plan->service_code,
'description' => $benefit_data['description'],
]);
$corporateBenefit = $corporate->corporateBenefits()->updateOrCreate([
'benefit_id' => $benefit->id,
'plan_id' => $plan->id
'plan_id' => $plan->id,
'corporate_id' => $corporate->id,
], $benefit_data);
return $corporateBenefit;

0
Modules/Internal/Services/ExclusionService.php Executable file → Normal file
View File

0
Modules/Internal/Services/FormulariumService.php Executable file → Normal file
View File

0
Modules/Internal/Services/MemberEnrollmentService.php Executable file → Normal file
View File

0
Modules/Internal/Tests/Feature/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Tests/Unit/.gitkeep Executable file → Normal file
View File

0
Modules/Internal/Transformers/AppointmentResource.php Executable file → Normal file
View File

0
Modules/Internal/Transformers/ClaimRequestResource.php Executable file → Normal file
View File

View File

0
Modules/Internal/Transformers/ClaimResource.php Executable file → Normal file
View File

0
Modules/Internal/Transformers/ClaimShowResource.php Executable file → Normal file
View File

View File

View File

View File

0
Modules/Internal/Transformers/DoctorResource.php Executable file → Normal file
View File

0
Modules/Internal/Transformers/EncounterResource.php Executable file → Normal file
View File

View File

0
Modules/Internal/Transformers/LivechatResource.php Executable file → Normal file
View File

0
Modules/Internal/Transformers/OrganizationResource.php Executable file → Normal file
View File

0
Modules/Internal/composer.json Executable file → Normal file
View File

0
Modules/Internal/module.json Executable file → Normal file
View File

0
Modules/Internal/package.json Executable file → Normal file
View File

0
Modules/Internal/webpack.mix.js Executable file → Normal file
View File