Appearance
Employee Loan
hrms.loan · every change is kept in the audit log · numbered LN-{YYYY}-{####}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
employee | employee | link → hrms.employee | required |
loan_type | loan type | text | required |
loan_amount | loan amount | money | required |
interest_rate | interest rate | decimal | min 0 |
emi_amount | emi amount | money | |
emi_months | emi months | number | min 1 |
remaining_months | remaining months | number | min 0 |
remaining_amount | remaining amount | money | |
document | document | file | |
status | status | select | one of: Pending, Approved, Rejected; default "Pending" |
repayment_status | repayment status | select | one of: Inactive, Active; default "Inactive" |
Permissions
| Role | Can |
|---|---|
hrms:admin | read, update |
hrms:payroll | read, update |
hrms:employee | read, create, delete — only own rows (via employee) |
API
http
GET /api/hrms/loan?<field>=<value>&limit=100&offset=0
POST /api/hrms/loan
GET /api/hrms/loan/:id
PATCH /api/hrms/loan/:id
DELETE /api/hrms/loan/:id