Fix column ujrah and onepercent for laporan ansuran
This commit is contained in:
@@ -227,8 +227,11 @@
|
||||
$totalduitmasuk += $item['duit_masuk'];
|
||||
$totalkeuntungan += $item['bayaran_keuntungan'];
|
||||
$totalpendahuluan += $item['bayaran_pembiayaan'];
|
||||
$totalujrah += array_key_exists('ansuranujrah', $item) ? bcdiv(round($item['ansuranujrah'],2),1,1) : 0;
|
||||
$totalonepercent += bcdiv(round(array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0,2),1,1);
|
||||
|
||||
$totalujrah += $item['ansuranujrah'];
|
||||
// $totalujrah += array_key_exists('ansuranujrah', $item) ? $item['ansuranujrah']: 0;
|
||||
$totalonepercent += $item['ansuranonepercent'];
|
||||
// $totalonepercent += array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0;
|
||||
@endphp
|
||||
|
||||
@if($index > 0)
|
||||
@@ -269,11 +272,14 @@
|
||||
<td>{{ $item['tempoh'] }}</td>
|
||||
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||
<td>{{ number_format($item['bayaran_pembiayaan'],2) }}</td>
|
||||
@php
|
||||
$totalujrah = array_key_exists('ansuranujrah', $item) ? bcdiv(round($item['ansuranujrah'],2),1,1) : 0;
|
||||
@endphp
|
||||
<td>{{ number_format($totalujrah, 2) }}</td>
|
||||
<td>{{ number_format(bcdiv(round(array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0,2),1,1),2) }}</td>
|
||||
{{-- @php
|
||||
$totalujrah = array_key_exists('ansuranujrah', $item) ? $item['ansuranujrah'] : 0;
|
||||
@endphp --}}
|
||||
{{-- <td>{{ number_format($totalujrah, 2) }}</td> --}}
|
||||
{{-- <td>{{ number_format(bcdiv(round(array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0,2),1,1),2) }}</td> --}}
|
||||
|
||||
<td>{{ number_format(array_key_exists('ansuranujrah', $item) ? $item['ansuranujrah'] : 0,2) }}</td>
|
||||
<td>{{ number_format(array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0,2) }}</td>
|
||||
<td>{{ number_format($item['bayaran_keuntungan'],2) }}</td>
|
||||
<td>{{ number_format($item['duit_masuk'],2) }}</td>
|
||||
</tr>
|
||||
@@ -282,8 +288,10 @@
|
||||
$totaldmteller += $item['duit_masuk'];
|
||||
$totalupahteller += $item['bayaran_keuntungan'];
|
||||
$totalpendhteller += $item['bayaran_pembiayaan'];
|
||||
$totalujrahteller += array_key_exists('ansuranujrah', $item) ? bcdiv(round($item['ansuranujrah'],2),1,1) : 0;
|
||||
$totalonepercentteller += bcdiv(round(array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0,2),1,1);
|
||||
// $totalujrahteller += array_key_exists('ansuranujrah', $item) ? bcdiv(round($item['ansuranujrah'],2),1,1) : 0;
|
||||
// $totalonepercentteller += bcdiv(round(array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0,2),1,1);
|
||||
$totalujrahteller += array_key_exists('ansuranujrah', $item) ? $item['ansuranujrah'] : 0;
|
||||
$totalonepercentteller += array_key_exists('ansuranonepercent', $item) ? $item['ansuranonepercent'] : 0;
|
||||
@endphp
|
||||
|
||||
@if($index+1 < sizeof($tebus))
|
||||
|
||||
Reference in New Issue
Block a user