@php
$mvtDebut = !empty($sumGrandLivre->debit)?$sumGrandLivre->debit:0;
$mvtCredit = !empty($sumGrandLivre->credit)?$sumGrandLivre->credit:0;
$mtt_report = 0;
if(!empty($report->compte_id)){
$mtt_report = $report->debit - $report->credit;
}
$soldeMvt = $mtt_report + $mvtDebut - $mvtCredit;
if($plan_compte->classe == 'result' && substr($plan_compte->id_compte,0,1) == '7'){
$mtt_report = -1*$mtt_report;
$soldeMvt = -1*$soldeMvt;
}
if($plan_compte->classe == 'passif'){
$mtt_report = -1*$mtt_report;
$soldeMvt = -1*$soldeMvt;
}
@endphp
N° compte |
Libellé |
Mvt débit |
Mvt crédit |
Solde |
{{$plan_compte->id_compte}} |
{{$plan_compte->libelle_compte}} |
{{App\Lib\Format::number($mvtDebut)}} |
{{App\Lib\Format::number($mvtCredit)}} |
{{App\Lib\Format::number($soldeMvt)}} |