{{ __('Daily Sales') }}

@include('accounting.partials.nav')
@php $hasExistingDailySales = !empty($existingDailySales); $existingIsAuto = (bool) ($existingAuto ?? false); $existingDupes = (int) ($existingCount ?? 0) > 1; // Extract existing posted values for display $existingCash = $hasExistingDailySales ? (float) ($existingDailySales->cash_amount ?? 0) : 0; $existingPos = $hasExistingDailySales ? (float) ($existingDailySales->pos_amount ?? 0) : 0; $existingCredit = $hasExistingDailySales ? (float) ($existingDailySales->credit_amount ?? 0) : 0; $existingTotal = $existingCash + $existingPos + $existingCredit; $existingNote = $hasExistingDailySales ? ($existingDailySales->description ?? '') : ''; @endphp @if(!empty($existingWarnings))
Notice
@foreach($existingWarnings as $w)
- {{ $w }}
@endforeach
@if($hasExistingDailySales && !$existingDupes)
Previously Posted Values
Cash: {{ number_format($existingCash, 2) }}
POS: {{ number_format($existingPos, 2) }}
Credit: {{ number_format($existingCredit, 2) }}
Total: {{ number_format($existingTotal, 2) }}
@if($existingNote)
Note: {{ $existingNote }}
@endif
@endif @endif
Submit Daily Sales
Compute Off-POS, then post Daily Sales.
@if(isset($cashDrawerAccount))
Cash account: {{ $cashDrawerAccount->name }}
Location: {{ session('location_name') ?? session('location_id') }}
@endif
@php $systemCash = (float) ($context['system_cash_sales'] ?? 0); $systemCard = (float) ($context['system_pos_sales'] ?? 0); $systemCredit = (float) ($context['system_credit_sales'] ?? 0); $dueCash = (float) ($context['due_cash_collections'] ?? 0); $duePos = (float) ($context['due_pos_collections'] ?? 0); $startCash = (float) ($context['start_cash'] ?? 0); $repairCash = (float) ($context['repair_cash'] ?? 0); $repairCard = (float) ($context['repair_card'] ?? 0); $repairBank = (float) ($context['repair_bank'] ?? 0); $cashExpensesFromDrawer = (float) ($context['cash_expenses_from_drawer'] ?? 0); $cashPurchasesFromDrawer = (float) ($context['cash_purchases_from_drawer'] ?? 0); $voidTotal = (float) ($context['void_total'] ?? 0); $expectedCashWithoutOffpos = $startCash + $systemCash + $repairCash + $dueCash - $cashExpensesFromDrawer - $cashPurchasesFromDrawer - $voidTotal; $genieGross = (float) ($context['genie_card_total'] ?? 0); $genieFee = (float) ($context['genie_fee_total'] ?? 0); $genieNet = (float) ($context['genie_net_receivable_total'] ?? 0); @endphp
@csrf
Cash (Drawer Count)
Start cash{{ number_format($startCash, 2) }}
System cash sales (invoices){{ number_format($systemCash, 2) }}
Old due collected (cash) — not sales{{ number_format($dueCash, 2) }}
Repair cash{{ number_format($repairCash, 2) }}
Cash expenses (from drawer){{ number_format($cashExpensesFromDrawer, 2) }}
Cash purchases (from drawer){{ number_format($cashPurchasesFromDrawer, 2) }}
Void total{{ number_format($voidTotal, 2) }}
Expected cash (without Off-POS){{ number_format($expectedCashWithoutOffpos, 2) }}
If left blank, Off-POS cash is assumed to be 0 (system-only day).
Off-POS cash sales (computed) 0.00
This calculation includes drawer-paid expenses/purchases so off-POS cash is not inflated.
Card (System vs Genie)
System card payments (invoices){{ number_format($systemCard, 2) }}
Repair card payments{{ number_format($repairCard, 2) }}
Old due collected (POS) — not sales{{ number_format($duePos, 2) }}
Genie confirmed total (gross){{ number_format($genieGross, 2) }}
Genie fees (for date){{ number_format($genieFee, 2) }}
Genie receivable (net){{ number_format($genieNet, 2) }}
Used to separate Genie vs other-device when calculating Off-POS card.
System card expected for Genie 0.00
Off-POS card sales (computed) 0.00
Genie totals only apply to Main Location.
On submit, Genie net + fees are recorded as an automatic settlement transfer next day 10:30 AM to the bank account selected in Genie settings. Any remaining POS Settlement balance can be settled manually.
Credit (System Only)
System credit sales (invoices){{ number_format($systemCredit, 2) }}
No off-system credit sales; credit is always taken from invoices.
Submit
Cash to post0.00
Card to post0.00
Credit to post{{ number_format($systemCredit, 2) }}
@if($hasExistingDailySales)
Confirmation required
@if($existingIsAuto) @endif
@endif
@if($existingDupes)
Cannot submit: multiple DailySales records exist for this date/location. Fix duplicates in History first.
@endif