Juniper GoodsDaily sales desk

A clear morning number

How did yesterday go?

Each report comes from the orders in PostgreSQL. Open one before the day gets noisy.

{% if report %}

Report for

{{ report.report_date.strftime('%A, %B %-d') }}

All reports
Revenue${{ '%.2f'|format(report.revenue_cents / 100) }}
Orders{{ report.order_count }}
Week change{% if report.week_change_percent is none %}New{% else %}{{ '%+.1f'|format(report.week_change_percent) }}%{% endif %}

What sold

{% for item in report.top_items %}
{{ loop.index }}. {{ item.name }}${{ '%.2f'|format(item.revenue_cents / 100) }}
{% endfor %}

Generated {{ report.generated_at.strftime('%b %-d at %-I:%M %p') }}

{% else %}

Your first report is one run away.

Open the Daily Sales Generator Service and choose Run Now.

{% endif %}

Report history

{% for item in reports %}{{ item.report_date.strftime('%b %-d') }}${{ '%.2f'|format(item.revenue_cents / 100) }}{{ item.order_count }} orders{% else %}

No reports yet.

{% endfor %}