{# Close Report Detail Partial #} {# Displays the full report content for server-side rendering #} {# Used for initial page load with today's report #} {# Sales Summary Row #}
${{ (report.salesSummary.netSalesRetail / 100)|number_format(0) }}
Net Sales
${{ (report.salesSummary.grossSalesRetail / 100)|number_format(0) }}
Gross Sales
{{ report.salesSummary.salesCount|default(0) }}
Sales Count
${{ (report.salesSummary.averageRetail / 100)|number_format(0) }}
Avg Sale
{# Buys Section #}
Buys
{{ report.buys.buysCount|default(0) }}
Buys Count
${{ (report.buys.buysCost / 100)|number_format(0) }}
Buy Cost
${{ (report.buys.buysRetail / 100)|number_format(0) }}
Buy Retail
${{ (report.buys.buysOutstanding / 100)|number_format(0) }}
Outstanding
{# Labor Section (if available) #} {% if report.labor %}
Labor
{{ report.labor.laborPercentage|default(0)|number_format(1) }}%
Labor %
${{ (report.labor.laborDollars / 100)|number_format(0) }}
Labor Cost
{{ report.labor.laborHours|default(0)|number_format(1) }}
Hours Worked
{% endif %} {# Cash Section (if available) #} {% if report.cash %} {% set cashVariance = report.cash.cashVariance|default(0) %} {% set varianceClass = cashVariance == 0 ? 'success' : (cashVariance|abs > 500 ? 'danger' : 'warning') %}
Cash
${{ (report.cash.cashPaidIn / 100)|number_format(0) }}
Paid In
${{ (report.cash.cashPaidOut / 100)|number_format(0) }}
Paid Out
${{ (cashVariance / 100)|number_format(0) }}
Variance
${{ (report.cash.safeBalance / 100)|number_format(0) }}
Safe Balance
{% endif %} {# Checklists Section (if available) #} {% if report.checklists %}
Checklists
{# Opening Checklist - uses flat structure from ChecklistDataVO #} {% if report.checklists.hasOpeningChecklist %}
Opening Checklist {% if report.checklists.openingCheckListSubmitter %} {{ report.checklists.openingCheckListSubmitter }} {% endif %}
{% if report.checklists.openingCheckListComments %}
{{ report.checklists.openingCheckListComments }}
{% endif %}
Submitted
{% endif %} {# Closing Checklist - uses flat structure from ChecklistDataVO #} {% if report.checklists.hasClosingChecklist %}
Closing Checklist {% if report.checklists.closingCheckListSubmitter %} {{ report.checklists.closingCheckListSubmitter }} {% endif %}
{% if report.checklists.closingCheckListComments %}
{{ report.checklists.closingCheckListComments }}
{% endif %}
Submitted
{% endif %} {# Task Summary (if tasks exist) #} {% if report.checklists.totalTaskCount > 0 %}
Tasks Completed {{ report.checklists.completedTaskCount }} / {{ report.checklists.totalTaskCount }}
{% endif %} {# Day Close Info (if submitted) #} {% if report.checklists.dayCloseSubmitter %}
Day Closed By {{ report.checklists.dayCloseSubmitter }}
{% if report.checklists.dayCloseComments %}
{{ report.checklists.dayCloseComments }}
{% endif %}
{% endif %}
{% endif %}