{% extends "base/module_base.html" %} {% set active_page = 'pos' %} {% block pagehead %}Shift Management{% endblock %} {% set sidebar_bgtrigger = 'pos_shifts' %} {% block sidebar %}{% include 'pos/blocks/sidebar.html' %}{% endblock %} {% block content %}

Shift Management

{% if active_shift %}
Shift #{{ active_shift.id }} open since {{ active_shift.opened_at.strftime('%Y-%m-%d %H:%M') }}
Sales this shift: ${{ '%.2f'|format(active_shift.total_sales()) }}
{% else %}
{% endif %}

Past Shifts

{% for s in shifts %} {% else %} {% endfor %}
#OpenedClosedStartingExpectedActualVariance
{{ s.id }} {{ s.opened_at.strftime('%Y-%m-%d %H:%M') if s.opened_at else '-' }} {{ s.closed_at.strftime('%Y-%m-%d %H:%M') if s.closed_at else 'open' }} ${{ '%.2f'|format(s.starting_cash|float) }} ${{ '%.2f'|format(s.expected_cash|float) }} ${{ '%.2f'|format(s.actual_cash|float) if s.actual_cash else '-' }} {{ '$%.2f'|format(s.variance_cash|float) if s.variance_cash else '-' }}
No shifts
{% endblock %}