?
Current Path : /home1/savoy/public_html/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/public_html/oscarerp.com/application/views/accounting/view_journal_voucher.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/add.png" title="Add New" class="clickimage" onclick="addformdisplay('add_journal_voucher', 'accounting')" alt="Add New" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Un posted - Journal Voucher details</h4> </div> </div> <div class="clean"></div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content no-padding"> <table class="table"> <tr> <th><input type="radio" name="receipt_voucher" class="chzn-done" value="0" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_journal_voucher_posted', 'view_journal_voucher_posted', '1')" checked="true" /></th><th><label>Posted</label></th> <th><input type="radio" checked="checked" name="receipt_voucher" class="chzn-done" value="1" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_journal_voucher', 'view_journal_voucher', '1')" /></th><th><label>Un posted</label></th> </tr> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content"> <table id="table-example" class="table"> <thead> <tr> <th id="sl">Sl No</th> <th>Transaction No</th> <th>A/C Code</th> <th>A/C Name</th> <th>Debit</th> <th>Credit</th> <th>Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $table = ""; $field = ""; $i = 0; $code = 0; foreach ($viewinfo->result() as $row) { $journal = $this->mastermodel->get_data('finance_journal', $row->journal_id, 'journal_id', 'id', 'journal_id', 'desc'); $i++; ?> <tr> <td style="text-align: center;" ><?= $i ?></td> <td><?= $row->reference ?></td> <?php $temp = 0; if ($temp != $row->journal_id) echo "<td>"; foreach ($journal as $value) { echo '<p class="fixed_p">' . $value['chart_account_code'] . '</p>'; } if ($temp != $row->journal_id) echo "</td>"; if ($temp != $row->journal_id) echo "<td>"; foreach ($journal as $value) { echo '<p class="fixed_p">' . $this->mastermodel->get_single_field_value('finance_chart_master', 'chart_account_name', 'chart_account_code', $value['chart_account_code']) . '</p>'; } if ($temp != $row->journal_id) echo "</td>"; if ($temp != $row->journal_id) echo "<td>"; foreach ($journal as $value) { $db=0; if ($value['debit'] > 0) $db=number_format($value['debit'],2); echo '<p class="fixed_p text_r">'.$db.'</p>'; } if ($temp != $row->journal_id) echo "</td>"; if ($temp != $row->journal_id) echo "<td>"; foreach ($journal as $value) { $cd=0; if ($value['credit'] > 0) $cd=number_format($value['credit'],2); echo '<p class="fixed_p text_r">'.$cd.'</p>'; } if ($temp != $row->journal_id) echo "</td>"; $temp = $row->journal_id; ?> <td><?= $this->mastermodel->convertdatenormalformat($row->journal_date) ?></td> <td id="actions_3"> <img src="<?= base_url() ?>/assets/images/view-icon.png" id="editclass" title="View" width="20" height="20" alt="View Entry" align = "center" onclick="viewthis_unpost(<?= $row->journal_id ?>, 'search_journal_voucher', 'view_journal_voucher')" style="cursor: pointer" class="clickimage1" /> <?php if ($row->posted == 0) { ?> <img src="<?= base_url() ?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('accounting', 'edit_journal_voucher', '<?= $row->journal_id; ?>', 'finance_journal_refs', 'journal_id', 'edit_journal_voucher')" alt="" /> <?php } ?> <img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('finance_journal_refs',<?= $row->journal_id; ?>, 'journal_id', 'accounting', 'viewinaccountingsearch', 'search_journal_voucher', 'view_journal_voucher', '<?= $table ?>', '<?= $field ?>')" alt="Delete" align = "center"/> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div>