# Staff attendance

Section: Settings. Address: https://vende.id/docs/pengaturan/absensi-pegawai?lang=en

Staff check in and out from their own phones with a QR on the shop screen, their location and a selfie, and the recap is used to work out wages.

With staff attendance, each person checks in and out from their own phone on the **My Attendance** menu. Vende marks late, left early, overtime and absent days by their work schedule, and you read the recap per person to work out wages, yourself or through [Payroll](https://vende.id/docs/kas-dan-keuangan/penggajian?lang=en).

This is an extra feature. If its menu is missing, contact the Vende team to switch it on.

Attendance is managed by holders of the **Attendance Manager** role. When the feature is switched on the first time, holders of **Settings** and **Finance Manager** get it at once. You can give the role to others in **Settings → Users**. See [Roles and permissions](https://vende.id/docs/pengaturan/peran-dan-hak-akses?lang=en).

## Setting up attendance

1. Open **Settings → Attendance** and check its safeguards (see below).
2. Set each branch's location point in **Master Data → Branches** (see [The branch location point](#the-branch-location-point)).
3. Pair one QR screen at each branch (see [The QR screen at the shop](#the-qr-screen-at-the-shop)).
4. Make shifts in **Master Data → Work Shifts**, then each person's schedule in **Master Data → Work Schedules**.

The **Branches ready** part of **Settings → Attendance** shows which branches have their point set and a QR screen.

## The QR screen at the shop

A QR screen is a till or tablet at the shop that shows the attendance QR. The QR changes every 30 seconds.

1. On the device that will be the screen, sign in to Vende as an Attendance Manager.
2. Open **Settings → Attendance Phones & Screens**, then tap **Make this device a QR screen**.
3. Pick its branch, give it a name, for example Front till, then tap **Make it a QR screen**.

Your account is signed out on that device at once, so nobody at the shop can use Vende with your account. The **Attendance QR Screen** page opens and from then on shows without signing in. Tap **Full screen**, then leave the screen on. When the till is also used for selling, sign in to Vende again in another tab as usual.

A branch may have several screens. A screen no longer used is revoked from the **QR screen** tab with **Revoke**. The screen's code renews itself every hour, so a code copied out of that screen's browser stops working. If a screen suddenly says it is not paired, a copy of it may be in use somewhere else: revoke that screen in the **QR screen** tab, pair it again, and check who opened its browser settings.

## The branch location point

1. Open **Master Data → Branches** and tap the branch.
2. In **Attendance location**, paste the shop's point from Google Maps into **Latitude** (press and hold the shop in Google Maps, then copy the numbers). Both fields fill themselves. Or tap **Use this device's location** while you are at the shop, best from a phone outdoors. A location off by more than 100 m is not used, because a till computer often reads its location from Wi-Fi and can be far off.
3. Set the **Radius**, 100 m by default.
4. Tap **Save**.

At a branch without a point, the phone's location is not checked.

## Shifts and work schedules

- **Master Data → Work Shifts**: make shifts such as Morning 08:00 to 17:00. An end before the start means the next day, for example a night shift from 22:00 to 06:00. A night shift is written on the day it starts.
- **Master Data → Work Schedules**: one schedule per person, with a shift or Day off for each weekday, their branch, the date absences count from, and the yearly annual leave when there is one.
- A change for one date (a swap, a day off) goes in **Changes per date** on the schedule, or for everyone at once on the **Weekly schedule**.
- **Shop holiday** makes one date a day off for everyone, for example a public holiday.
- A change to the weekly pattern applies from today. Dates already past are not judged by the new pattern; use **Recalculate from schedule** or a change per date for that.
- Someone switched off and later switched back on counts again from the day they are switched back on, so the days they were off never become absences.

Someone without a schedule can still check in, but nothing counts as late, overtime or absent.

## Checking in and out

1. The person opens **My Attendance** on their phone, then taps **Check in** or **Check out**.
2. With the QR on, they scan the QR on the QR screen. In Chrome on Android the camera opens inside Vende. On other phones, use the phone's Camera app and tap its link: My Attendance opens again and goes on by itself. On an iPhone, open My Attendance in Safari, not from the Vende icon on the home screen, because the Camera app's link always opens in Safari. After the QR is read there are 3 minutes to finish.
3. When checking in, they take a selfie while the selfie is on.
4. They tap **Send**. The phone's location is read only at that moment when the branch has a point. When it is refused as too far or not accurate enough, move, then tap **Send** again: the location is read again.

Late and early are counted from the shift times, after the grace in **Settings → Attendance**. A check-out is still taken up to 8 hours after the shift ends. After that the day shows **Forgot to check out**. A day whose shift ends without a check-in shows **Absent**.

## One phone per person

The first phone used to check in becomes the person's attendance phone. A check-in from another phone waits until an Attendance Manager taps **Allow** in **Settings → Attendance Phones & Screens**. The old phone is revoked by itself. After a person's phone is revoked, the next check-in from any phone, the revoked one included, also waits for **Allow**. One phone is for one person only. If the phone's browser data is cleared, it counts as a new phone.

## Leave and sick days

The person taps **Ask** on My Attendance, picks the type, the dates and the reason, and may add a photo of the proof. An Attendance Manager approves or rejects it in **Transactions → Leave**. An approved request counts as leave of absence, sick or annual leave in the recap, not as absence. An annual leave request beyond what is left is refused. When someone calls in, tap **Write for a person**: the request is approved at once.

## Overtime

Leaving at least 30 minutes after the schedule (you can change it) makes candidate overtime. It is counted from the shift's end, or from the check-in when the person only arrived after the shift ended, so it is never more than the time worked. Working on a day off of the schedule makes all its hours candidate overtime. Overtime counts in the recap only once approved in **Transactions → Attendance** with **Approve overtime**. You may approve fewer minutes than the candidate.

## Correcting attendance

In **Transactions → Attendance**, tap **Evidence** to see the selfie, the QR screen scanned and the phone's distance to the shop. From the three-dot menu:

- **Correct**: for example filling in a forgotten check-out. The reason is required and kept in the history.
- **Mark absent**: for a check-in the person did not make. The person then cannot check in again on that work day. If it was a mistake, correct the day.
- **Recalculate from schedule**: days written before the schedule changed follow the new schedule.

For a day worked without checking in from the phone, tap **Add attendance**.

## Your own attendance

An Attendance Manager does not decide their own attendance: overtime, leave, corrections, Mark absent, Recalculate, Write for a person, and allowing or revoking their own phone. The buttons do not show on their own rows. The holder of **Settings** (the shop owner) decides them, and may decide their own, since there is nobody above them.

## The attendance recap

Open **Reports → Attendance Recap** and pick the period. Each person gets one row: work days, present, late, left early, approved overtime, overtime still waiting, leave of absence, sick, annual leave, absent, forgot to check out and hours worked. Pick one person to see their days. The recap downloads as PDF, and as Excel while the Excel export feature is on. In Excel, approved overtime and hours worked are numbers of minutes, so they can be summed or multiplied by a rate. While the [Payroll](https://vende.id/docs/kas-dan-keuangan/penggajian?lang=en) feature is on, a payroll reads days present, late arrivals, absences and approved overtime straight from attendance.

## Can it be cheated?

No safeguard is 100% cheat-proof. Each one can be switched off in **Settings → Attendance**, and each closes a different way of cheating:

- **QR on the shop screen**: an old photo of the QR is useless because the QR changes every 30 seconds. But a photo or link of the QR sent right away over WhatsApp by a friend at the shop still works for less than a minute, and so does a video call. So keep the QR on together with the phone's location, and set each branch's point. It can also still be cheated if a friend at the shop carries the person's phone.
- **Phone location**: a check-in from home is refused. An app that fakes the location can still get around it.
- **Selfie**: shows who holds the phone. The face is not matched by itself, so look at the selfies now and then.
- **One phone**: one person cannot check in for many people from one phone.

Together, these make checking in for someone else much harder.

## Privacy

- The phone's location is read only when the person taps **Send**. Only its distance to the shop and its accuracy are kept, not the phone's location. Nothing is tracked outside checking in and out.
- Selfies and leave proof photos are seen only by the person and the Attendance Managers. The Auditor and General Reports do not open them.
- The Activity History of attendance (corrections, leave with its reason, schedules, phones) shows only to the Attendance Managers, not to the Auditor.
- Each person sees their own month on My Attendance.

Staff sign-in hours should cover their shifts and overtime, because staff outside their sign-in hours cannot check in. See [Limiting staff sign-in hours](https://vende.id/docs/pengaturan/jam-login-pegawai?lang=en).
