ubah entity category

This commit is contained in:
KhatamNugraha
2024-07-12 09:21:26 +07:00
parent 4992ccd839
commit 7866ed565e
3 changed files with 24 additions and 24 deletions

View File

@ -13,23 +13,23 @@ class Category extends Model
{ {
use HasFactory; use HasFactory;
protected $connection = 'db2'; protected $connection = 'pgsql';
protected $table = 'STG_DB.CATEGORY'; protected $table = 'category';
protected $primaryKey = 'ID'; protected $primaryKey = 'id';
//public $incrementing = false; //public $incrementing = false;
protected $fillable = [ protected $fillable = [
"'ID', "'id',
'DESCRIPTION' 'description'
'SHORT_NAME'," 'short_name',"
]; ];
public function customers(): BelongsTo // public function customers(): BelongsTo
{ // {
return $this->belongsTo(Customer::class, 'CUSTOMER_NO'); // return $this->belongsTo(Customer::class, 'CUSTOMER_NO');
} // }
} }

View File

@ -13,22 +13,22 @@ class LimitReference extends Model
{ {
use HasFactory; use HasFactory;
protected $connection = 'db2'; protected $connection = 'pgsql';
protected $table = 'STG_DB.LIMIT_REFERENCE'; protected $table = 'limit_reference';
protected $primaryKey = 'ID'; protected $primaryKey = 'id';
//public $incrementing = false; //public $incrementing = false;
protected $fillable = [ protected $fillable = [
"'ID', "'id',
'DESC_NAME' 'desc_name'
'SHORT_NAME', 'short_name',
'REDUCING_LIMIT', 'reducing_limit',
'LIMIT_MNEMONIC', 'limit_nemonic',
'LIMIT_PERCENTAGE', 'limit_reference',
'DESCRIPTION', 'description',
'BATCH_DATE', 'batch_date',
'INSERT_DATE'" 'insert_date'"
]; ];

View File

@ -88,7 +88,7 @@
<select class="form-select form-select-sm " aria-label="Small select example" name="jenis_fasilitas"> <select class="form-select form-select-sm " aria-label="Small select example" name="jenis_fasilitas">
<option selected>Select Limit Type</option> <option selected>Select Limit Type</option>
@foreach ($data['limitReference'] as $item2) @foreach ($data['limitReference'] as $item2)
<option value="{{$item2->SHORT_NAME}}">{{$item2->SHORT_NAME}}</option> <option value="{{$item2->short_name}}">{{$item2->short_name}}</option>
@endforeach @endforeach
</select> </select>
</div> </div>
@ -100,7 +100,7 @@
<select class="form-select form-select-sm " aria-label="Small select example" name="jenis_rekening"> <select class="form-select form-select-sm " aria-label="Small select example" name="jenis_rekening">
<option selected>Select Account Type</option> <option selected>Select Account Type</option>
@foreach ($data['Category'] as $item3) @foreach ($data['Category'] as $item3)
<option value="{{$item3->SHORT_NAME}}">{{$item3->SHORT_NAME}}</option> <option value="{{$item3->short_name}}">{{$item3->short_name}}</option>
@endforeach @endforeach
</select> </select>
</div> </div>