Files
sam-manage/app/Models/Finance/SalesRecord.php
김보곤 d160dd7fb7 feat:재무관리 4개 페이지 수정 (부가세/매출/미지급금)
- 부가세관리: 신고기간 1P/1C/2P/2C 형식, 세금구분(과세/영세/면세), 카드 공제분 매입 반영, 라벨 변경
- 매출관리: 작성일자/승인번호 라벨, 구분(과세/영세/면세) 추가
- 미지급금: 결제예정일/거래일자 라벨, 청구서번호 숨김, 매입세금계산서 발행여부 체크박스

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 18:27:00 +09:00

29 lines
626 B
PHP

<?php
namespace App\Models\Finance;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class SalesRecord extends Model
{
use SoftDeletes;
protected $table = 'sales_records';
protected $fillable = [
'tenant_id', 'date', 'customer', 'project', 'type', 'tax_type',
'amount', 'vat', 'status', 'invoice_no', 'memo',
];
protected $casts = [
'date' => 'date',
'amount' => 'integer',
'vat' => 'integer',
];
public function scopeForTenant($query, $tenantId)
{
return $query->where('tenant_id', $tenantId);
}
}