@extends('layouts.dash') @section('title') Importations général @stop @section('subtitle_card',"") @section('content') {{ html()->form('POST', url('compta_import_definitif'))->open() }}

Brouillon avant importation

@if (Session::has('message'))
{!! Session::get('message') !!}
@endif
@php $total_debit=0;$total_credit=0;$total_solde_tr=0;$old_num_transac="";$k=0;$err=""; @endphp @foreach ($tmp_imports as $tmp_import) @php $k++; $num_transac=$tmp_import->transaction; $numcolor=($num_transac%9)-1; $color=isset(App\Models\MyApp::color_list[$numcolor])?App\Models\MyApp::color_list[$numcolor]:"white"; $total_debit+=$tmp_import->debit; $total_credit+=$tmp_import->credit; //pour tester le solde par transaction if($k==0) $old_num_transac=$num_transac; if($old_num_transac==$num_transac) { $total_solde_tr+=$tmp_import->debit-$tmp_import->credit; } else { if($total_solde_tr!=0) $err.=(($err=="")?"":",").($num_transac-1); $total_solde_tr=$tmp_import->debit-$tmp_import->credit; } @endphp @php $old_num_transac=$num_transac; @endphp @endforeach
Trans. Journal DateCpt DateOpé Réf.Ident. Réf.Libellé Compte Compte Libelle Compte Aux. Compte Aux. Libelle Désignation Débit Crédit Trim
{!! $tmp_import->transaction !!} {!! $tmp_import->journal !!} {!! $tmp_import->date_doc !!} {!! $tmp_import->date_ref !!} {!! $tmp_import->id_ref !!} {!! $tmp_import->ref_doc !!} {!! $tmp_import->compte !!} {!! $tmp_import->compte_label !!} {!! $tmp_import->compte_aux !!} {!! $tmp_import->compte_aux_label !!} {!! $tmp_import->designation !!} {!! $tmp_import->debit !!} {!! $tmp_import->credit !!} {!! $tmp_import->trim !!}
{{ $total_debit }} {{ $total_credit }} {{ $total_debit-$total_credit }}
{{ html()->form()->close() }} @endsection @section('scripts') @endsection