?
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/view_post_dated_cheque.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="" onclick="addformdisplay('add_post_dated_cheque', 'accounting')" alt="Add New" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Un-Posted Post Dated Cheque</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="post_dated_cheque" id="post_dated_cheque_posted" value="0" class="chzn-done" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_post_dated_cheque_posted', 'view_post_dated_cheque_posted', '1')" /></th><th><label>Posted Bank Payment</label></th> <th><input type="radio" name="post_dated_cheque" id="post_dated_cheque" checked="checked" value="1" class="chzn-done" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_post_dated_cheque', 'view_post_dated_cheque', '1');" /></th><th><label>Un-Posted Bank Payment</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>Account code</th> <th>Account Name</th> <th>Credit</th> <th>Debit</th> <th>Cheque 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','journal_id'); $i++; ?> <tr> <td style="text-align: center;" ><?= $i ?></td> <?php $temp=0; $acc_code=""; $acc_name=""; $credit=""; $debit=""; foreach ($journal as $value) { $acc_code.='<p class="fixed_p">'.$value['chart_account_code'].'</p>'; $acc_name.='<p class="fixed_p">'.$this->mastermodel->get_single_field_value('finance_chart_master', 'chart_account_name', 'chart_account_code', $value['chart_account_code']).'</p>'; $credit.='<p class="fixed_p text_r">'.number_format((double)$value['credit'],2).'</p>'; $debit.='<p class="fixed_p text_r">'.number_format((double)$value['debit'],2).'</p>'; } if($temp!=$row->journal_id) { echo "<td>".$acc_code."</td>"; echo "<td>".$acc_name."</td>"; echo "<td>".$credit."</td>"; echo "<td>".$debit."</td>"; } $temp=$row->journal_id; ?> <td><?= $this->mastermodel->convertdatenormalformat($row->cheque_date) ?></td> <td> <img src="<?= base_url() ?>assets/images/process.png" id="editclass" title="Post" width="20" height="20" alt="Post" align="center" onclick="editformdata('accounting', 'edit_post_dated_cheque', '<?= $row->journal_id; ?>', 'finance_journal_refs', 'journal_id', 'post_pdc')" 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_post_dated_cheque', '<?= $row->journal_id; ?>', 'finance_journal_refs', 'journal_id', 'edit_post_dated_cheque')" alt="" /> <?php } else{?> <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_post_dated_cheque', 'view_post_dated_cheque')" style="cursor: pointer" class="clickimage1" /> <?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_post_dated_cheque', 'view_post_dated_cheque', '<?= $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>