@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']]) !!}
@if(Session::get('USE_UE')=='1')

@endif




@if ($ajouterProduitNonCommande)


Ajouter produit non commandé @endif


@foreach( $lignes as $ligne) @endforeach
Produit commandé Référence produit Désignation Quantité commandée Reste à recevoir Quantité réceptionnée Réceptionner Supprimer
@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}}
Annuler
{!! Form::close() !!}
@foreach( $lignes as $ligne)
@endforeach
@endsection