Filter bakiLelong with kodlaluan and re-adjust the laporan aliran tunai teller

This commit is contained in:
aiman
2025-10-15 14:52:08 +08:00
parent 1d903a70ba
commit 1720537632
2 changed files with 42 additions and 27 deletions
@@ -663,7 +663,8 @@ class AliranTunaiController extends Controller
$teller = $auth_user['name']; $teller = $auth_user['name'];
$bakiLelong = Http::withOptions(['verify' =>config('app.api_verify')])->get(config('api.url') . '/api/lelong/bakilelongbyteller/'.$auth_user['cawangan'],[ $bakiLelong = Http::withOptions(['verify' =>config('app.api_verify')])->get(config('api.url') . '/api/lelong/bakilelongbyteller/'.$auth_user['cawangan'],[
'tarikh' => $tarikh 'tarikh' => $tarikh,
'kodlaluan' => $auth_user['name']
])->json(); ])->json();
$tunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getTunaiByTarikh/',[ $tunai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/getTunaiByTarikh/',[
@@ -160,29 +160,38 @@
<table id="scan"> <table id="scan">
<tr> <tr>
<th colspan ="5"><b>LAPORAN ALIRAN TUNAI TELLER (arOS v3)</b></th> <th colspan="3" style="
<th> </th> text-align: left;
<th> </th> font-size: 16px;
<th><b> Tarikh Cetak:</b> font-weight: bold;
@php text-transform: uppercase;
$myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak); padding-top: 10px;
$formattedweddingdate = $myDateTime->format('d-m-Y'); padding-bottom: 10px;
echo($formattedweddingdate) letter-spacing: 0.5px;
@endphp ">
LAPORAN ALIRAN TUNAI TELLER
</th> </th>
<th></th>
</tr> </tr>
<tr>
<td style="width:100px"><b>TARIKH:</b></td>
<td><b>
@php
$tarikhTeller = DateTime::createFromFormat('Y-m-d', $tunai['tarikh']);
echo $tarikhTeller->format('d-m-Y');
@endphp
</b></td>
</tr>
<tr> <tr>
<td style="width:10px"> <b>TARIKH</b></td> <td><b>TARIKH CETAK:</b></td>
<td><b>{{ $tunai['tarikh'] }}</b></td> <td><b>
<td style="width:50px"> @php
</td> $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
<td> </td> $formattedweddingdate = $myDateTime->format('d-m-Y');
<td> </td> echo $formattedweddingdate;
<td> </td> @endphp
<td> </td> </b></td>
<td> </td>
<td> </td>
</tr> </tr>
</table> </table>
@@ -245,13 +254,18 @@
<td>RM {{ number_format($jumlahTolak,2) }}</td> <td>RM {{ number_format($jumlahTolak,2) }}</td>
</tr> </tr>
<tr><th>BAKI AKHIR</th></tr>
<tr> <tr>
<th>BAKI AKHIR</th> <td colspan="3" style="
</tr> border: 2px solid black;
<tr> text-align: center;
<td>Baki Akhir Teller</td> background-color: #f8f8f8;
<td>:</td> font-weight: bold;
<td>RM {{ number_format($tunai['bakiawal'] +$jumlahTambah + $jumlahTolak,2) }}</td> font-size: 13px;
padding: 10px;
">
BAKI AKHIR TELLER: RM {{ number_format($tunai['bakiawal'] + $jumlahTambah - $jumlahTolak,2) }}
</td>
</tr> </tr>
</table> </table>