@extends('layouts.app') @section('titre', 'Commandes') @section('contenu')
Formats acceptés : sans en-tête code;quantite;unite[;code_client], ou avec en-tête nommé
(colonnes code, designation, quantite, unite — le code prime).
Trame « commandes clients » prête à remplir (une ligne par produit, sans client) :
modèle Excel
· modèle CSV.
| Heure | Fichier | Par | Importées | Rejets |
|---|---|---|---|---|
| {{ $imp->created_at->format('H:i') }} | {{ $imp->fichier }} | {{ $imp->user?->name ?? '—' }} | {{ $imp->lignes_importees }} | @if($imp->rejets)
|
La quantité commandée sert au calcul du besoin de production ; la quantité prise (ce qui est réellement sorti) sert au stock disponible J+1. Laisser la quantité prise vide = « tout le commandé a été pris ».
| Produit fini | Client | Commandée | Unité | Prise | ≈ UVC prise | Source | |
|---|---|---|---|---|---|---|---|
| {{ $c->produitFini->designation }} | {{ $c->client?->nom ?? '—' }} | {{ $c->quantite + 0 }} | {{ \App\Models\Commande::UNITES[$c->unite] }} | {{ number_format($c->quantitePriseUvc(), 0, ',', ' ') }} | {{ $c->source }} | ||
| Aucune commande pour cette date. | |||||||