@php $org = auth()->user()->organization ?? \App\Models\System\Organization::find(auth()->user()->organization_id); @endphp @extends('documents.procurement._layout', [ 'documentTitle' => 'Three-Way Match Exceptions', 'reference' => null, 'documentDate' => $reportDate, 'noAutoPrint' => true, ]) @section('header-meta')
|
Invoices with Variances {{ $exceptions->count() }} |
No match exceptions found for this period. ✓
@else @foreach($exceptions as $invoice){{ $invoice->matchResult->summary }} @if($invoice->lpo) · LPO: {{ $invoice->lpo->lpo_reference }} @endif @if($invoice->grn) · GRN: {{ $invoice->grn->grn_reference }} @endif
| Product | Ref Qty | Invoice Qty | Qty Var | Agreed Price | Invoice Price | Price Var |
|---|---|---|---|---|---|---|
| {{ $line['product_name'] }} | {{ $line['ref_qty'] }} | {{ $line['invoice_qty'] }} | {{ $line['qty_variance'] != 0 ? ($line['qty_variance'] > 0 ? '+' : '') . $line['qty_variance'] : '✓' }} | {{ $line['agreed_price'] !== null ? number_format($line['agreed_price'], 2) : '—' }} | {{ number_format($line['invoice_price'], 2) }} | @if($line['price_variance'] !== null) {{ $line['price_variance'] > 0.0001 ? '+' . number_format($line['price_variance'], 2) : ($line['price_variance'] < -0.0001 ? number_format($line['price_variance'], 2) : '✓') }} @else — @endif |
All prices in source currency. Variances are informational — they do not block payment.
@endif @endsection