diff --git a/app/Http/Controllers/MarhunController.php b/app/Http/Controllers/MarhunController.php index 7daf548b..b94b0c9c 100644 --- a/app/Http/Controllers/MarhunController.php +++ b/app/Http/Controllers/MarhunController.php @@ -514,6 +514,7 @@ class MarhunController extends Controller public function terimaperubahan(Request $request) { //update mutu marhun - gadaimarhun + // dd($request->all()); $user = Auth::user(); $currentdate = Carbon::now(); diff --git a/app/Http/Controllers/SimulasiController.php b/app/Http/Controllers/SimulasiController.php index 83250fde..6aa495e6 100644 --- a/app/Http/Controllers/SimulasiController.php +++ b/app/Http/Controllers/SimulasiController.php @@ -319,7 +319,7 @@ class SimulasiController extends Controller foreach($cawangansim as $cawsim) { $cawangan = Cawangan::where('id','=',$cawsim->caw_id)->first(); - $databid = SimulasiBid::where('simulasi_id','=',$simulasi_id)->get(); + $databid = SimulasiBid::where('caw_id','=',$cawsim->caw_id)->where('simulasi_id','=',$simulasi_id)->get(); $packet = 0; $berat = 0; diff --git a/database/migrations/2021_12_13_053311_create_cawangans_table.php b/database/migrations/2021_12_13_053311_create_cawangans_table.php index 0e58b8c6..e0fb2e7f 100644 --- a/database/migrations/2021_12_13_053311_create_cawangans_table.php +++ b/database/migrations/2021_12_13_053311_create_cawangans_table.php @@ -30,6 +30,7 @@ class CreateCawangansTable extends Migration $table->string('nofaks')->nullable(); $table->string('lokasi')->nullable(); $table->string('pkb_jmc')->nullable(); + $table->string('para2')->nullable(); $table->timestamps(); }); diff --git a/database/migrations/2021_12_14_041545_create_simulasis_table.php b/database/migrations/2021_12_14_041545_create_simulasis_table.php index dc3f202e..507b2546 100644 --- a/database/migrations/2021_12_14_041545_create_simulasis_table.php +++ b/database/migrations/2021_12_14_041545_create_simulasis_table.php @@ -64,7 +64,7 @@ class CreateSimulasisTable extends Migration $table->decimal('nilaimarhun', $precision = 9, $scale = 2); $table->decimal('pinjaman', $precision = 9, $scale = 2); $table->decimal('bakiupah', $precision = 7, $scale = 2); - $table->decimal('cajlain', $precision = 7, $scale = 2); + $table->decimal('cajlain', $precision = 7, $scale = 2)->nullable(); $table->decimal('cajlelong', $precision = 7, $scale = 2); $table->decimal('baki', $precision = 9, $scale = 2); $table->decimal('berat', $precision = 7, $scale = 2); diff --git a/database/migrations/2021_12_14_041557_create_lelongs_table.php b/database/migrations/2021_12_14_041557_create_lelongs_table.php index 146f6470..3900d97d 100644 --- a/database/migrations/2021_12_14_041557_create_lelongs_table.php +++ b/database/migrations/2021_12_14_041557_create_lelongs_table.php @@ -67,7 +67,7 @@ class CreateLelongsTable extends Migration $table->decimal('nilaimarhun', $precision = 9, $scale = 2); $table->decimal('pinjaman', $precision = 9, $scale = 2); $table->decimal('bakiupah', $precision = 7, $scale = 2); - $table->decimal('cajlain', $precision = 7, $scale = 2); + $table->decimal('cajlain', $precision = 7, $scale = 2)->nullable(); $table->decimal('cajlelong', $precision = 7, $scale = 2); $table->decimal('baki', $precision = 9, $scale = 2); $table->decimal('berat', $precision = 7, $scale = 2); diff --git a/resources/views/simulasi/showsimulasi.blade.php b/resources/views/simulasi/showsimulasi.blade.php index 2809c818..c2d5683b 100644 --- a/resources/views/simulasi/showsimulasi.blade.php +++ b/resources/views/simulasi/showsimulasi.blade.php @@ -340,7 +340,7 @@ "orderable": false } ], - order: [[1, 'asc']], + order: [[0, 'asc']], // "ordering": false, "searching":false, "info": false,