{% extends "shopyo_base/module_base.html" %} {% set active_page = 'pos' %} {% block pagehead %}Shift Management{% endblock %} {% block sidebar %}{% include 'pos/blocks/sidebar.html' %}{% endblock %} {% block module_content %}

Shift Management

Open and close cash register shifts

{% if active_shift %}

Shift #{{ active_shift.id }} — Open

Since {{ active_shift.opened_at.strftime('%Y-%m-%d %H:%M') }}

{{ currency_symbol }}{{ '%.2f'|format(active_shift.total_sales()) }}

Sales this shift

{% else %}
{% endif %}

Past Shifts

{{ shifts|length }} total

{% 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' }} {{ currency_symbol }}{{ '%.2f'|format(s.starting_cash|float) }} {{ currency_symbol }}{{ '%.2f'|format(s.expected_cash|float) }} {{ currency_symbol }}{{ '%.2f'|format(s.actual_cash|float) if s.actual_cash else '-' }} {% if s.variance_cash %} {{ currency_symbol }}{{ '%.2f'|format(s.variance_cash|float|abs) }} {% else %}-{% endif %}
No shifts recorded
{% endblock %}