fix : 모델 및 자재관리 수정
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
use App\Models\Qualitys\Lot;
|
||||
use App\Traits\ModelTrait;
|
||||
use App\Traits\BelongsToTenant;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
@@ -22,6 +23,10 @@ class Material extends Model
|
||||
'options' => 'array',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'deleted_at',
|
||||
];
|
||||
|
||||
// 자재 입고 내역
|
||||
public function receipts()
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class Product extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id','code','name','category_id',
|
||||
'product_type', // 라벨/분류용
|
||||
'product_type', // 라벨/분류용
|
||||
'attributes','description','is_active',
|
||||
'is_sellable','is_purchasable','is_producible',
|
||||
'created_by','updated_by'
|
||||
@@ -30,6 +30,10 @@ class Product extends Model
|
||||
'is_producible' => 'boolean',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'deleted_at',
|
||||
];
|
||||
|
||||
// 분류
|
||||
public function category() { return $this->belongsTo(Category::class, 'category_id'); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user