tambah function lelongan ujrah

This commit is contained in:
BTMS1
2023-11-28 09:21:54 +08:00
parent c0c6d00db5
commit afa1f4eb48
21 changed files with 2722 additions and 5 deletions
@@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddUjrahToSimulasisTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('simulasi', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('cawangan_simulasi', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('simulasibid', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('simulasi', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('cawangan_simulasi', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('simulasibid', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
}
}
@@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddUjrahToLelongTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('lelong', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('cawangan_lelong', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
Schema::table('lelongbid', function (Blueprint $table) {
$table->integer('ujrah')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('lelong', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('cawangan_lelong', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
Schema::table('lelongbid', function (Blueprint $table) {
$table->dropColumn('ujrah');
});
}
}
+6
View File
@@ -159,6 +159,11 @@ class RolesSeeder extends Seeder
'description' => 'Wang Tidak Dituntut'
]);
Permission::create([
'name' => 'analisaujrah',
'description' => 'Simulasi Ujrah'
]);
//account
Permission::create([
'name' => 'pengesahanbayaran',
@@ -252,6 +257,7 @@ class RolesSeeder extends Seeder
$role6->givePermissionTo('reportbycaw');
$role6->givePermissionTo('parameter');
$role6->givePermissionTo('WTD');
$role6->givePermissionTo('analisaujrah');