53 lines
1.0 KiB
PHP
53 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Models\OLDLMS;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Casts\Attribute;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PrescriptionItem extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'nIDPrescription',
|
|
'sItemCode',
|
|
'sOriginCode',
|
|
'sItemName',
|
|
'nQty',
|
|
'sSatuan',
|
|
'sSigna',
|
|
'sNote',
|
|
'isRacikan',
|
|
'ParentCode',
|
|
];
|
|
|
|
|
|
// public $sStatusNames = [
|
|
// 0 => 'Menunggu Konfirmasi',
|
|
// 1 => 'Diterima',
|
|
// 2 => 'Ditolak',
|
|
// 3 => 'Selesai',
|
|
// 4 => 'Expired',
|
|
// ];
|
|
|
|
const CREATED_AT = 'dCreateOn';
|
|
const UPDATED_AT = 'dUpdateOn';
|
|
const DELETED_AT = 'dDeleteOn';
|
|
|
|
protected $connection = 'oldlms';
|
|
|
|
protected $table = 'tx_prescription_items';
|
|
|
|
// protected $appends = [
|
|
// 'status_name',
|
|
// ];
|
|
|
|
protected $casts = [
|
|
'dTanggalResep' => 'datetime',
|
|
];
|
|
|
|
protected $primaryKey = 'nID';
|
|
}
|