diff --git a/frontend/payroll-employees.html b/frontend/payroll-employees.html
index d964704..7c2229b 100644
--- a/frontend/payroll-employees.html
+++ b/frontend/payroll-employees.html
@@ -1,104 +1,228 @@
-
+
給与管理 - 従業員管理
+
+
+
@@ -597,7 +721,7 @@
async function uploadFileToServer(
file,
employeeCode,
- fileType = "image"
+ fileType = "image",
) {
const formData = new FormData();
formData.append("file", file);
@@ -609,7 +733,7 @@
{
method: "POST",
body: formData,
- }
+ },
);
if (!response.ok) {
@@ -676,10 +800,12 @@
${emp.name_kana ? `(${emp.name_kana})` : ""}
入社日: ${emp.hire_date} ${
- emp.termination_date ? ` | 退職日: ${emp.termination_date}` : ""
- }
+ emp.termination_date
+ ? ` | 退職日: ${emp.termination_date}`
+ : ""
+ }
- `
+ `,
)
.join("");
@@ -719,7 +845,7 @@
const filePath = await uploadFileToServer(
fileInput.files[0],
employeeCode,
- "image"
+ "image",
);
photoUploads[field] = filePath;
} catch (error) {
@@ -783,7 +909,7 @@
async function viewEmployee(employeeId) {
try {
const response = await fetch(
- `${API_BASE}/payroll/employees/${employeeId}`
+ `${API_BASE}/payroll/employees/${employeeId}`,
);
const employee = await response.json();
currentEmployee = employee;
@@ -796,19 +922,19 @@
生年月日: ${
employee.birth_date || "-"
} ${
- employee.birth_date
- ? `(${calculateAge(employee.birth_date)}歳)`
- : ""
- }
+ employee.birth_date
+ ? `(${calculateAge(employee.birth_date)}歳)`
+ : ""
+ }
性別: ${employee.gender || "-"}
マイナンバー: ${
employee.my_number
? `${employee.my_number.substring(
0,
- 4
+ 4,
)}-${employee.my_number.substring(
4,
- 8
+ 8,
)}-${employee.my_number.substring(8, 12)}`
: "-"
}
@@ -823,8 +949,8 @@
employee.termination_date || "-"
}
銀行: ${employee.bank_name || "-"} ${
- employee.bank_branch || ""
- }
+ employee.bank_branch || ""
+ }
口座: ${
employee.bank_account_type || ""
} ${employee.bank_account_number || "-"}
@@ -853,7 +979,7 @@
マイナンバーカード
在留カード
健康保険証
{
const taxStatus = getTaxDeductionStatus(
- dep.birth_date
+ dep.birth_date,
);
// 源泉税控除対象は16歳以上(一般扶養親族16-18歳、特定扶養親族19-22歳、老人扶養親族70歳以上)
return (
@@ -950,13 +1076,13 @@
? employee.dependents
.map((dep) => {
const taxStatus = getTaxDeductionStatus(
- dep.birth_date
+ dep.birth_date,
);
return `
${dep.name} (${
- dep.relationship
- })
+ dep.relationship
+ })
${
dep.birth_date
? ` - 生年月日: ${dep.birth_date} (${taxStatus?.age}歳)`
@@ -978,10 +1104,10 @@
: ""
}
有効期間: ${dep.valid_from} ~ ${
- dep.valid_to || "現在"
- }
+ dep.valid_to || "現在"
+ }