KSmartKawaniDocs
Getting started

Importing your existing data

Bringing a roster, leave balances and time records across from your old system — the file format, the order to load them in, and what an import will never do.

If you are moving to SmartKawani from a spreadsheet or another payroll system, you do not have to retype anybody. Settings → Import takes three files: your people, their leave balances, and their attendance history.

Only owners, admins and HR can import.

The short version

  1. Download the template for Employees and fill it in.
  2. Upload it. SmartKawani shows you exactly what it would do, line by line.
  3. Read that, then press the button that commits it.
  4. Repeat for leave balances, then attendance, if you want them.

Nothing is written until you have seen the preview and confirmed it.

Load them in this order

Employees first. Leave balances and attendance both refer to people by their employee code, so nothing else will match until the roster is in.

# File What it is Needed?
1 Employees People and their pay. Yes — everything else refers back to it.
2 Leave balances How much leave each person has and has used. Only if you are carrying balances over.
3 Attendance history Daily time records from before the switch. Only if you want the history visible in the app.

Attendance history is genuinely optional. Payroll from here on reads what SmartKawani records itself; the import is for being able to look back.

The file

CSV. Save as CSV from Excel, Google Sheets or Numbers. You can also paste rows straight into the box on the page if that is easier than making a file.

Each import has a Download template button. Use it.

The template comes with the column names and one filled-in example row. That example answers the questions that otherwise cause a long list of errors on the first try: what the dates should look like, which words the status column accepts, and whether the salary can have a comma in it.

Delete the example row before you upload.

A few things that are handled for you, so you do not need to worry about them:

  • Accented names and the peso sign. Names like Peñaflor and amounts written with ₱ come through as themselves.
  • Commas inside a cell. An address or a note with a comma in it is fine.
  • Files from a Mac or a Windows PC. Both are read.

Column order does not matter, and neither does having extra columns SmartKawani does not know about — those are listed back to you as ignored rather than treated as an error.

Header names are read forgivingly. Case, spaces and hyphens are all ignored, so Employee Code, employee-code and EMPLOYEE_CODE are the same column as far as SmartKawani is concerned. You do not have to make your spreadsheet ugly to match a template.

A file missing a required column is refused before anything is read, and the message names which ones. A file with a header row and no rows under it is refused too, rather than reported as a successful import of nothing.

What the preview tells you

Uploading runs a dry run. Nothing is written. You get, line by line:

  • Create — this employee code is new.
  • Update — this code is already on the roster and would be changed.
  • Error — what is wrong with the line, in words. That line is skipped and the rest still go in; fix it and upload the file again.

It also lists any columns SmartKawani does not recognise. That way a misspelled header is obvious, instead of leaving you wondering why a column was ignored.

What an import will never do

  • It never deletes anyone. There is no "sync" behaviour and no way to remove people by leaving them out of a file.
  • It never clears a value. A blank cell leaves whatever is already there alone. This is deliberate: without it, a partial file — the one somebody exports with just names and departments — would wipe bank details off half the roster on the first re-upload.
  • It never touches a finalized payroll. Attendance rows falling inside a finalized run are refused, with the line called out in the preview. Pay that has been issued does not move because a file said so.
  • It does not import payroll history, payslips or loans. Past pay belongs in the system that ran it. SmartKawani will not manufacture payslips for periods it did not compute.

Because a repeat upload updates rather than duplicates, it is safe to fix your file and upload it again. That is the intended way to work through errors.

Employees

Matched on employee_code — their ID in your current system, the number their old payslip printed. It must be unique.

Required: employee_code, last_name, first_name.

The rest is optional and can come later: contact details, position and department, date hired, government numbers (SSS, PhilHealth, Pag-IBIG, TIN), bank details, and pay.

A few worth knowing:

  • date_hired — YYYY-MM-DD. Used for pro-rating 13th month pay, so it is worth getting in.
  • status — active, inactive or resigned. Blank means active.
  • basic_salary — monthly, digits only. No peso sign, no commas.
  • pay_cycle — semimonthly, monthly, biweekly or weekly.
  • email — their work address. It is what lets them claim their own login later, so it is worth filling in even if you are not inviting anyone yet.
  • device_pin — only if you have the Biometric Devices add-on: the ID number their terminal knows them by. Ignored if you do not, so an old file carrying the column will not break anything.

Leave balances

Matched on employee_code + leave_type_code + year. Re-uploading replaces that person's figures for that leave type and year.

Required: employee_code, leave_type_code, year, entitled.

leave_type_code must already exist under Leave → Types. SIL, VL, SL, EL and LWOP are created for you when your company is set up, so those work immediately; anything else you use, add first.

used is optional — days already taken this year. Halves are fine.

Attendance history

Matched on employee_code + work_date. Re-uploading overwrites that day.

Required: employee_code, work_date (as YYYY-MM-DD).

  • status — present, absent, leave, leave_unpaid, holiday or rest_day. Blank means present.
  • late_minutes and undertime_minutes — leave these blank if you never tracked them. Blank and zero are different claims: blank means nobody measured, zero means somebody measured and found nothing. SmartKawani shows a dash for the first and a 0 for the second, and it will not turn one into the other.
  • hours_worked, break_minutes, overtime_hours, night_hours and note are all optional.

Days inside a finalized payroll run are refused. Everything else on the same upload still goes in.

If something goes wrong

"A required column is missing." The header row does not match. Download the template and compare — the commonest cause is a renamed column, or a spreadsheet that has quietly added a blank first row above your headers.

Every line is an error. Usually the example row was left in and it is colliding, or the file was saved as something other than CSV. Re-save as CSV.

The numbers came in wrong. Check for peso signs, thousands separators and trailing spaces in the salary column. Digits only.

Somebody was updated when you expected a new person. Their employee_code already exists on the roster. Codes are matched case-insensitively, so emp-001 and EMP-001 are the same person.

You imported the wrong file. There is no undo. Re-upload a corrected file — because everything is matched on a key you control, a correcting upload puts things right rather than duplicating them. For people added by mistake, set their status to resigned; SmartKawani does not delete employees, since payslips and attendance refer back to them.