update seeder, notis lelong

This commit is contained in:
Amirah22
2022-07-26 10:58:33 +08:00
parent 504ceb7297
commit 4adcac3317
9 changed files with 248 additions and 206 deletions
@@ -61,7 +61,7 @@ class CreateSimulasisTable extends Migration
$table->date('t_jual')->nullable();
$table->integer('nopembeli')->nullable();
$table->decimal('jbg', $precision = 7, $scale = 2);
$table->decimal('kadarupah', $precision = 5, $scale = 2);
$table->decimal('kadarupah', $precision = 5, $scale = 2)->nullable();
$table->decimal('upahsimpan', $precision = 11, $scale = 2)->nullable();
$table->decimal('ansuran', $precision = 11, $scale = 2)->nullable();
$table->decimal('nilaimarhun', $precision = 9, $scale = 2);
@@ -68,7 +68,7 @@ class CreateLelongsTable extends Migration
$table->integer('nopembeli')->nullable();
$table->decimal('jbg', $precision = 7, $scale = 2);
$table->decimal('kadarupah', $precision = 5, $scale = 2);
$table->decimal('upahsimpan', $precision = 11, $scale = 2);
$table->decimal('upahsimpan', $precision = 11, $scale = 2)->nullable();
$table->decimal('ansuran', $precision = 11, $scale = 2)->nullable();
$table->decimal('nilaimarhun', $precision = 9, $scale = 2);
$table->decimal('pinjaman', $precision = 9, $scale = 2);
@@ -173,7 +173,7 @@ class CreateLelongsTable extends Migration
$table->string('kali')->nullable();
$table->integer('cajlelong')->nullable();
$table->timestamps();
$table->string('para2')->nullable();
$table->string('para2','9999')->nullable();
// $table->foreign('norujukan')
@@ -14,7 +14,7 @@ class AddPara2ToCawanganTable extends Migration
public function up()
{
Schema::table('cawangan', function (Blueprint $table) {
$table->string('para2')->nullable();
$table->string('para2','9999')->nullable();
});
}
+2
View File
@@ -16,5 +16,7 @@ class DatabaseSeeder extends Seeder
$this->call(RolesSeeder::class);
$this->call(JenisEmasSeeder::class);
$this->call(KaratSeeder::class);
$this->call(TetapanSeeder::class);
}
}
+1 -6
View File
@@ -80,12 +80,7 @@ class KaratSeeder extends Seeder
'dariharga916' => -139.71
]);
Tetapan::create([
'tetap_tarikh_lelong' => '2022-07-31',
'kali' => '1',
'cajlelong' => '3'
]);
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Tetapan;
class TetapanSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Tetapan::create([
'tetap_tarikh_lelong' => '2022-07-26',
'kali' => '1',
'cajlelong' => '3'
]);
}
}