?
Current Path : /home1/savoy/www/savoyglobal.net/rms/application/views/accounting/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/rms/application/views/accounting/single_transaction_page.php |
<div class="grid_12" style="width: 97%;"> <div class="box"> <div class="header main"> <?=$this->mastermodel->get_single_field_value('finance_transaction_code', 'transaction_name', 'transaction_id', $journal_refs->transaction_id)?> </div> <div class="content no-padding"> <table class="table1" style="width: 100%;" > <tr style="border-bottom: 1px solid #C8C8C8;"> <th colspan="3" style="width: 50%;padding: 5px 0;">Transaction No: <?= $journal_refs->reference; ?></th> <th colspan="3">Date: <?= $this->mastermodel->convertdatenormalformat($journal_refs->journal_date); ?></th> </tr> </table> <table class="table"> <tr> <td colspan="6" style="padding: 5px 0;"></td> </tr> <tr> <th>Slno</th> <th>Account Code</th> <th>Account Name</th> <th>Debit</th> <th>Credit</th> <th>Description</th> </tr> <?php $i = 1; foreach ($journal as $row) { ?> <tr> <td><?= $i++ ?></td> <td><?= $row['chart_account_code'] ?></td> <td><?= $this->mastermodel->get_single_field_value('finance_chart_master', 'chart_account_name', 'chart_account_code', $row['chart_account_code']); ?></td> <td><?php if ($row['debit'] != 0) echo $row['debit']; ?></td> <td><?php if ($row['credit'] != 0) echo $row['credit']; ?></td> <td><?= $row['description'] ?></td> </tr> <?php } ?> </table> <?php if($payment) {?> <table class="table1" style="width: 100%;" > <tr style="border-top: 1px solid #C8C8C8;background: #f8f8f8;"> <td colspan="6" style="padding: 5px 0;font-size: 12px;"> <?php echo '<div style="margin: 2px 5px;padding: 5px 15px 5px 10px;float: left;"><span style="font-size:14px;">Payment Type</span> : '.$payment['method'].'</div>'; foreach ($payment['payment_details'] as $key => $value) { echo '<div style="margin: 2px 5px;padding: 5px 10px;float: left;"><span style="font-size:14px;color:black;">'.$key.'</span> : '.$value.'</div>'; } ?> </td> </tr> </table> <?php } ?> </div><br/> <?php if ($journal_refs->posted == 0) { ?> <div class="actions"> <div class="actions-right"> <input type="button" id="button1" class="clickimage" onclick="post(<?= $journal_refs->journal_id ?>, 'search_payment_voucher', 'view_payment_voucher')" value="POST" style="padding:3px 5px;"/> </div> </div> <?php } ?> </div> </div>