@extends('app') @section('content') {!! Html::script('assets/js/jsPDF/jspdf.js') !!} {!! Html::script('assets/js/jsPDF/dist/jspdf.min.js') !!} {!! Html::script('assets/js/jsPDF/jsPDF-AutoTable/dist/jspdf.plugin.autotable.js') !!}

Détail bon de livraison

@if(Session::has('msgAdd'))
{!! session('msgAdd') !!}
@endif @if(Session::has('msgExist'))
{!! session('msgExist') !!}
@endif
{!! Form::open(['method'=>'POST','id' => 'formulaire','action' => ['BonLivraisonController@show',$bonLivraison->id_bon_livraison]]) !!}
@if (Session::get('STOCK_ENTITE'))

@endif
id_commande != 0) value="{{$bonLivraison->commandeClient->numCommande}}" @endif readonly>
preparation->Client != null) value ="{{$bonLivraison->preparation->Client->raisonSociale}}" @endif required readonly >
preparation->Client != null) value ="{{$bonLivraison->preparation->Client->adresseClient}}" @endif required readonly >
preparation->Client != null) @if ($bonLivraison->preparation->Client->region == 0) value ="" @else value ="{{$bonLivraison->preparation->Client->willaya->nom_wilaya}}" @endif @endif required readonly >
preparation->idTransporteur != NULL) value ="{{$bonLivraison->preparation->Transporteur->nomTransporteur}} {{$bonLivraison->preparation->Transporteur->prenomTransporteur}}" @endif required readonly > preparation->idTransporteur != NULL) value ="{{$bonLivraison->preparation->Transporteur->telephoneTransporteur}}" @endif required readonly > preparation->idTransporteur != NULL) value ="{{$bonLivraison->preparation->Transporteur->numTransporteur}}" @endif required readonly >


@if (Session::get('STOCK_ENTITE') == '1' || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if (Session::get('COMPOSE_PACK')=='1') @endif @if (Session::get('NUMERO_SERIE')) @endif @if (Session::get('STOCK_ENTITE') != "1" || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') != "1" ) @endif @foreach( $ligneBonLivraison as $ligne) @php $memory = 0; $old_qnt = 0; $add_ligne = 0; @endphp @if (Session::get('NUMERO_SERIE') == '1') @if ($ligne->ligneProduit->NumeroSerie != null && $ligne->ligneProduit->NumeroSerie != '' && $ligne->ligneProduit->NumeroSerie->isEmpty() == false) @foreach ($ligne->ligneProduit->NumeroSerie as $key=>$element) @if (Session::get('STOCK_ENTITE') == '1' || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if (Session::get('COMPOSE_PACK')=='1') @endif @if (Session::get('NUMERO_SERIE')) @endif @if (Session::get('STOCK_ENTITE') != "1" || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') != "1" ) @endif @if ($add_ligne == 1 ) @php $add_ligne = 0; $total_qnt = $total_qnt + $ligne->qnt - $old_qnt; @endphp @if (Session::get('STOCK_ENTITE') == '1' || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if (Session::get('COMPOSE_PACK')=='1') @endif @if (Session::get('NUMERO_SERIE')) @endif @if (Session::get('STOCK_ENTITE') != "1" || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') != "1" ) @endif @endif @endforeach @else @if (Session::get('STOCK_ENTITE') == '1' || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if (Session::get('COMPOSE_PACK')=='1') @endif @if (Session::get('NUMERO_SERIE')) @endif @if (Session::get('STOCK_ENTITE') != "1" || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') != "1" ) @endif @endif @else @if (Session::get('STOCK_ENTITE') == '1' || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') == '1') @endif @if (Session::get('COMPOSE_PACK')=='1') @endif @if (Session::get('NUMERO_SERIE')) @endif @if (Session::get('STOCK_ENTITE') != "1" || Session::get('TYPE_STOCK_EMPLACEMENT_MOBILE') != "1" ) @endif @endif @endforeach
N°Document N°UERéférence Désignation Code produit Emplacement QuantitéProduit
composé pack
Désignation
(Produit
composé pack)
Quantité
(Produit composé pack)
N° de sérieObservation
@if ($ligne->ligneProduit) @if ($ligne->ligneProduit->StockProduit) @if (!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe->isEmpty()) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception) {!!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception->num_document!!} @endif @endif @endif @endif @endif {!!$ligne->ligneProduit->stockProduit->num_ue!!}{!!$ligne->produit->reference!!} {!!$ligne->produit->designation!!} {!!$ligne->produit->code_identification!!} {!!$ligne->ligneProduit->StockProduit->Emplacement->libelle!!} 1 @php $old_qnt++; if(isset($ligne->ligneProduit->NumeroSerie[$key+1])){ /*if($old_qnt == $ligne->qnt){ $add_ligne = 1 ; }*/ $add_ligne = 0; }else{ if($old_qnt != $ligne->qnt){ $add_ligne = 1 ; } } @endphp {{ $ligne->produit->compose_pack }} @if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ $produit->produitEnfant->designation }}

  • @endforeach
@endif
@if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ (float) $produit->quantite }}


  • @endforeach
@endif
{{ $element->num_serie}}
@if ($ligne->ligneProduit) @if ($ligne->ligneProduit->StockProduit) @if (!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe->isEmpty()) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception) {!!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception->num_document!!} @endif @endif @endif @endif @endif {!!$ligne->ligneProduit->stockProduit->num_ue!!}{!!$ligne->produit->reference!!} {!!$ligne->produit->designation!!} {!!$ligne->produit->code_identification!!} {!!$ligne->ligneProduit->StockProduit->Emplacement->libelle!!} {{ $ligne->qnt - $old_qnt }} {{ $ligne->produit->compose_pack }} @if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ $produit->produitEnfant->designation }}

  • @endforeach
@endif
@if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ (float) $produit->quantite }}


  • @endforeach
@endif
N/A
@if ($ligne->ligneProduit) @if ($ligne->ligneProduit->StockProduit) @if (!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe->isEmpty()) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception) {!!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception->num_document!!} @endif @endif @endif @endif @endif {!!$ligne->ligneProduit->stockProduit->num_ue!!}{!!$ligne->produit->reference!!} {!!$ligne->produit->designation!!} {!!$ligne->produit->code_identification!!} {!!$ligne->ligneProduit->StockProduit->Emplacement->libelle!!} {!! (float) $ligne->qnt!!}{{ $ligne->produit->compose_pack }} @if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ $produit->produitEnfant->designation }}

  • @endforeach
@endif
@if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ (float) $produit->quantite }}


  • @endforeach
@endif
N/A
@if ($ligne->ligneProduit) @if ($ligne->ligneProduit->StockProduit) @if (!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe->isEmpty()) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception) @if ($ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception) {!!$ligne->ligneProduit->StockProduit->ligneBonReceptionUe[0]->ligneBonReception->bonReception->num_document!!} @endif @endif @endif @endif @endif {!!$ligne->ligneProduit->stockProduit->num_ue!!}{!!$ligne->produit->reference!!} {!!$ligne->produit->designation!!} {!!$ligne->produit->code_identification!!} {!!$ligne->ligneProduit->StockProduit->Emplacement->libelle!!} {!! (float) $ligne->qnt!!}{{ $ligne->produit->compose_pack }} @if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ $produit->produitEnfant->designation }}

  • @endforeach
@endif
@if ($produitComposeCollect->get($ligne->id_bl_produit) != null )
    @foreach ($produitComposeCollect->get($ligne->id_bl_produit) as $produit)
  • {{ (float) $produit->quantite }}


  • @endforeach
@endif
@if(Session::get('COMPOSE_PACK'))
@endif
{!! Form::close() !!}
@endsection