feat: 매출 세금계산서/거래명세서 토글 API 연동

- UpdateSaleRequest: tax_invoice_issued, transaction_statement_issued 필드 추가
- SaleService: 토글 필드 업데이트 로직 추가 (canEdit 우회)
- Sale 모델: fillable에 토글 필드 추가
- 마이그레이션: sales 테이블에 토글 컬럼 추가
This commit is contained in:
2025-12-24 15:46:09 +09:00
parent 8686b199ee
commit 1e161c16b0
4 changed files with 48 additions and 3 deletions

View File

@@ -21,6 +21,8 @@ public function rules(): array
'total_amount' => ['sometimes', 'numeric', 'min:0'],
'description' => ['nullable', 'string', 'max:1000'],
'deposit_id' => ['nullable', 'integer', 'exists:deposits,id'],
'tax_invoice_issued' => ['sometimes', 'boolean'],
'transaction_statement_issued' => ['sometimes', 'boolean'],
];
}