?
Current Path : /home1/savoy/www/oscarerp.com/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/oscarerp.com/application/views/accounting/single_transaction_page_cost_center.php |
<div class="grid_12" style="width: 97%;"> <div class="box"> <div class="header main"> Cost of Center </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>Expense Type</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><?= $this->mastermodel->get_single_joined_value('expense_type_name', 'expense_type', 'cost_expense_type', 'expense_type_id', 'expense_type_id', 'finance_journal_id', $row['id']); ?></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 && $model_function!="search_fee_posted") { ?> <div class="actions"> <div class="actions-right"> <input type="button" id="button1" class="clickimage" onclick="post(<?= $journal_refs->journal_id ?>,'<?=$model_function?>', '<?=$return_page?>')" value="POST" style="padding:3px 5px;"/> </div> </div> <?php } ?> </div> </div>