fix : 자재관리 API (리스트,조회,등록,수정,삭제)
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user