feat: 매출 세금계산서/거래명세서 토글 API 연동
- UpdateSaleRequest: tax_invoice_issued, transaction_statement_issued 필드 추가 - SaleService: 토글 필드 업데이트 로직 추가 (canEdit 우회) - Sale 모델: fillable에 토글 필드 추가 - 마이그레이션: sales 테이블에 토글 컬럼 추가
This commit is contained in:
@@ -21,6 +21,8 @@ class Sale extends Model
|
||||
'total_amount',
|
||||
'description',
|
||||
'status',
|
||||
'tax_invoice_issued',
|
||||
'transaction_statement_issued',
|
||||
'tax_invoice_id',
|
||||
'deposit_id',
|
||||
'created_by',
|
||||
@@ -29,11 +31,13 @@ class Sale extends Model
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'sale_date' => 'date',
|
||||
'sale_date' => 'date:Y-m-d',
|
||||
'supply_amount' => 'decimal:2',
|
||||
'tax_amount' => 'decimal:2',
|
||||
'total_amount' => 'decimal:2',
|
||||
'client_id' => 'integer',
|
||||
'tax_invoice_issued' => 'boolean',
|
||||
'transaction_statement_issued' => 'boolean',
|
||||
'tax_invoice_id' => 'integer',
|
||||
'deposit_id' => 'integer',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user