?
Current Path : /home1/savoy/public_html/savoyglobal.net/futuredraft/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/public_html/savoyglobal.net/futuredraft/application/views/accounting/post_pdc.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script src="<?= base_url() ?>assets/js/jquery.autocomplete.js"></script> <script> $(document).ready(function() { checkfiscalyear(); suggest_bank_account('#bankacc'); }); </script> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('accounting/addinaccounting/post_pdc/view_post_dated_cheque/1', $attributes); ?> <input type="hidden" name="transaction_id" value="<?= $journal_refs->transaction_id ?>"/> <input type="hidden" name="payment_type_id" value="<?= $journal_refs->payment_type_id ?>"/> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('accounting','viewinaccountingsearch','search_post_dated_cheque','view_post_dated_cheque','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Post PDC</h4> </div> </div> <div class="grid_12" style="width: 97%;"> <div class="box"> <div class="header main"> Post Dated Cheque </div> <div class="content no-padding"> <table class="table1" style="width: 100%;" > <tr style="border-bottom: 1px solid #C8C8C8;"> <th colspan="3" style="padding: 5px 0;"> <label style="width: 100px;float:left;padding: 10px 0 0 0;">Bank</label> <input style="width: 200px;float: left;" type="text" name="bankacc" id="bankacc" value='' class="required" style="width: 265px"/> <input type="hidden" name="bankacc_id" id="bankacc_id" /> </th> <th colspan="3" style="padding: 5px 0;"> <label style="width: 120px;float:left;padding: 10px 0 0 0;">Transaction No</label> <input style="width: 200px;float: left;" readonly="readonly" type="text" value="--Auto Generated--"/> </th> <th colspan="3"> <label style="width: 170px;float:left;padding: 10px 0 0 0;">Transaction Date</label> <input style="width: 200px;float: left;" class="w_90 required" type="dateonly" name="journal_date" id="journal_date" value="<?= date('d-m-Y') ?>"/> </th> </tr> </table> <table class="table"> <tr> <td colspan="6" style="padding: 5px 0;"></td> </tr> <tr> <th>Slno</th> <th>Account Code</th> <th>Account Name</th> <th>Debit</th> <th>Credit</th> <th>Description</th> </tr> <?php $i = 1; $tot_credit=0; $tot_debit=0; $total=0; foreach ($journal as $row) { $tot_credit+=$row['credit']; $tot_debit+=$row['debit']; if ($row['debit'] != 0){ $total+=$row['debit']; } else{ $total+=$row['credit']; } ?> <tr> <td><?= $i++ ?></td> <td><?= $row['chart_account_code'] ?></td> <td><?= $this->mastermodel->get_single_field_value('finance_chart_master', 'chart_account_name', 'chart_account_code', $row['chart_account_code']); ?></td> <td><?php if ($row['debit'] != 0) echo $row['debit']; ?></td> <td><?php if ($row['credit'] != 0) echo $row['credit']; ?></td> <td><?= $row['description'] ?></td> </tr> <?php } ?> </table> <input type="hidden" name="total" value="<?= $total ?>"/> </div><br/> <?php if ($journal_refs->posted == 0) { ?> <div class="actions"> <input type="hidden" name="journal_id" value="<?= $journal_refs->journal_id ?>"/> <div class="actions-right"> <button type="submit" id="button1" class="clickimage" onclick=" checkdatavalidity($('input#bankacc_id').val(), 'bankacc', 'No existing Bank Account selected'); addformdata('validateform')">Post</button> </div> </div> <?php } ?> </div> </div> <?php echo form_close(); ?>