@php /** @var \App\Models\PurchaseOrder $order */ /** @var array{name: string, legal_name: string, address: ?string, city: ?string, country: ?string, phone: ?string, email: ?string, website: ?string, tax_id: ?string, registration: ?string} $company */ /** @var ?string $buyerSignatureDataUri */ $money = static fn ($value): string => \App\Support\MoneyFormatter::format((float) $value, $company['currency'] ?? null); $lines = $order->lines; $location = collect([$company['city'], $company['country']])->filter()->implode(', '); $buyer = $order->validator ?? $order->creator; @endphp
| @include('pdf.partials.company-identity', ['company' => $company, 'showName' => true]) |
Bon de commande N° {{ $order->code }}
|
|
Fournisseur
{{ $order->supplier?->name ?? '—' }}
@if ($order->supplier?->code)
{{ $order->supplier->code }}
@if ($order->supplier?->contact_name) · @endif
@endif
@if ($order->supplier?->contact_name)
{{ $order->supplier->contact_name }}
@endif
@if ($order->supplier?->code || $order->supplier?->contact_name)@endif @if ($order->supplier?->address) {{ $order->supplier->address }} @endif @if ($order->supplier?->phone) Tél. {{ $order->supplier->phone }} @endif @if ($order->supplier?->email) {{ $order->supplier?->phone ? ' · ' : '' }}{{ $order->supplier->email }} @endif |
Références
|
| N° | Code | Désignation | Qté | P.U. | Montant |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $line->product?->code ?? '—' }} | {{ $line->description }} | {{ (int) $line->quantity }} | {{ $money($line->unit_price) }} | {{ $money($line->line_total) }} |
| Aucune ligne | |||||
|
|
Acheteur
{{ $buyer?->name ?? '……………………' }}
· {{ $order->validated_at?->format('d/m/Y') ?? $order->order_date?->format('d/m/Y') ?? '………' }}
@if ($buyerSignatureDataUri)
Signature / cachet
@endif
|
Fournisseur — accusé de réception
Nom : …………………… · Date : ………
Signature / cachet
|