@extends('layouts.app') @section('title',$document->reference) @section('page-title',$document->reference) @section('topbar-actions') @php $documentVerrouille = in_array($document->status, ['VALIDE','FACTURE','ANNULE'], true); @endphp Imprimer @if($documentVerrouille && $document->type_code === 'FAC' && $document->status !== 'ANNULE') Créer un avoir @endif {{-- Génération en chaîne (retour utilisateur INSTALL.md 17/08, point 13) --}} @if($document->type_code === 'FAC' && $document->status !== 'ANNULE')
@endif @if($document->type_code === 'PRO' && $document->status !== 'ANNULE') @endif @if(!$documentVerrouille && (auth()->user()->isAdmin() || auth()->user()->isCommercial())) Modifier @endif @if(!$documentVerrouille && auth()->user()->isAdmin()) @endif @if($documentVerrouille)| # | Désignation | Qté commandée | Qté livrée | Unité | |||||
|---|---|---|---|---|---|---|---|---|---|
| # | Désignation | Qté | Unité | PU HT | Remise | HT | |||
| {{ $line->ligne_ordre }} |
{{ $line->designation }}
@if($line->reference_prod){{ $line->reference_prod }} @endif
@if($line->notes_ligne){{ $line->notes_ligne }} @endif
|
@if($isBL)
{{ $line->quantite }} | {{ $line->quantite_livree ?? $line->quantite }} | {{ $line->unite ?? '—' }} | @else{{ $line->quantite }} | {{ $line->unite ?? '—' }} | {{ number_format($line->prix_unitaire,0,',',' ') }} | {{ $line->remise>0 ? $line->remise.'%' : '—' }} | {{ number_format($line->montant_ht,0,',',' ') }} | @endif
| Sous-total HT | {{ number_format($document->sous_total,0,',',' ') }} | ||||||||
| Remise ({{ $document->remise_globale }}%) | -{{ number_format($document->remise_montant,0,',',' ') }} | ||||||||
| IS ({{ $document->tva_taux }}%) — informatif, non inclus | {{ number_format($document->tva_montant,0,',',' ') }} | ||||||||
| TOTAL | {{ number_format($document->total_ttc,0,',',' ') }} XAF | ||||||||