fix : 자재관리 API (리스트,조회,등록,수정,삭제)

This commit is contained in:
2025-08-21 22:28:34 +09:00
parent d861465276
commit ed993476be
6 changed files with 654 additions and 61 deletions

View File

@@ -5,6 +5,8 @@
use App\Models\Commons\File;
use App\Models\Commons\Tag;
use App\Models\Qualitys\Lot;
use App\Traits\ModelTrait;
use App\Traits\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
@@ -13,20 +15,13 @@
*/
class Material extends Model
{
use SoftDeletes;
use SoftDeletes, ModelTrait, BelongsToTenant;
// 자재(품목) 마스터
protected $fillable = [
'name', // 자재명(품명)
'specification', // 규격
'material_code', // 자재코드
'unit', // 단위
'is_inspection', // 검사대상 여부(Y/N)
'search_tag', // 검색 태그
'remarks', // 비고
protected $casts = [
'attributes' => 'array',
'options' => 'array',
];
// 자재 입고 내역
public function receipts()
{