mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 00:43:58 +00:00
update template
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
Tel: 03-8082 1252
|
||||
</td>
|
||||
<td class="header-details">
|
||||
<div class="title right"><strong>Account<br>Statement<br>Transactions</strong></div>
|
||||
<div class="title right" style="font-size: 1.5em !important;"><strong>Account<br>Statement<br>Transactions</strong></div>
|
||||
<div> </div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -54,9 +54,8 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">No</th>
|
||||
<th class="stock-code" width="10%">Date</th>
|
||||
<th class="stock-code" width="15%">Date</th>
|
||||
<th class="description">Description</th>
|
||||
<!-- <th width="10%">Marking</th> -->
|
||||
<th width="15%">Incoming</th>
|
||||
<th width="15%">Outgoing</th>
|
||||
<th width="10%">Balance<br>(RM)</th>
|
||||
@@ -80,28 +79,28 @@
|
||||
switch ($transaction->type) {
|
||||
case 1:
|
||||
if ($transaction->owner_type === "App\Models\Booking") {
|
||||
$description = "Payment - " . $transaction->bill_no;
|
||||
$description = "Payment <br>" . $transaction->bill_no;
|
||||
$marking = $transaction->owner->marking;
|
||||
} else {
|
||||
$description = "Payment - " . $transaction->bill_no;
|
||||
$description = "Payment <br>" . $transaction->bill_no;
|
||||
$marking = App\Models\Transaction::where('payment_reference', $transaction->bill_no)->first()->owner->marking;
|
||||
}
|
||||
$outgoing = number_format($transaction->amount, $roundOff);
|
||||
$runningBalance = $runningBalance + $transaction->amount;
|
||||
break;
|
||||
case 2:
|
||||
$description = "Invoice - " . $transaction->bill_no;
|
||||
$description = "Invoice <br>" . $transaction->bill_no;
|
||||
$incoming = number_format(($transaction->amount / $transaction->currency_rate + $transaction->service_charge), $roundOff);
|
||||
$runningBalance = $runningBalance - ($transaction->amount / $transaction->currency_rate + $transaction->service_charge);
|
||||
$marking = $transaction->owner->marking;
|
||||
break;
|
||||
case 5:
|
||||
$description = "Top Up - " . $transaction->payment_reference;
|
||||
$description = "Top Up <br>" . $transaction->payment_reference;
|
||||
$incoming = number_format($transaction->amount, $roundOff);
|
||||
$runningBalance = $runningBalance - $transaction->amount;
|
||||
break;
|
||||
case 9:
|
||||
$description = "Credit Note - " . $transaction->payment_reference;
|
||||
$description = "Credit Note <br>" . $transaction->payment_reference;
|
||||
$incoming = number_format($transaction->amount, $roundOff);
|
||||
$runningBalance = $runningBalance - $transaction->amount;
|
||||
break;
|
||||
@@ -111,15 +110,15 @@
|
||||
@endphp
|
||||
<tr>
|
||||
<td width="5%" class="center top">{{ $key + 1 }}</td>
|
||||
<td class="stock-code top" width="10%" style="text-align: center;">{{ \Carbon\Carbon::parse($transaction->created_at)->format('Y-m-d') }}</td>
|
||||
<td class="description">{{ $description }} - {{$marking}}</td>
|
||||
<td class="stock-code top" width="15%" style="text-align: center;">{{ \Carbon\Carbon::parse($transaction->created_at)->format('Y-m-d') }}</td>
|
||||
<td class="description">{!! $description !!} <br> {{$marking}}</td>
|
||||
<td width="15%" class="center top" style="text-align: center;">
|
||||
{{ $incoming }}
|
||||
</td>
|
||||
<td width="20%" class="center top" style="text-align: center;">
|
||||
<td width="15%" class="center top" style="text-align: center;">
|
||||
{{ $outgoing }}
|
||||
</td>
|
||||
<td width="20%" class="center top" style="text-align: center;">
|
||||
<td width="10%" class="center top" style="text-align: center;">
|
||||
{{ number_format($current_running_balance, $roundOff) }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user