?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/eldertree/application/views/accounting/post_pdc.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('accounting/accountingfunctions'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <script> $(document).ready(function() { checkfiscalyear(); suggest_bank_account('#bankacc'); }); </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Post PDC</div> <div class="tools"> <a href="#" onclick="viewdata('accounting','viewinaccountingsearch','search_post_dated_cheque','view_post_dated_cheque','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal 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 ?>"/> <h4 style="text-align: center;"> Post Dated Cheque</h4> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Bank</th> <th>Transaction No</th> <th>Transaction Date</th> </tr> <tr> <td> <input type="text" name="bankacc" id="bankacc" value='' class="span12required" /> <input type="hidden" name="bankacc_id" id="bankacc_id" /> </td> <td> <input class="span12" readonly="readonly" type="text" value="--Auto Generated--"/> </td> <td> <input class="span12 calfocus required" type="text" name="journal_date" id="journal_date" value="<?= date('d-m-Y') ?>"/> </td> </tr> </table> <table class="table table-striped table-hover table-bordered" id="sample_3"> <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 ?>"/> <br/> <?php if ($journal_refs->posted == 0) { ?> <div class="form-actions"> <input type="hidden" name="journal_id" value="<?= $journal_refs->journal_id ?>"/> <input type="hidden" name="resfunction" value="search_payment_voucher"/> <button type="submit" id="button1" class="btn blue" onclick=" checkdatavalidity($('input#bankacc_id').val(), 'bankacc', 'No existing Bank Account selected'); addformdata('validateform')"><i class="icon-ok"></i>Post</button> <button type="button" onclick="viewdata('accounting','viewinaccountingsearch','search_post_dated_cheque','view_post_dated_cheque','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php } ?> </div> </div> </div> </div>