feat: [payroll] 장기요양보험 공제항목 추가

- 건강보험에서 장기요양보험 분리하여 별도 항목으로 표시
- 급여등록/수정/일괄생성/상세보기/CSV 내보내기 모두 반영
- 공제순서: 국민연금-건강보험-장기요양보험-고용보험-근로소득세-지방소득세
This commit is contained in:
김보곤
2026-02-27 10:06:28 +09:00
parent b292a98136
commit 2d7fc3a83a
5 changed files with 25 additions and 6 deletions

View File

@@ -296,7 +296,7 @@ public function export(Request $request): StreamedResponse
$file = fopen('php://output', 'w');
fwrite($file, "\xEF\xBB\xBF"); // UTF-8 BOM
fputcsv($file, ['사원명', '부서', '기본급', '고정연장근로수당', '상여금', '총지급액', '국민연금', '건강보험', '고용보험', '근로소득세', '지방소득세', '총공제액', '실수령액', '상태']);
fputcsv($file, ['사원명', '부서', '기본급', '고정연장근로수당', '상여금', '총지급액', '국민연금', '건강보험', '장기요양보험', '고용보험', '근로소득세', '지방소득세', '총공제액', '실수령액', '상태']);
foreach ($payrolls as $payroll) {
$profile = $payroll->user?->tenantProfiles?->first();
@@ -313,6 +313,7 @@ public function export(Request $request): StreamedResponse
$payroll->gross_salary,
$payroll->pension,
$payroll->health_insurance,
$payroll->long_term_care,
$payroll->employment_insurance,
$payroll->income_tax,
$payroll->resident_tax,