@extends('app') @section('content') Ajouter un bon de réception @if(Session::has('erreur')) {!! session('erreur') !!} @endif @if(Session::has('msgAdd')) {!! session('msgAdd') !!} @endif @if(Session::has('ajouter')) {!! session('ajouter') !!} @endif @if(Session::has('msgExist')) {!! session('msgExist') !!} @endif @if(Session::has('msgErreurReception')) {!! session('msgErreurReception') !!} @endif @if(Session::has('msgErreurCommandeNonValide')) {!! session('msgErreurCommandeNonValide') !!} @endif {!! Form::open(['method'=>'POST','action' => ['BonReceptionFournisseurControlleur@postForm']]) !!} N° de bon réception : Date bon de réception : @if(Session::get('USE_UE')=='1') Avec unité d'expédition @endif Commande fournisseur : Sélectionner la commande fournisseur ... @foreach($commandes as $commandeIndex) id_commande_fournisseur == $commande->id_commande_fournisseur)) selected @endif> {{$commandeIndex->num_commande_fournisseur}} @endforeach Fournisseur : Contact : Date commande fournisseur : @if ($ajouterProduitNonCommande) Ajouter produit non commandé @endif Produit commandé Référence produit Désignation Quantité commandée Reste à recevoir Quantité réceptionnée Réceptionner Supprimer @foreach( $lignes as $ligne) @if ($ligne->id_ligne_commande_fournisseur == 0) Non @else Oui @endif @if ($ligne->id_ligne_commande_fournisseur != 0) {{$ligne->ligneCommandeFournisseur->produit->reference}} @else {{$ligne->produit->reference}} @endif @if ($ligne->id_ligne_commande_fournisseur != 0) {{$ligne->ligneCommandeFournisseur->produit->designation}} @else {{$ligne->produit->designation}} @endif {{(float) $ligne->quantite_commander}} @if ($ligne->id_ligne_commande_fournisseur != 0) {{ (float) $ligne->ligneCommandeFournisseur->quantite_commander - $ligne->ligneCommandeFournisseur->quantite_receptionner }} @else {{ (float) $ligne->quantite_reste_receptionnee}} @endif {{ (float) $ligne->quantite_receptionner}} @endforeach Annuler Valider {!! Form::close() !!} @foreach( $lignes as $ligne) × Réception quantite produit @if($ligne->id_ligne_commande_fournisseur != 0) [{{ $ligne->ligneCommandeFournisseur->produit->reference }}, {{ $ligne->ligneCommandeFournisseur->produit->designation }}] @else [{{ $ligne->produit->reference }}, {{ $ligne->produit->designation }}] @endif {!! Form::open(['method'=>'PUT','action' => ['BonReceptionFournisseurControlleur@postAddQuantiteReceptionnee', $ligne->id_ligne_bon_reception]]) !!} @if($ligne->id_ligne_commande_fournisseur != 0) Quantité commandée @endif @if($ligne->id_ligne_commande_fournisseur != 0) Reste à recevoir @endif Quantité réceptionnée id_ligne_commande_fournisseur != 0) max="{{$ligne->ligneCommandeFournisseur->quantite_commander - $ligne->ligneCommandeFournisseur->quantite_receptionner }}" @endif value="{{ (float) $ligne->quantite_receptionner }}" required > @if(Session::get('N_LOT')=='1') Numéro de lot @endif @if(Session::get('DATE_PEREMPTION')=='1') Date de fabrication Date de péremption @endif Zone de stockage @if ($ligne->idEmplacement == null || $ligne->idEmplacement == '') Séléctionner la zone de stockage... @endif @foreach($zones as $zone) idEmplacement != null || $ligne->idEmplacement != '') @if ($zone->id_zone == $ligne->emplacement->zone->id_zone) selected @endif @endif> {{$zone->libelle}} @endforeach Emplacement du nouveau stock du produit @if ($ligne->idEmplacement != null || $ligne->idEmplacement != '') @foreach($emplacements as $emplacement) @if($emplacement->id_zone == $ligne->emplacement->zone->id_zone) id_emplacement == $ligne->idEmplacement) selected @endif> {{$emplacement->libelle}} @endif @endforeach @else Séléctionner l'emplacement de ce nouveau stock ... @endif {!! Form::close() !!} × Confirmation Voulez-vous annuler la réception de ce produit ? @endforeach × Ajouter produit non commandé {{ csrf_field() }} Produit : Sélectionner le produit ... @foreach ($produits as $produit) {{ $produit->reference}} @endforeach Quantité : @if (Session::get('N_LOT') == '1') Numéro de lot : @endif @if (Session::get('DATE_PEREMPTION') == '1') Date de fabrication : Date de péremption : @endif La zone de stockage : Sélectionner la zone ... @foreach ($zones as $zone) {{ $zone->libelle }} @endforeach Emplacement : Sélectionner l'emplacement ... @endsection
Voulez-vous annuler la réception de ce produit ?