ubah entity category
This commit is contained in:
@ -13,23 +13,23 @@ class Category extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $connection = 'db2';
|
||||
protected $table = 'STG_DB.CATEGORY';
|
||||
protected $primaryKey = 'ID';
|
||||
protected $connection = 'pgsql';
|
||||
protected $table = 'category';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'ID',
|
||||
'DESCRIPTION'
|
||||
'SHORT_NAME',"
|
||||
"'id',
|
||||
'description'
|
||||
'short_name',"
|
||||
];
|
||||
|
||||
|
||||
public function customers(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
|
||||
}
|
||||
// public function customers(): BelongsTo
|
||||
// {
|
||||
// return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
|
||||
// }
|
||||
|
||||
|
||||
}
|
@ -13,22 +13,22 @@ class LimitReference extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $connection = 'db2';
|
||||
protected $table = 'STG_DB.LIMIT_REFERENCE';
|
||||
protected $primaryKey = 'ID';
|
||||
protected $connection = 'pgsql';
|
||||
protected $table = 'limit_reference';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
//public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
"'ID',
|
||||
'DESC_NAME'
|
||||
'SHORT_NAME',
|
||||
'REDUCING_LIMIT',
|
||||
'LIMIT_MNEMONIC',
|
||||
'LIMIT_PERCENTAGE',
|
||||
'DESCRIPTION',
|
||||
'BATCH_DATE',
|
||||
'INSERT_DATE'"
|
||||
"'id',
|
||||
'desc_name'
|
||||
'short_name',
|
||||
'reducing_limit',
|
||||
'limit_nemonic',
|
||||
'limit_reference',
|
||||
'description',
|
||||
'batch_date',
|
||||
'insert_date'"
|
||||
];
|
||||
|
||||
|
||||
|
@ -88,7 +88,7 @@
|
||||
<select class="form-select form-select-sm " aria-label="Small select example" name="jenis_fasilitas">
|
||||
<option selected>Select Limit Type</option>
|
||||
@foreach ($data['limitReference'] as $item2)
|
||||
<option value="{{$item2->SHORT_NAME}}">{{$item2->SHORT_NAME}}</option>
|
||||
<option value="{{$item2->short_name}}">{{$item2->short_name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@ -100,7 +100,7 @@
|
||||
<select class="form-select form-select-sm " aria-label="Small select example" name="jenis_rekening">
|
||||
<option selected>Select Account Type</option>
|
||||
@foreach ($data['Category'] as $item3)
|
||||
<option value="{{$item3->SHORT_NAME}}">{{$item3->SHORT_NAME}}</option>
|
||||
<option value="{{$item3->short_name}}">{{$item3->short_name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user