- IncomeTaxBracket 모델 추가 (2024 간이세액표 DB 조회) - PayrollService 전면 개편: 4대보험 + 소득세 자동 계산 엔진 - 10,000천원 초과 고소득 구간 공식 계산 지원 - 과세표준 = 총지급액 - 식대(비과세), 10원 단위 절삭 - 일괄 생성(bulkGenerate), 전월 복사(copyFromPrevious) 기능 - 확정취소(unconfirm), 지급취소(unpay) 상태 관리 - 계산 미리보기(calculatePreview) 엔드포인트 추가 - 공제항목 수동 오버라이드(deduction_overrides) 지원 - Payroll 모델에 long_term_care, options 필드 추가
30 lines
642 B
PHP
30 lines
642 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\V1\Payroll;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class CopyFromPreviousPayrollRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'year' => ['required', 'integer', 'min:2000', 'max:2100'],
|
|
'month' => ['required', 'integer', 'min:1', 'max:12'],
|
|
];
|
|
}
|
|
|
|
public function attributes(): array
|
|
{
|
|
return [
|
|
'year' => __('validation.attributes.pay_year'),
|
|
'month' => __('validation.attributes.pay_month'),
|
|
];
|
|
}
|
|
}
|