Appearance
Salary Advance
hrms.salary_advance · every change is kept in the audit log · numbered ADV-{YYYY}-{####}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
employee | employee | link → hrms.employee | required |
advance_amount | advance amount | money | required |
emi_amount | emi amount | money | |
emi_months | emi months | number | min 1 |
reason | reason | longtext | |
requested_on | requested on | date | |
remaining_amount | remaining amount | money | |
status | status | select | one of: Pending, Approved, Rejected; default "Pending" |
paid_status | paid status | select | one of: Not Paid, Paid; default "Not Paid" |
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/salary_advance?<field>=<value>&limit=100&offset=0
POST /api/hrms/salary_advance
GET /api/hrms/salary_advance/:id
PATCH /api/hrms/salary_advance/:id
DELETE /api/hrms/salary_advance/:id