?
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/post_auto_journal.php |
<?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(); }); </script> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('accounting','viewinaccountingsearch','search_auto_journal','view_fixed_journal','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating Journal Voucher</h4> </div> </div> <div id="viewmsg" style="width: 100%;float: left;height: 25px;"></div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('accounting/addinaccounting/journal_unpost/view_fixed_journal/1', $attributes); ?> <input type="hidden" name="transaction_id" value="3"/> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main">Add Auto Journal</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"> <div class="box"> <div class="content no-padding"> <div class="header main"> Deposit Items</div> <input type="hidden" name="counter" id="counter" value="0"/> <input type="hidden" name="counter_check" id="counter_check"/> <input type="hidden" name="class_ch" id="class_ch"/> <table class="table"> <tr> <th width="30%">Acc code</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> <?php foreach ($accounts as $value) { if ($value["chart_account_code"] == $row['chart_account_code']) { ?> <input style='width:185px;' type="hidden" id="code<?= $i ?>" name="code<?= $i ?>" readonly="readonly" value="<?= $value["chart_account_code"] ?>"/> <input style='width:185px;' type="text" id="code_id<?= $i ?>" name="code_id<?= $i ?>" readonly="readonly" value="<?= $value["chart_account_code"] . $value["chart_account_name"] ?>"/> <?php } } ?> </td> <td> <input style="width:180px" type="text" class="auto" id="debit<?= $i ?>" name="debit<?= $i ?>" readonly="readonly" value="<?= $debit ?>"/> </td> <td> <input style="width:180px" type="text" class="auto" id="credit<?= $i ?>" name="credit<?= $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++; } ?> </table> <div id="adddiv"></div> <table class="table" > <tr> <th width="30%" style="text-align: right">Total</th> <th width="15%"> <input type="text" id="sumdebit" class="newcls" readonly="readonly" value="<?= $sumdebit ?>" name="sumdebit" style="text-align: right;width: 180px;"/> </th> <th width="15%"> <input type="text" id="sumcredit" class="newcls" readonly="readonly" value="<?= $sumcredit ?>" name="sumcredit" style="text-align: right;width: 180px;"/> </th> <th colspan="2"></th> </tr> </table> <input type="hidden" value="0" name="refid"> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <!--<input type="reset">--> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick=" addformdata('validateform')">Post</button> </div> </div> </div> </div> <?php echo form_close(); ?>