| LEDGER TO THE COMPANY | {{ \Carbon\Carbon::parse($dateFrom)->format('Y') }} | SAP CODE | MONTH |
@if ($selectedSupplier)
{{ $selectedSupplier->short_name ?? $selectedSupplier->supplier_name }}
@endif
|
| {{ $selectedSupplier?->supplier_name ?? 'All Suppliers' }} | {{ $entries->first()?->sap_code ?? '-' }} | - | {{ \Carbon\Carbon::parse($dateFrom)->format('F') }} | |
| {{ number_format($totals->total_online ?? 0, 2) }} | {{ number_format($totals->total_invoice ?? 0, 2) }} | {{ number_format($totals->total_expenses ?? 0, 2) }} | {{ number_format($totals->total_za ?? 0, 2) }} |
| Sr# | Date | Type | Document # | Online Amount | Opening Balance | Invoice Amount | Expenses | ZA(0.5%) | Claim Adjust | Balance | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Opening Balance (Before {{ \Carbon\Carbon::parse($dateFrom)->format('d-M-Y') }}) | - | - | - | - | - | - | {{ number_format($openingBalance, 2) }} | ||||
| {{ $entries->firstItem() + $index }} | {{ $entry->transaction_date->format('d.m.Y') }} | @if ($entry->document_type) {{ $entry->document_type->value }} @else - @endif | {{ $entry->document_number ?? '-' }} | @php $entryOpeningBalance = (float) $entry->opening_balance; if ($entry->document_type === \App\Enums\DocumentType::Ob && $entryOpeningBalance === 0.0) { $entryOpeningBalance = (float) $entry->online_amount - (float) $entry->invoice_amount; } @endphp{{ $entry->document_type !== \App\Enums\DocumentType::Ob && $entry->online_amount > 0 ? number_format($entry->online_amount, 2) : '-' }} | {{ $entryOpeningBalance != 0 ? number_format($entryOpeningBalance, 2) : '-' }} | {{ $entry->document_type !== \App\Enums\DocumentType::Ob && $entry->invoice_amount > 0 ? number_format($entry->invoice_amount, 2) : '-' }} | {{ $entry->document_type !== \App\Enums\DocumentType::Ob && $entry->expenses_amount > 0 ? number_format($entry->expenses_amount, 2) : '-' }} | {{ $entry->document_type !== \App\Enums\DocumentType::Ob && $entry->za_point_five_percent_amount > 0 ? number_format($entry->za_point_five_percent_amount, 2) : '-' }} | {{ $entry->document_type !== \App\Enums\DocumentType::Ob && $entry->claim_adjust_amount > 0 ? number_format($entry->claim_adjust_amount, 2) : '-' }} | {{ number_format($entry->running_balance, 2) }} |
@canany(['report-audit-ledger-register-post', 'report-audit-ledger-register-manage'])
@if ($entry->isPosted())
@else
@can('report-audit-ledger-register-post')
@endcan
@can('report-audit-ledger-register-manage')
@endcan
@endif
@endcanany
|
| No ledger entries found for the selected filters. | |||||||||||
| Page Total ({{ $entries->count() }} entries) | {{ number_format($entries->sum('online_amount'), 2) }} | {{ number_format($pageOpeningBalanceTotal, 2) }} | {{ number_format($entries->sum('invoice_amount'), 2) }} | {{ number_format($entries->sum('expenses_amount'), 2) }} | {{ number_format($entries->sum('za_point_five_percent_amount'), 2) }} | {{ number_format($entries->sum('claim_adjust_amount'), 2) }} | {{ $entries->count() > 0 ? number_format($entries->last()->running_balance, 2) : '0.00' }} | ||||
| Online:- | {{ number_format($totals->total_online ?? 0, 2) }} |
| Invoicing:- | {{ number_format($totals->total_invoice ?? 0, 2) }} |
| Balance:- | {{ number_format($currentBalance, 2) }} |
Are you sure you want to post this entry to the General Ledger? This action cannot be reversed.