?
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/single_reverse_transaction.php |
<script type="text/javascript"> $(document).ready(function() { checkfiscalyear(); }); </script> <div id="viewmsg" style="width: 100%;float: left;height: 25px;"></div> <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $accounts = $this->mastermodel->getdatas('finance_chart_master', 'chart_type_id', '', 'chart_master_id'); ?> <script type="text/javascript"> $(document).ready(function() { checkfiscalyear(); $('.validate').ajaxForm({ success: function(data) { if (data == 1) { $.fn.colorbox.close(); $("#viewmsg2").fadeIn(1500, 0); $("#viewmsg2").html("<div style=\"border:2px solid green;padding-top:4px;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"green\" >This Transaction is successfully Reversed</font></div>"); $("#viewmsg2").fadeOut(5000, 0); } 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> <div id="viewmsg" style="width: 100%;float: left;height: 25px;"></div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('accounting/Addreverse_journal/journal_unpost', $attributes); ?> <div class="grid_12" style="width:97%"> <div class="box"> <div class="content no-padding"> <div class="header main">Reverse Transaction</div> <table class="table"> <tr> <td>Transaction Code<br/><input class="w_90" type="text" readonly="readonly" value="Auto - Generated"/></td> <td>Date<br/><input class="w_90 required" type="dateonly" name="journal_voucher_date" id="journal_voucher_date"/></td> </tr> </table> </div> </div> </div> <div class="grid_12" style="width:97%"> <div class="box"> <div class="content no-padding"> <div class="header main"> Deposit Items</div> <table class="table"> <tr> <th width="25%">Acc code</th> <th width="20%">Acc Name</th> <th width="15%">Debit</th> <th width="15%">Credit</th> <th>Description</th> </tr> <?php $sumdebit = 0; $sumcredit = 0; $i = 1; foreach ($journal as $row) { $debit = 0; $credit = 0; if ($row['debit'] > 0) $debit = $row['debit']; if ($row['credit'] > 0) $credit = $row['credit']; $sumdebit+=$debit; $sumcredit+=$credit ?> <tr id="dvFiles0"> <td> <input style='width:185px;' type="text" id="code<?= $i ?>" name="code<?= $i ?>" readonly="readonly" value="<?= $row["chart_account_code"] ?>"/> </td> <td> <input style='width:185px;' type="text" id="code_id<?= $i ?>" name="code_id<?= $i ?>" readonly="readonly" value="<?= $this->mastermodel->get_single_field_value('finance_chart_master', 'chart_account_name', 'chart_account_code', $row['chart_account_code']); ?>"/> </td> <td> <input style="width:120px" type="text" class="auto" id="credit<?= $i ?>" name="credit<?= $i ?>" readonly="readonly" value="<?= $debit ?>"/> </td> <td> <input style="width:120px" type="text" class="auto" id="debit<?= $i ?>" name="debit<?= $i ?>" readonly="readonly" value="<?= $credit ?>"/> </td> <td style="padding-bottom:15px;"> <textarea id="description<?= $i ?>" name="description<?= $i ?>" style='width:200px;height:50px' readonly="readonly" ></textarea> </td> </tr> <?php $i++; } ?> <tr> <th style="text-align: right" colspan="2">Total</th> <th width="15%"> <input type="text" id="sumdebit" class="newcls" readonly="readonly" value="<?= $sumdebit ?>" name="sumdebit" style="text-align: right;width: 120px;"/> </th> <th width="15%"> <input type="text" id="sumcredit" class="newcls" readonly="readonly" value="<?= $sumcredit ?>" name="sumcredit" style="text-align: right;width: 120px;"/> </th> <th> </th> </tr> </table> <input type="hidden" value="0" name="refid"> </div> </div> </div> <div class="grid_12" style="width:97%"> <div class="box"> <div class="actions"> <div class="actions-left"> </div> <div class="actions-right"> <button type="submit" id="button1" class="clickimage" style="padding:3px 5px;">Process</button> </div> </div> </div> </div> <?php echo form_close(); ?>