Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?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::create('invoice_payments', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('invoice_number');
|
||||
$table->string('payment_number');
|
||||
$table->date('invoice_date');
|
||||
$table->date('start_date');
|
||||
$table->date('end_date');
|
||||
$table->decimal('amount_paid', 15, 2);
|
||||
$table->string('status')->comment('submitted = Pengajuan, accepted = Belum Dibayar, partial_paid = Bayar Sebagian, paid = Sudah Dibayar');
|
||||
$table->bigInteger('created_by');
|
||||
$table->bigInteger('updated_by');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('invoice_payments');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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::create('invoice_payment_details', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('invoice_payment_id')->constrained('invoice_payments')->onDelete('cascade');
|
||||
$table->foreignId('claim_request_id')->constrained('claim_requests')->onDelete('cascade');
|
||||
$table->bigInteger('created_by');
|
||||
$table->bigInteger('updated_by');
|
||||
$table->bigInteger('deleted_by');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('invoice_payment_details');
|
||||
}
|
||||
};
|
||||
@@ -19,8 +19,14 @@ class NavigationSeeder extends Seeder
|
||||
// DOCTORS & HOSPITALS
|
||||
[
|
||||
'title' => 'Dashboard',
|
||||
'path' => '/dashboard',
|
||||
'permission' => 'dashboard'
|
||||
'children' => [
|
||||
[
|
||||
'title' => 'Dashboard',
|
||||
'path' => '/dashboard',
|
||||
'permission' => 'doctor-list'
|
||||
],
|
||||
],
|
||||
'permission' => 'dashboard',
|
||||
],
|
||||
// DOCTORS & HOSPITALS
|
||||
[
|
||||
@@ -134,6 +140,18 @@ class NavigationSeeder extends Seeder
|
||||
],
|
||||
'permission' => null
|
||||
],
|
||||
// Invoice
|
||||
[
|
||||
'title' => 'INVOICE',
|
||||
'children' => [
|
||||
[
|
||||
'title' => 'Invoice',
|
||||
'path' => '/invoice-payment',
|
||||
'permission' => 'invoice-payment-list'
|
||||
],
|
||||
],
|
||||
'permission' => null
|
||||
],
|
||||
// CUSTOMER SERVICES
|
||||
[
|
||||
'title' => 'CUSTOMER SERVICES',
|
||||
@@ -277,6 +295,11 @@ class NavigationSeeder extends Seeder
|
||||
'path' => '/alarm-center',
|
||||
'permission' => 'alarm-center-list-client-portal'
|
||||
],
|
||||
[
|
||||
'title' => 'Daily Monitoring',
|
||||
'path' => '/daily-monitoring',
|
||||
'permission' => 'daily-monitoring-list-client-portal'
|
||||
],
|
||||
[
|
||||
'title' => 'Formularium',
|
||||
'path' => '/master/formularium-template-v2',
|
||||
|
||||
@@ -41,6 +41,7 @@ class PermissionTableSeeder extends Seeder
|
||||
'formularium-create',
|
||||
'formularium-edit',
|
||||
'formularium-delete',
|
||||
'dashboard',
|
||||
'diagnosis-list',
|
||||
'diagnosis-create',
|
||||
'diagnosis-edit',
|
||||
@@ -72,7 +73,8 @@ class PermissionTableSeeder extends Seeder
|
||||
'report-doctor-online',
|
||||
'user-role-list',
|
||||
'user-access-list',
|
||||
'report-katalog-dokter'
|
||||
'report-katalog-dokter',
|
||||
'invoice-payment-list',
|
||||
]
|
||||
],
|
||||
####################### CLIENT PORTAL #########################
|
||||
@@ -85,6 +87,7 @@ class PermissionTableSeeder extends Seeder
|
||||
'employee-data-list-client-portal',
|
||||
'corporate-client-portal',
|
||||
'alarm-center-list-client-portal',
|
||||
'daily-monitoring-list-client-portal',
|
||||
'formularium-list-client-portal',
|
||||
'case-management-client-portal',
|
||||
'service-monitoring-limit-client-portal',
|
||||
@@ -97,6 +100,7 @@ class PermissionTableSeeder extends Seeder
|
||||
'export-alarm-center-client-portal',
|
||||
'filter-alarm-center-client-portal',
|
||||
'benefit-client-portal',
|
||||
'daily-monitoring-list-client-portal'
|
||||
]
|
||||
],
|
||||
####################### HOSPITAL PORTAL #########################
|
||||
|
||||
Reference in New Issue
Block a user