---
app: pos
audience:
  - owner
  - staff
ui_only: false
agent_actions: []
agent_examples:
  - what happens to sales when the internet drops?
  - the POS says sync failed after 5 attempts
llm_weight: normal
title: Selling while offline
description: Sales continue without internet — queued on the device, sent when
  the connection returns, with a clear list of what cannot happen offline.
editUrl: true
head: []
template: doc
sidebar:
  order: 2
  hidden: false
  attrs: {}
pagefind: true
draft: false
---

import { Aside } from "@astrojs/starlight/components";

**Who this is for:** anyone selling on a shaky connection.

## What happens

The POS keeps a copy of the items, prices, customers and the current shift on the device. When the connection drops it shows **You're offline** and keeps working from that copy: sales are saved locally and queued — *Invoice akan di-submit saat sync* — and sent in order when the connection returns. Stock shown while offline is the last known figure.

## Works offline

- Ringing up sales, taking cash and other payments, printing receipts.
- Creating a new customer during a sale (matched to an existing one by phone number at sync).
- Deleting a **draft** sale that was never submitted.

## Needs the connection

- Opening or closing a shift.
- Amending or cancelling a submitted sale, and returns.
- Anything that lives outside the POS (reports, the ERP).

## Sync

Queued sales are sent one by one. A failed one is retried five times with growing pauses (1 s to 16 s); after that it is marked **dead** and the POS shows *Sync gagal setelah 5 percobaan. Hubungi Admin.* — the sale is still on the device, nothing is lost, and the owner can resolve it. A sale whose customer or item was changed on the server in the meantime is shown for review rather than overwritten.

<Aside type="caution" title="Do not clear the browser data while sales are queued">
  The queue lives in the browser's storage on that device. The POS warns — *Masih ada transaksi offline yang belum terkirim* — if you try to sign out with sales still queued.
</Aside>

## Troubleshooting

- **"Sesi berakhir. Silakan login ulang untuk sync."** — the session expired while offline; sign in again on the same device and the queue continues.
- **Stock looks wrong offline** — it is the snapshot from the last online moment; it corrects itself after sync.

## Related

[Open and close a shift](/pos/selling/open-and-close-a-shift/) · [Payments and barcodes](/pos/selling/payments-and-barcodes/)