Update
This commit is contained in:
@@ -253,7 +253,7 @@ class MemberEnrollmentService
|
||||
"Payor ID",
|
||||
"Member ID",
|
||||
"Mapping ID",
|
||||
"Link Medis Member ID",
|
||||
"LinkSehat Member ID",
|
||||
"Corporate ID",
|
||||
"NIK",
|
||||
"Division",
|
||||
@@ -374,6 +374,15 @@ class MemberEnrollmentService
|
||||
if (empty($row['principal_id'])) {
|
||||
throw new ImportRowException(__('enrollment.PRINCIPAL_ID_REQUIRED'), 0, null, $row);
|
||||
}
|
||||
if (empty($row['relationship_with_principal'])){
|
||||
throw new ImportRowException(__('enrollment.RELATIONSHIP_WITH_PRICIPAL_REQUIRED'), 0, null, $row);
|
||||
}
|
||||
if (!empty($row['relationship_with_principal']) && !in_array($row['relationship_with_principal'], ['H', 'W', 'D', 'S'])){
|
||||
throw new ImportRowException(__('enrollment.RELATIONSHIP_WITH_PRICIPAL_REQUIRED'), 0, null, $row);
|
||||
}
|
||||
if ($row['principal_id'] == $row['member_id']){
|
||||
throw new ImportRowException(__('enrollment.PRINCIPAL_ID_NOT_SAME_MEMBER_ID'), 0, null, $row);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO RECORD BCA ONLY
|
||||
@@ -518,6 +527,7 @@ class MemberEnrollmentService
|
||||
"race" => $row['race'] ?? null,
|
||||
"marital_status" => $row['marital_status'] ?? null,
|
||||
"record_type" => $row['record_type'] ?? null,
|
||||
"record_mode" => $row['record_mode'] ?? null,
|
||||
"principal_id" => $row['principal_id'] ?? null,
|
||||
"relation_with_principal" => $row['relationship_with_principal'] ?? null,
|
||||
"bpjs_class" => $row['bpjs_class'] ?? null,
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('members', function (Blueprint $table) {
|
||||
$table->string('record_mode')->after('postal_code')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('members', function (Blueprint $table) {
|
||||
$table->dropColumn('record_mode');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -43,6 +43,7 @@ return [
|
||||
"PRINCIPAL_ID_NOT_REQUIRED" => "Mapping ID should only be filled for dependents",
|
||||
"CORPORATE_ID_REQUIRED" => "Corporate ID must be filled",
|
||||
"PRINCIPAL_ID_REQUIRED" => "Mapping ID must be filled",
|
||||
"PRINCIPAL_ID_NOT_SAME_MEMBER_ID" => "Mapping ID cannot be filled with the same Member ID.",
|
||||
"BRANCH_CODE_NOT_REQUIRED" => "Dependents don't need to fill in Branch Code ",
|
||||
"INVALID_LANGUAGE" => "Language (field 12) is invalid",
|
||||
"INVALID_DATE" => "Format Date (:title) is invalid",
|
||||
@@ -65,5 +66,8 @@ return [
|
||||
"DATE_OF_TERMINATED" => "Date of Terminated must be filled",
|
||||
"SEX_REQUIRED" => "Sex must be filled",
|
||||
"SEX_CODE_NOT_VALID" => "Sex must be filled F or M",
|
||||
|
||||
"RELATIONSHIP_WITH_PRICIPAL_REQUIRED" => "Relationship must be filled",
|
||||
"RELATIONSHIP_WITH_PRICIPAL_NOT_VALID" => "Relationship must be filled W, S, D or H",
|
||||
|
||||
];
|
||||
|
||||
BIN
public/files/Corporate Membership Import.xlsx
Executable file → Normal file
BIN
public/files/Corporate Membership Import.xlsx
Executable file → Normal file
Binary file not shown.
Reference in New Issue
Block a user