turn off round off at baki semasa and puut upah sebenar in laporan upah
This commit is contained in:
@@ -509,7 +509,7 @@ class AliranTunaiController extends Controller
|
||||
{
|
||||
return response('sama');
|
||||
}else{
|
||||
$arraykemaskini = ['pendahuluan' => round($totalpendahuluan,2),'serahan' => round($totalserahan,2), 'penebusan' => round($penebusanbarcodescanned,2), 'gadaian' => round($totalgadaibarcodescanned,2), 'bakisemasa' => round($bakisemasa,1)];
|
||||
$arraykemaskini = ['pendahuluan' => round($totalpendahuluan,2),'serahan' => round($totalserahan,2), 'penebusan' => round($penebusanbarcodescanned,2), 'gadaian' => round($totalgadaibarcodescanned,2), 'bakisemasa' => round($bakisemasa,2)];
|
||||
return response()->json($arraykemaskini);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,23 +223,24 @@
|
||||
<th>Teller</th>
|
||||
<th>Tempoh</th>
|
||||
<th>Pembiayaan (RM)</th>
|
||||
<th>Upah Sebenar (RM)</th>
|
||||
<th>Upah Dibayar (RM)</th>
|
||||
</tr>
|
||||
@php $counter = 1; $totalbayaran = 0; $totalpembiayaan = 0; $totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
@php $counter = 1; $totalbayaran = 0; $totalpembiayaan = 0; $totalsebenar = 0; $totalpembiayaanteller = 0; $totalbayaranteller = 0; $totalsebenarteller = 0; @endphp
|
||||
@foreach($advansur as $index=>$item)
|
||||
@php $totalbayaran += $item['upahDibayar']; $totalpembiayaan += $item['pinjaman']; @endphp
|
||||
@php $totalbayaran += $item['upahDibayar']; $totalpembiayaan += $item['pinjaman']; $totalsebenar += $item['upahSebenar'];@endphp
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $advansur[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
@php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; $totalsebenarteller = 0; @endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan=10>Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; @endphp
|
||||
@php $counter = 1;$totalpembiayaanteller = 0; $totalbayaranteller = 0; $totalsebenarteller = 0; @endphp
|
||||
|
||||
@endif
|
||||
<tr>
|
||||
@@ -249,15 +250,17 @@
|
||||
<td>{{ $item['teller'] }}</td>
|
||||
<td>{{ $item['jbg'] }}</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>{{ number_format($item['upahSebenar'],2) }}</td>
|
||||
<td>{{ number_format($item['upahDibayar'],2) }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@php $totalbayaranteller += $item['upahDibayar']; $totalpembiayaanteller += $item['pinjaman']; @endphp
|
||||
@php $totalbayaranteller += $item['upahDibayar']; $totalsebenarteller += $item['upahSebenar']; $totalpembiayaanteller += $item['pinjaman']; @endphp
|
||||
@if($index+1 < sizeof($advansur))
|
||||
@if($item['teller'] != $advansur[$index + 1]['teller'])
|
||||
<tr>
|
||||
<td colspan="5">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpembiayaanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalsebenarteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
</tr>
|
||||
@php @endphp
|
||||
@@ -266,6 +269,7 @@
|
||||
<tr>
|
||||
<td colspan="5">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpembiayaanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalsebenarteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
</tr>
|
||||
@endif
|
||||
@@ -276,11 +280,13 @@
|
||||
<tr>
|
||||
<th colspan="9"></th>
|
||||
<th style="text-align:center;">Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Upah Sebenar (RM)</th>
|
||||
<th style="text-align:center;">Upah Dibayar (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalpembiayaan,2) }}</td>
|
||||
<td>{{ number_format($totalsebenar,2) }}</td>
|
||||
<td>{{ number_format($totalbayaran,2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user