update migration tangguhlelong
This commit is contained in:
@@ -580,16 +580,16 @@ class TangguhLelongController extends Controller
|
||||
$pengesahan->diminta_pada = $currentdate;
|
||||
$pengesahan->save();
|
||||
}
|
||||
|
||||
$cwgn = Cawangan::where('caw_code','=',$bidmarhun->kodcaw)
|
||||
->first();
|
||||
|
||||
$customer = Customer::where('kpbaru','=',$nokp)
|
||||
->orWhere('kplama','=',$nokp)
|
||||
->join('poskod','customer.poskod','=','poskod.poskod')
|
||||
->join('daerah','poskod.koddaerah','=','daerah.koddaerah')
|
||||
->join('negeri','poskod.kodnegeri','=','negeri.kodnegeri')
|
||||
->first();
|
||||
|
||||
$cwgn = Cawangan::where('caw_code','=',$bidmarhun->kodcaw)
|
||||
->first();
|
||||
->first();
|
||||
|
||||
$lelongbid[$index1]['nama'] = ($customer) ? $customer : dd($nokp);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class CreateTangguhlelongTable extends Migration
|
||||
$table->string('nota')->nullable();;
|
||||
$table->timestamps();
|
||||
$table->integer('status')->nullable(); //new added
|
||||
$table->string('filetype')->nullable();
|
||||
$table->string('file_type')->nullable();
|
||||
|
||||
// $table->foreign('lelong_id')
|
||||
// ->references('id')->on('lelong')
|
||||
|
||||
Reference in New Issue
Block a user