GESTION BUDGÉTAIRE

FICHE D'ENGAGEMENT DE DÉPENSE

Date d'édition : {{ now()->format('d/m/Y H:i') }}
@php /* |-------------------------------------------------------------------------- | RÉCUPÉRATION DE LA LIGNE BUDGÉTAIRE |-------------------------------------------------------------------------- */ $budgetdepense = $engagement->budgetdepense; $besoinbudgetaire = optional($budgetdepense)->besoinbudgetaire; /* |-------------------------------------------------------------------------- | CALCUL DES TOTAUX |-------------------------------------------------------------------------- */ $totalEngage = 0; $totalRestant = 0; foreach ($engagement->engagementdetails ?? [] as $detail) { $totalEngage += (float) ($detail->montant_engage ?? 0); $totalRestant += (float) ($detail->montant_restant ?? 0); } /* |-------------------------------------------------------------------------- | INFORMATIONS DOCUMENTAIRES |-------------------------------------------------------------------------- */ $numeroDocument = $engagement->numero_document ?? null; $besoinOrdinaire = $engagement->besoin_ordinaire ?? null; $referenceDocument = $engagement->reference_document @endphp
I. INFORMATIONS GÉNÉRALES
Exercice {{ optional($besoinbudgetaire)->exercice ?? '—' }} Code Budget {{ optional($besoinbudgetaire)->code_budget ?? '—' }}
Nom du Budget {{ optional($besoinbudgetaire)->nom_budget ?? '—' }}
Date de saisie @if($engagement->date_saisie) {{ \Carbon\Carbon::parse($engagement->date_saisie)->format('d/m/Y') }} @else {{ optional($engagement->created_at)->format('d/m/Y') }} @endif Date du besoin @if($engagement->date_besoin) {{ \Carbon\Carbon::parse($engagement->date_besoin)->format('d/m/Y') }} @else — @endif
Activité {{ optional($budgetdepense)->activite ?? '—' }} Nature de la dépense {{ optional($budgetdepense)->nature ?? '—' }}
Compte SYSCOHADA {{ optional(optional($budgetdepense)->comptesyscohada)->code ?? '—' }} @if(optional(optional($budgetdepense)->comptesyscohada)->libelle) - {{ optional(optional($budgetdepense)->comptesyscohada)->libelle }} @endif Poste de gestion {{ optional(optional($budgetdepense)->postegestion)->code ?? '—' }} @if(optional(optional($budgetdepense)->postegestion)->libelle) - {{ optional(optional($budgetdepense)->postegestion)->libelle }} @endif
Numéro BR {{ $engagement->numero_br ?? '—' }} Niveau d'urgence @if($engagement->urgence) {{ ucfirst($engagement->urgence) }} @elseif($engagement->niveau_urgence) {{ ucfirst($engagement->niveau_urgence) }} @else — @endif
Direction {{ optional($engagement->direction)->code ?? '—' }} @if(optional($engagement->direction)->libelle) - {{ optional($engagement->direction)->libelle }} @endif Centre de responsabilité {{ optional($engagement->centrerespo)->code ?? '—' }} @if(optional($engagement->centrerespo)->libelle_long) - {{ optional($engagement->centrerespo)->libelle_long }} @endif
Responsable {{ $engagement->responsable ?? '—' }}
II. DTAILS DE LA DÉPENSE
@forelse($engagement->engagementdetails ?? [] as $detail) @empty @endforelse
N° Désignation Détails Nombre Quantité Coût unitaire Montant engagé
{{ $loop->iteration }} {{ $detail->designation ?? $detail->nom_article ?? '—' }} {{ $detail->details ?? $detail->libelle ?? '—' }} {{ number_format( (float) ($detail->nombre ?? 0), 0, ',', ' ' ) }} {{ number_format( (float) ($detail->quantite ?? 0), 0, ',', ' ' ) }} @if(isset($detail->cout_unitaire)) {{ number_format( (float) $detail->cout_unitaire, 0, ',', ' ' ) }} FCFA @else — @endif @if(isset($detail->montant_engage)) {{ number_format( (float) $detail->montant_engage, 0, ',', ' ' ) }} FCFA @else — @endif
Aucun détail de dépense enregistré.
TOTAL ENGAGÉ {{ number_format( $totalEngage, 0, ',', ' ' ) }} FCFA
Montant de la ligne budgétaire @if($budgetdepense && $budgetdepense->montant !== null) {{ number_format( (float) $budgetdepense->montant, 0, ',', ' ' ) }} FCFA @else — @endif Montant total engagé {{ number_format( $totalEngage, 0, ',', ' ' ) }} FCFA
Montant restant {{ number_format( $totalRestant, 0, ',', ' ' ) }} FCFA
III. DOCUMENTS JUSTIFICATIFS
```
N° document TDR / Justificatif {{ $numeroDocument ?? 'Non renseigné' }}
Besoin ordinaire {{ $besoinOrdinaire ?? 'Non renseigné' }}
Référence {{ $referenceDocument ?? 'Non générée' }}

@forelse($engagement->engagementdocuments ?? [] as $document) @empty @endforelse ```
N° Type de document Nom du fichier Extension Taille
{{ $loop->iteration }} {{ $document->type_document ?? '—' }} {{ $document->nom_fichier ?? '—' }} {{ strtoupper( $document->extension ?? '' ) }} {{ $document->taille ?? '—' }}
Aucun document justificatif enregistré.


Demandeur


........................................
Responsable Hiérarchique


........................................
Direction Financière


........................................

Document généré automatiquement par le système de Gestion Budgétaire. Édité le {{ now()->format('d/m/Y à H:i') }}