{% extends "base.html" %} {% block content %}
Which sales have reached vendorawifi.com, and what happened when they didn't.
{% if flash_msg %}| Sold | Voucher | Amount | Status |
|---|---|---|---|
| {{ s.ts_unix | localtime }} | {{ s.code }} |
₱{{ s.pesos }} | {% if s.synced %} sent {% else %} waiting {% endif %} |
No sales recorded yet.
A sale is recorded here the moment it happens and sent shortly after. Waiting is normal — it just hasn't been sent yet. Sales are never dropped: if a send fails, the same ones go again next time.
| When | Result | Sales sent | Detail |
|---|---|---|---|
|
{{ a.last_at | localtime }}
{% if a.attempts > 1 %}
{{ a.attempts }} tries since {{ a.first_at | localtime }}
{% endif %}
|
{% if a.ok %} sent {% else %} failed {% endif %} |
{% if a.ok and a.events_sent %}
{{ a.events_acked }}{% if a.events_acked != a.events_sent %} of {{ a.events_sent }}{% endif %}
{% if a.queued_after %}
{{ a.queued_after }} still waiting
{% endif %}
{% else %}
—
{% endif %}
|
{% if a.error %}{{ a.error }} {% elif a.ok and not a.events_sent %}nothing new to send {% else %}—{% endif %} |
Repeated identical failures are grouped into one line with a try count, so a long outage stays readable. Only the most recent {{ max_rows }} attempts are kept.
{% else %}No sync attempts recorded yet. This fills in as the vendo reports its sales.