?
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/searchreconcilepage.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> $(document).ready(function() { checkfiscalyear(); $('.validate').ajaxForm({ success: function(data) { if (data == 1) { $("#success-panel").fadeIn(1500, 0); $("#success-panel").html("<div style=\"padding-top:4px;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"green\" >This Transaction is successfully Reversed</font></div>"); $("#success-panel").fadeOut(5000, 0); addformdisplay('view_reconciliation', 'accounting'); } else { $("#viewmsg").fadeIn(1500, 0); $("#viewmsg").html("<div style=\"border:2px solid red;padding-top:4px;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"red\" >Error Occured in Transaction</font></div>"); $("#viewmsg").fadeOut(5000, 0); } } }); }); </script> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('accounting/set_reconcile/set_reconsile', $attributes); ?> <div class="grid_12"> <div class="box"> <div class="header main no-icon"> Transactions </div> <div class="content no-padding"> <div class="actions"> <div class="actions-left"> </div> <div class="actions-right"> <label style="float: left;margin: 5px 20px;">Reconcile Date</label> <input type="dateonly" name="rec_date" id="rec_date" style="width:150px;float: left;" class="required" value="<?=date('d-m-Y')?>"/> </div> </div> <table class="table"> <tr> <th width="10%">Sl No.</th> <th>Type</th> <th>Transaction No</th> <th>Transaction Date</th> <th>Debit</th> <th>Credit</th> <th width="10%">Action</th> </tr> <?php $i = 0; $get_id=0; foreach ($journal as $jrn) { $get_id=$get_id.','.$jrn['id']; $debit = ""; $credit = ""; if ($jrn['debit'] > 0) $debit = $jrn['debit']; if ($jrn['credit'] > 0) $credit = $jrn['credit']; $journal_refs = $this->mastermodel->get_data_srow('finance_journal_refs', $jrn['journal_id'], 'journal_id'); $tran_id = $journal_refs->transaction_id; $type = $this->mastermodel->get_single_field_value('finance_transaction_code', 'transaction_name', 'transaction_id ', $tran_id); $i = $i + 1; $rid = $jrn['journal_id']; echo "<tr> <td>" . $i . "</td> <td style='text-align:center;'>" . $type . "</td> <td style='text-align:center;'>" . $journal_refs->reference . "</td> <td style='text-align:center;'>" . $this->mastermodel->convertdatenormalformat($journal_refs->journal_date) . "</td> <td style='text-align:right;'>" . number_format((double)$debit,2) . "</td> <td style='text-align:right;'>" . number_format((double)$credit,2) . "</td> <td style='text-align:center;'>"; ?> <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(<?= $jrn['journal_id'] ?>)" style="cursor: pointer" class="clickimage1" /> <input <?php if ($jrn['reconcile_date']!=null) echo "checked='checked'" ;?>type="checkbox" value="<?= $jrn['id']; ?>" name='select_for_reconcile[]' width="20" height="20" align = "center" id='select_for_reconcile' style="float: left; width:20px;"/> <?php echo "</td></tr>"; } ?> </table> <input type='hidden' value='<?=$get_id?>' name="all_journal" id="all_journal"/> </div> <?php if($totrecord>0) { ?> <div class="actions"> <div class="actions-left"> <input type="reset"> </div> <div class="actions-right"> <button type="submit" class="clickimage" name="search" id="button1" >Process</button> </div> </div> <?php } ?> </div> </div> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div> <?php echo form_close(); ?>