?
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/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('chart_master', 'chart_master_id'); ?> <script type="text/javascript"> $(document).ready(function() { checkfiscalyear(); // $('.customForm').ajaxForm({ // success: function(data) // { alert(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' => 'customForm'); echo form_open('accounting/addinaccounting/journal_unpost/view_success_transaction/1', $attributes); ?> <input type="hidden" name="transaction_id" value="3"/> <div class="grid_12" style="width: 97%;"> <div class="box"> <div class="header main"> Single Reverse Transaction </div> <div class="content no-padding"> <table class="table"> <tr> <th>Transaction Code</th> <th>Date</th> </tr> <tr> <td> <input class="w_90" type="text" readonly="readonly" value="Auto - Generated"/> </td> <td> <input class="medium required " style="float: left;" 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="header main"> Transaction Details </div>--> <div class="content no-padding"> <table class="table"> <thead> <tr> <th width="25%">Acc code</th> <th width="20%">Debit</th> <th width="20%">Credit</th> <th width="25%">Description</th> </tr> </thead> <tbody> <?php $k = 1; $sum_deb = 0; $sum_cre = 0; foreach ($journal as $row) { if ($row['debit'] > 0) { $debit = $row['debit']; $sum_deb+=$debit; $credit = '0'; } else { $credit = $row['credit']; $sum_cre+=$credit; $debit = '0'; } $account = $this->mastermodel->get_data_srow('finance_chart_master', $row['chart_account_code'], 'chart_account_code'); ?> <tr class="addAccount"> <td> <input readonly="readonly" type="hidden" name="code<?= $k ?>" id="code1" data-id='code_id<?= $k ?>' value='<?=$row['chart_account_code'] ?>' class="required payment_account" /> <input readonly="readonly" type="text" name="code_id<?= $k ?>" id="code_id<?= $k ?>" value="<?=$account->chart_account_code . '~' . $account->chart_account_name ?>"/> </td> <td> <input readonly="readonly" type="text" name="credit<?= $k ?>" id="credit<?= $k ?>" onblur="validateAmount(this)" class="auto medium" value="<?= $row['debit'] ?>"/> </td> <td> <input readonly="readonly" type="text" name="debit<?= $k ?>" id="debit<?= $k ?>" onblur="validateAmount(this)" class="auto medium" value="<?= $row['credit'] ?>"/> </td> <td> <textarea readonly="readonly" name="description<?= $k ?>" id="description<?= $k ?>" style="height: 60px;width:150px;"><?= $row['description'] ?></textarea> </td> </tr> <?php $k++; } ?> <tr> <th width="25%" style="text-align: right">Total</th> <th width="20%"> <input type="text" id="sumdebit" class="medium auto" readonly="readonly" value="<?= $sum_deb ?>" name="sumdebit"/> <!--<input type="text" id="showsumdebit" style="width:135px" class="newcls auto" readonly="readonly" value="0.00" />--> </th> <th width="20%"> <input type="text" id="sumcredit" class="medium auto" readonly="readonly" value="<?= $sum_cre ?>" name="sumcredit"/> <!--<input type="text" id="showsumcredit" style="width:135px" class="newcls auto" readonly="readonly" value="0.00" />--> </th> <th width="35%" colspan="2"></th> </tr> </tbody> </table> </div> </div> </div> <div class="grid_12" style="width: 97%;"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="tab_name" value="finance_auto_journal_refs"/> <input type="hidden" name="resfunction" value="search_auto_journal"/> </div> <div class="actions-right"> <button type="submit" id="button1" class="clickimage" onclick="addformdata('validateform')" style="padding:3px 5px;">Process</button> </div> </div> </div> </div> <?php echo form_close(); ?>