96 lines
2.1 KiB
TypeScript
96 lines
2.1 KiB
TypeScript
|
|
import { HrPayroll, PayrollStatusEnum } from "../types/hr";
|
||
|
|
import { mockEmployees } from "./mockEmployees";
|
||
|
|
|
||
|
|
export const mockPayrolls: HrPayroll[] = [
|
||
|
|
{
|
||
|
|
id: "1",
|
||
|
|
employeeId: "1",
|
||
|
|
employee: mockEmployees.find((emp) => emp.id === "1"),
|
||
|
|
period: "2023-01",
|
||
|
|
baseSalary: 3000,
|
||
|
|
allowances: [],
|
||
|
|
deductions: [],
|
||
|
|
overtime: 0,
|
||
|
|
bonus: 0,
|
||
|
|
grossSalary: 0,
|
||
|
|
netSalary: 0,
|
||
|
|
tax: 0,
|
||
|
|
socialSecurity: 0,
|
||
|
|
status: PayrollStatusEnum.Cancelled,
|
||
|
|
creationTime: new Date(),
|
||
|
|
lastModificationTime: new Date(),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: "2",
|
||
|
|
employeeId: "2",
|
||
|
|
employee: mockEmployees.find((emp) => emp.id === "2"),
|
||
|
|
period: "2023-01",
|
||
|
|
baseSalary: 3200,
|
||
|
|
allowances: [],
|
||
|
|
deductions: [],
|
||
|
|
overtime: 0,
|
||
|
|
bonus: 0,
|
||
|
|
grossSalary: 0,
|
||
|
|
netSalary: 0,
|
||
|
|
tax: 0,
|
||
|
|
socialSecurity: 0,
|
||
|
|
status: PayrollStatusEnum.Paid,
|
||
|
|
creationTime: new Date(),
|
||
|
|
lastModificationTime: new Date(),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: "3",
|
||
|
|
employeeId: "3",
|
||
|
|
employee: mockEmployees.find((emp) => emp.id === "3"),
|
||
|
|
period: "2023-01",
|
||
|
|
baseSalary: 2800,
|
||
|
|
allowances: [],
|
||
|
|
deductions: [],
|
||
|
|
overtime: 0,
|
||
|
|
bonus: 0,
|
||
|
|
grossSalary: 0,
|
||
|
|
netSalary: 0,
|
||
|
|
tax: 0,
|
||
|
|
socialSecurity: 0,
|
||
|
|
status: PayrollStatusEnum.Approved,
|
||
|
|
creationTime: new Date(),
|
||
|
|
lastModificationTime: new Date(),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: "4",
|
||
|
|
employeeId: "4",
|
||
|
|
employee: mockEmployees.find((emp) => emp.id === "4"),
|
||
|
|
period: "2023-01",
|
||
|
|
baseSalary: 3500,
|
||
|
|
allowances: [],
|
||
|
|
deductions: [],
|
||
|
|
overtime: 0,
|
||
|
|
bonus: 0,
|
||
|
|
grossSalary: 0,
|
||
|
|
netSalary: 0,
|
||
|
|
tax: 0,
|
||
|
|
socialSecurity: 0,
|
||
|
|
status: PayrollStatusEnum.Calculated,
|
||
|
|
creationTime: new Date(),
|
||
|
|
lastModificationTime: new Date(),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
id: "5",
|
||
|
|
employeeId: "4",
|
||
|
|
employee: mockEmployees.find((emp) => emp.id === "4"),
|
||
|
|
period: "2023-01",
|
||
|
|
baseSalary: 4000,
|
||
|
|
allowances: [],
|
||
|
|
deductions: [],
|
||
|
|
overtime: 0,
|
||
|
|
bonus: 0,
|
||
|
|
grossSalary: 0,
|
||
|
|
netSalary: 0,
|
||
|
|
tax: 0,
|
||
|
|
socialSecurity: 0,
|
||
|
|
status: PayrollStatusEnum.Draft,
|
||
|
|
creationTime: new Date(),
|
||
|
|
lastModificationTime: new Date(),
|
||
|
|
},
|
||
|
|
];
|