Merge remote-tracking branch 'refs/remotes/origin/staging' into staging
This commit is contained in:
0
Modules/Internal/Config/.gitkeep
Executable file → Normal file
0
Modules/Internal/Config/.gitkeep
Executable file → Normal file
0
Modules/Internal/Config/config.php
Executable file → Normal file
0
Modules/Internal/Config/config.php
Executable file → Normal file
0
Modules/Internal/Console/.gitkeep
Executable file → Normal file
0
Modules/Internal/Console/.gitkeep
Executable file → Normal file
0
Modules/Internal/Database/Migrations/.gitkeep
Executable file → Normal file
0
Modules/Internal/Database/Migrations/.gitkeep
Executable file → Normal file
0
Modules/Internal/Database/Seeders/.gitkeep
Executable file → Normal file
0
Modules/Internal/Database/Seeders/.gitkeep
Executable file → Normal file
0
Modules/Internal/Database/Seeders/InternalDatabaseSeeder.php
Executable file → Normal file
0
Modules/Internal/Database/Seeders/InternalDatabaseSeeder.php
Executable file → Normal file
0
Modules/Internal/Database/factories/.gitkeep
Executable file → Normal file
0
Modules/Internal/Database/factories/.gitkeep
Executable file → Normal file
0
Modules/Internal/Emails/SendVerifyEmail.php
Executable file → Normal file
0
Modules/Internal/Emails/SendVerifyEmail.php
Executable file → Normal file
0
Modules/Internal/Entities/.gitkeep
Executable file → Normal file
0
Modules/Internal/Entities/.gitkeep
Executable file → Normal file
0
Modules/Internal/Events/ForgetPassword.php
Executable file → Normal file
0
Modules/Internal/Events/ForgetPassword.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/.gitkeep
Executable file → Normal file
0
Modules/Internal/Http/Controllers/.gitkeep
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AppointmentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AppointmentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AuthController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AuthController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/BenefitController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/BenefitController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimRequestController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimRequestController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateBenefitController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateBenefitController.php
Executable file → Normal file
5
Modules/Internal/Http/Controllers/Api/CorporateController.php
Executable file → Normal file
5
Modules/Internal/Http/Controllers/Api/CorporateController.php
Executable file → Normal 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",
|
||||
|
||||
0
Modules/Internal/Http/Controllers/Api/CorporateFormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateFormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateMemberController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateMemberController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporatePlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporatePlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateServiceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateServiceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisExclusionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisExclusionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DistrictController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DistrictController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DivisionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DivisionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DoctorController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DoctorController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DrugController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DrugController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/FormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/FormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/Linksehat/PaymentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/Linksehat/PaymentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/LivechatController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/LivechatController.php
Executable file → Normal file
8
Modules/Internal/Http/Controllers/Api/MemberController.php
Executable file → Normal file
8
Modules/Internal/Http/Controllers/Api/MemberController.php
Executable file → Normal 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();
|
||||
}
|
||||
|
||||
|
||||
0
Modules/Internal/Http/Controllers/Api/OptionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/OptionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/OrganizationController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/OrganizationController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/PlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/PlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ProvinceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ProvinceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/SpecialityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/SpecialityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/VillageController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/VillageController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/ClaimEncounterController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/ClaimEncounterController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/InternalController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/InternalController.php
Executable file → Normal file
0
Modules/Internal/Http/Middleware/.gitkeep
Executable file → Normal file
0
Modules/Internal/Http/Middleware/.gitkeep
Executable file → Normal file
0
Modules/Internal/Http/Requests/.gitkeep
Executable file → Normal file
0
Modules/Internal/Http/Requests/.gitkeep
Executable file → Normal file
0
Modules/Internal/Listeners/SendVerifyEmail.php
Executable file → Normal file
0
Modules/Internal/Listeners/SendVerifyEmail.php
Executable file → Normal file
0
Modules/Internal/Notifications/NotifyVerifyEmail.php
Executable file → Normal file
0
Modules/Internal/Notifications/NotifyVerifyEmail.php
Executable file → Normal file
0
Modules/Internal/Providers/.gitkeep
Executable file → Normal file
0
Modules/Internal/Providers/.gitkeep
Executable file → Normal file
0
Modules/Internal/Providers/EventServiceProvider.php
Executable file → Normal file
0
Modules/Internal/Providers/EventServiceProvider.php
Executable file → Normal file
0
Modules/Internal/Providers/InternalServiceProvider.php
Executable file → Normal file
0
Modules/Internal/Providers/InternalServiceProvider.php
Executable file → Normal file
0
Modules/Internal/Providers/RouteServiceProvider.php
Executable file → Normal file
0
Modules/Internal/Providers/RouteServiceProvider.php
Executable file → Normal file
0
Modules/Internal/Resources/assets/.gitkeep
Executable file → Normal file
0
Modules/Internal/Resources/assets/.gitkeep
Executable file → Normal file
0
Modules/Internal/Resources/assets/js/app.js
Executable file → Normal file
0
Modules/Internal/Resources/assets/js/app.js
Executable file → Normal file
0
Modules/Internal/Resources/assets/sass/app.scss
Executable file → Normal file
0
Modules/Internal/Resources/assets/sass/app.scss
Executable file → Normal file
0
Modules/Internal/Resources/lang/.gitkeep
Executable file → Normal file
0
Modules/Internal/Resources/lang/.gitkeep
Executable file → Normal file
0
Modules/Internal/Resources/views/.gitkeep
Executable file → Normal file
0
Modules/Internal/Resources/views/.gitkeep
Executable file → Normal file
0
Modules/Internal/Resources/views/index.blade.php
Executable file → Normal file
0
Modules/Internal/Resources/views/index.blade.php
Executable file → Normal file
0
Modules/Internal/Resources/views/layouts/master.blade.php
Executable file → Normal file
0
Modules/Internal/Resources/views/layouts/master.blade.php
Executable file → Normal file
0
Modules/Internal/Routes/.gitkeep
Executable file → Normal file
0
Modules/Internal/Routes/.gitkeep
Executable file → Normal file
0
Modules/Internal/Routes/api.php
Executable file → Normal file
0
Modules/Internal/Routes/api.php
Executable file → Normal file
0
Modules/Internal/Routes/web.php
Executable file → Normal file
0
Modules/Internal/Routes/web.php
Executable file → Normal file
13
Modules/Internal/Services/CorporateService.php
Executable file → Normal file
13
Modules/Internal/Services/CorporateService.php
Executable file → Normal 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
0
Modules/Internal/Services/ExclusionService.php
Executable file → Normal file
0
Modules/Internal/Services/FormulariumService.php
Executable file → Normal file
0
Modules/Internal/Services/FormulariumService.php
Executable file → Normal file
0
Modules/Internal/Services/MemberEnrollmentService.php
Executable file → Normal file
0
Modules/Internal/Services/MemberEnrollmentService.php
Executable file → Normal file
0
Modules/Internal/Tests/Feature/.gitkeep
Executable file → Normal file
0
Modules/Internal/Tests/Feature/.gitkeep
Executable file → Normal file
0
Modules/Internal/Tests/Unit/.gitkeep
Executable file → Normal file
0
Modules/Internal/Tests/Unit/.gitkeep
Executable file → Normal file
0
Modules/Internal/Transformers/AppointmentResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/AppointmentResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimRequestResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimRequestResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimRequestShowResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimRequestShowResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimShowResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/ClaimShowResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/CorporateFormulariumResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/CorporateFormulariumResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/CorporateServiceConfigResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/CorporateServiceConfigResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/DiagnosisExclusionResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/DiagnosisExclusionResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/DoctorResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/DoctorResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/EncounterResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/EncounterResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/LinksehatPaymentResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/LinksehatPaymentResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/LivechatResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/LivechatResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/OrganizationResource.php
Executable file → Normal file
0
Modules/Internal/Transformers/OrganizationResource.php
Executable file → Normal file
0
Modules/Internal/composer.json
Executable file → Normal file
0
Modules/Internal/composer.json
Executable file → Normal file
0
Modules/Internal/module.json
Executable file → Normal file
0
Modules/Internal/module.json
Executable file → Normal file
0
Modules/Internal/package.json
Executable file → Normal file
0
Modules/Internal/package.json
Executable file → Normal file
0
Modules/Internal/webpack.mix.js
Executable file → Normal file
0
Modules/Internal/webpack.mix.js
Executable file → Normal file
Reference in New Issue
Block a user