?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/eldertree/application/views/accounting/searchreconcilepage.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('accounting/accountingfunctions'); ?> <script type="text/javascript"> $(document).ready(function() { checkfiscalyear(); $('#validateform1').ajaxForm({ success: function(data) { $('html, body').animate({scrollTop:0}, 'slow'); if (data ==1) { $("#success-panel").css('width','500px'); $("#success-panel").fadeIn(1500, 0); $("#success-panel").html("<div style=\"padding-top:4px;text-align:center; width:500px;height:20px;margin-left:0%\" ><font color=\"green\" >This Transaction is successfully Reversed</font></div>"); $("#success-panel").fadeOut(5000, 0); addformdisplay('view_reconciliation', 'accounting'); } else { $("#viewmsg").css('width','500px'); $("#viewmsg").fadeIn(1500, 0); $("#viewmsg").html("<div style=\"border:2px solid red;padding-top:4px;text-align:center; width:500px;height:20px;margin-left:0%\" ><font color=\"red\" >Error Occured in Transaction</font></div>"); $("#viewmsg").fadeOut(5000, 0); } } }); }); </script> <?php $attributes = array('id' => 'validateform1', 'class' => 'validate'); echo form_open('accounting/set_reconcile/set_reconsile/view_reconciliation', $attributes); ?> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Transactions</div> </div> <div class="portlet-body form"> <div class="actions-right"> <label style="float: left;margin: 5px 20px;">Reconcile Date</label> <input type="text" name="rec_date" id="rec_date" style="width:150px;float: left;" class="required span12 calfocus" value="<?=date('d-m-Y')?>"/> </div> <br> <br> <table class="table"> <tr> <th width="10%">Sl No.</th> <th>Type</th> <th>Transaction No</th> <th>Transaction Date</th> <th>Cheque No</th> <th>Debit</th> <th>Credit</th> <th>View</th> <th>Credit</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']; if (isset($cheque_info[$jrn['journal_id']])) { $cheque_no = $cheque_info[$jrn['journal_id']]->cheque_no; } else $cheque_no = ""; 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;'>" . $cheque_no . "</td> <td style='text-align:right;'>" . number_format((double)$debit,2) . "</td> <td style='text-align:right;'>" . number_format((double)$credit,2) . "</td>"; ?> <td><a class="search_details" data-journal_id="<?= $jrn['journal_id'] ?>" id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/view-icon.png" title="View" width="20" height="20" alt="View Entry" align = "center" /></a> </td> <td> <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;"/></td> <?php } ?> </table> <input type='hidden' value='<?=$get_id?>' name="all_journal" id="all_journal"/> <?php if($totrecord>0) { ?> <div class="form-actions"> <button type="submit" class="clickimage" class="btn blue" name="search" id="button1" >Process</button> </div> <?php } ?> </div> </div> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div> <?php echo form_close(); ?> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></div> <script> jQuery(document).ready(function() { $('.search_details').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal hide fade" tabindex="-1"></div>'); var journal_id = $(this).data('journal_id'); $.ajax({ url : "<?= site_url('accounting/viewsingle_page') ?>/" + journal_id +"/search_student_payment/view_student_payment", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); // TableManaged.init(); UIModals.init(); }); </script>