Update janasimulasi function, add split function
This commit is contained in:
@@ -23,6 +23,7 @@ class CreateSimulasisTable extends Migration
|
||||
$table->string('jbg')->nullable();
|
||||
$table->integer('cajlelong')->nullable();
|
||||
$table->integer('fasa')->default(0);
|
||||
$table->integer('success_import')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -96,9 +97,9 @@ class CreateSimulasisTable extends Migration
|
||||
$table->string('nota');
|
||||
$table->string('karat');
|
||||
$table->decimal('berat', $precision = 7, $scale = 2);
|
||||
$table->decimal('harga', $precision = 5, $scale = 2);
|
||||
$table->decimal('harga', $precision = 5, $scale = 2)->nullable();
|
||||
$table->decimal('n_marhun', $precision = 9, $scale = 2);
|
||||
$table->decimal('hargaasas', $precision = 11, $scale = 2);
|
||||
$table->decimal('hargaasas', $precision = 11, $scale = 2)->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('simulasibid_id')
|
||||
@@ -136,6 +137,45 @@ class CreateSimulasisTable extends Migration
|
||||
|
||||
});
|
||||
|
||||
Schema::create('cawangan_temp', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('caw_name');
|
||||
$table->string('caw_code');
|
||||
$table->string('lokasi');
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
|
||||
Schema::create('gadai_temp', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('kodcaw');
|
||||
$table->string('norujukan');
|
||||
$table->decimal('tempoh');
|
||||
$table->decimal('kadarupah');
|
||||
$table->decimal('nilaimarhun');
|
||||
$table->decimal('bakipjm');
|
||||
$table->decimal('bakiupah');
|
||||
$table->decimal('cajlain')->nullable();
|
||||
$table->decimal('berat')->nullable();
|
||||
$table->string('marhun')->nullable();
|
||||
$table->decimal('percentpinj')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
|
||||
Schema::create('marhun_temp', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('norujukan');
|
||||
$table->string('karat');
|
||||
$table->decimal('berat');
|
||||
$table->integer('bil');
|
||||
$table->string('marhun');
|
||||
$table->string('nota');
|
||||
$table->decimal('n_marhun');
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -152,5 +192,7 @@ class CreateSimulasisTable extends Migration
|
||||
Schema::dropIfExists('simulasibidmarhun');
|
||||
Schema::dropIfExists('simkarat');
|
||||
Schema::dropIfExists('simkarat_temp');
|
||||
Schema::dropIfExists('gadai_temp');
|
||||
Schema::dropIfExists('marhun_temp');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user