fix database migrations to be added with delete and create
This commit is contained in:
@@ -132,7 +132,7 @@ class AutoSerahanController extends Controller
|
||||
'tarikh' => $current->toDateString(),
|
||||
'dtacct' => '1000/010',
|
||||
'ktacct' => '7000/102',
|
||||
'descpt' => 'Auto Pendahuluan Daripada V2',
|
||||
'descpt' => 'Pendahuluan Daripada V2',
|
||||
'pendahuluan' => $amaun,
|
||||
'teller' => $teller . ' (AUTO V2)',
|
||||
'date_created' => $current
|
||||
|
||||
@@ -316,7 +316,8 @@ class VaultController extends Controller
|
||||
'ktacct' => $request->ktacct,
|
||||
'descpt' => $request->keterangan,
|
||||
'pendahuluan' => $request->amaun,
|
||||
'teller' => $request->teller
|
||||
'teller' => $request->teller,
|
||||
'date_created' => $current->toDateTimeString()
|
||||
]);
|
||||
}else if($request->jenisgldetail == 'serahan')
|
||||
{
|
||||
@@ -327,7 +328,9 @@ class VaultController extends Controller
|
||||
'ktacct' => $request->ktacct,
|
||||
'descpt' => $request->keterangan,
|
||||
'serahan' => $request->amaun,
|
||||
'teller' => $request->teller
|
||||
'teller' => $request->teller,
|
||||
'date_created' => $current->toDateTimeString()
|
||||
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ class CreateApprovalWithdrawal extends Migration
|
||||
Schema::create('approval_withdrawal', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->char('kodcaw', 20);
|
||||
$table->string('action', 50);
|
||||
$table->string('pc_name', 100);
|
||||
$table->string('operasi_name', 100)->nullable();
|
||||
$table->decimal('amount', 10, 2)->default(0);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AddTimestampToGldetailTable extends Migration
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user