susee
This commit is contained in:
parent
1d75694c54
commit
4fbd0cde3c
@ -405,6 +405,7 @@ class PaymentController extends BaseController
|
||||
|
||||
|
||||
$Final_amount = round( ( $amount + (($amount * ($gst + $pst) ) / 100) ) , 2 );
|
||||
$Final_amount = $Final_amount * 100;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -162,7 +162,7 @@
|
||||
<tr id="<?= $key."_table-grey" ?>">
|
||||
<td>#<?= $value['order_id'] ?></td>
|
||||
<td><?php $date = new DateTime($value['created_at']); echo $date->format('M d , Y'); ?></td>
|
||||
<td>$<?= json_decode($value['transaction'] , true)['payment']['amount_money']['amount']; ?></td>
|
||||
<td>$<?php $number= json_decode($value['transaction'] , true)['payment']['amount_money']['amount'] / 100;echo number_format($number, 2, '.', ''); ?></td>
|
||||
<td></td>
|
||||
<td class="down-icon" id="<?= $key."_table-grey" ?>"><div class="order-down"><i id="<?= $key."_table-grey_down-icon" ?>" class="fa fa-caret-down" aria-hidden="true"></i></div></td>
|
||||
</tr>
|
||||
@ -183,11 +183,11 @@
|
||||
<?php foreach ($value['credit_data'] as $credit_datakey => $credit_data_value) { ?>
|
||||
<tr class="table-grey <?= $key."_table-grey" ?>">
|
||||
<td><?= $credit_data_value['package_name'] ?></td>
|
||||
<td><p>Pack Cost : $<?= $credit_data_value['cost'] ?></p><p>Pack Credits : <?= $credit_data_value['credit_points'] ?> Nos</p>
|
||||
<td><p>Pack Cost : $<?php $number = $credit_data_value['cost'];echo number_format($number, 2, '.', ''); ?></p><p>Pack Credits : <?= $credit_data_value['credit_points'] ?> Nos</p>
|
||||
<!-- <p>Pack Expiry : <?php $date = new DateTime($credit_data_value['expiring_date']); echo $date->format('M d , Y'); ?></p> -->
|
||||
</td>
|
||||
<td><?= $credit_data_value['pack_count'] ?></td>
|
||||
<td><span>$</span><?= $credit_data_value['costSum'] ?></td>
|
||||
<td><span>$</span><?php $number = $credit_data_value['costSum'];echo number_format($number, 2, '.', '') ?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
@ -197,7 +197,7 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Subtotal</td>
|
||||
<td><span>$</span><?= array_sum(array_column($value['credit_data'],'costSum')) ?></td>
|
||||
<td><span>$</span><?php $number = array_sum(array_column($value['credit_data'],'costSum'));echo number_format($number, 2, '.', '') ?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr class="table-grey custom-font <?= $key."_table-grey" ?> table-bottom">
|
||||
@ -211,14 +211,14 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>GST (<?= $gst ?>%)</td>
|
||||
<td><span>$</span><?= round(array_sum(array_column($value['credit_data'],'costSum')) * $gst / 100 , 2) ?></td>
|
||||
<td><span>$</span><?php $number = array_sum(array_column($value['credit_data'],'costSum')) * $gst / 100;echo number_format($number, 2, '.', '') ?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr class="table-grey custom-font <?= $key."_table-grey" ?> table-bottom">
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Total</td>
|
||||
<td><span>$</span><?= json_decode($value['transaction'] , true)['payment']['amount_money']['amount']; ?></td>
|
||||
<td><span>$</span><?php $number= json_decode($value['transaction'] , true)['payment']['amount_money']['amount'] / 100;echo number_format($number, 2, '.', ''); ?></td>
|
||||
<td class="order-total"><div><img src="<?= base_url()."/public/"; ?>assets/member_images/table-order-icon-white.png" alt=""> 0 </div></td>
|
||||
</tr>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user