Component Uploader

Upload your assigned salary components for the current month

@if (!deadlinePassed && !windowValid && windowMessage) {
{{ windowMessage }}
}
1 Select Component
@if (components.length === 0) {

No components are assigned to you. Please contact your Payroll team.

}
2 Upload Excel File

Drag & drop your file here

or

{{ uploadHint }}

@if (selectedComponent && alreadyUploaded) {
{{ statusMessage }}
}
@if (selectedFile) {
{{ selectedFile.name }} ×
} @if (alreadyUploaded) { } @if (alreadyUploaded && !approved) { }
@if (deadlinePassed) {
The approval date{{ uploadDeadline ? (' (' + (uploadDeadline | date:'dd MMM yyyy') + ')') : '' }} for {{ salaryMonth ? (salaryMonth | date:'MMMM yyyy') : 'this' }} salary month has passed. Component upload is closed.
}

Upload Window

Salary Month {{ salaryMonth ? (salaryMonth | date:'MMMM yyyy') : '—' }}
Upload By {{ uploadDeadline ? (uploadDeadline | date:'dd MMM yyyy') : '—' }}
{{ deadlinePassed ? 'Deadline passed' : (windowValid ? 'Open now' : 'Closed') }}
Guidelines
    @for (g of ['Only Excel files (.xls, .xlsx) are accepted', 'Download the sample file for the exact column format', 'One upload per component — delete the old one to replace it', 'Approved uploads cannot be edited or deleted', 'Uploads are only accepted inside the monthly window']; track g) {
  • {{ g }}
  • }
@if (results && results.length) {
{{ results.length }} row(s) need attention
}
Uploaded Components {{ uploadedList.length }}
{{ row.description }} {{ row.uploadedDate ? (row.uploadedDate | date:'dd MMM yyyy, hh:mm a') : '—' }} {{ row.salaryMonth ? (row.salaryMonth | date:'MMM yyyy') : '—' }}
@if (row.status !== 'Approved') { }
You haven't uploaded any component yet.
@if (showViewPanel) {
Uploaded Rows {{ viewRows.length }} ×
{{ row.amount != null ? (row.amount | number:'1.0-2') : '—' }} No rows to show.
}