?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/franchisee/ |
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/sec/application/views/franchisee/post_franchisee_fee.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('accounting/accountingfunctions'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <script type="text/javascript"> function close_modal() { $('#payment_vouchar_div').modal('hide'); } $(document).ready(function(){ checkfiscalyear(); suggest_bank_account('#bankacc'); $('.calfocus').datepick({dateFormat: 'dd-mm-yyyy'}); $('#close_modal').click(function(){ close_modal(); return true; }); }); function submit_post() { var bb = addformdata('validateform'); if(bb) { $('#close_modal').click(function(){ close_modal(); return true; }); } } </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i> Create Payment Voucher For Franchisee Fee </div> <div class="tools"> <a href="#" id="close_modal" class="remove"></a> </div> </div> <div class="portlet-body form"> <div id="viewmsg" style="width: 100%;float: left;height: 25px;"></div> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('franchisee/addinfranchisee/set_payment_voucher_fee_settings/view_franchisee_fee/1', $attributes); $payment_type = $this->mastermodel->getdatas('finance_payment_types', 'payment_type_id', 'asc'); ?> <input type="hidden" name="transaction_id" value="1"/> <div class="clean"></div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i> Franchisee Details</div> </div> <div class="portlet-body form"> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Franchisee Name:</label> <div class="controls"> <?= $franchisee_details[0]->franchisee_name; ?> <input readonly="readonly" type="hidden" name="franchisee_fee_id" id="franchisee_fee_id" value="<?= $franchisee_details[0]->franchisee_fee_id ?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Franchisee Code: </label> <div class="controls"> <?= $franchisee_details[0]->franchisee_code ?> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Batch Code:</label> <div class="controls"> <?= $franchisee_details[0]->batch_no ?> </div> </div> </div> </div> <div class="row-fluid"> <div class="span12 "> <div class="control-group"> <label class="control-label">Course Name: </label> <div class="controls"> <?= $franchisee_details[0]->course_name ?> </div> </div> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i> Franchisee Fee Payment Details</div> </div> <div class="portlet-body form"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Account Code </th> <th>Description</th> <th>Amount</th> </tr> <tr> <td> <?php $franchisee_acc = $this->mastermodel->get_data_srow('finance_chart_master', $franchisee_details[0]->franchisee_code, 'chart_account_code') ?> <input type="text" name="payment_to" id="payment_to" value='<?= $franchisee_acc->chart_account_code ?>' class="required span12 payment_account" /> <input type="hidden" name="payment_to_id" id="payment_to_id" value="<?= $franchisee_acc->chart_master_id . '~' . $franchisee_acc->chart_account_code . '~' . $franchisee_acc->chart_account_name ?>" /> </td> <td> <textarea name="description" id="description" class="required span12"></textarea> </td> <td> <input class="span12 number required text_r" readonly="readonly" value="<?= number_format($franchisee_details[0]->franchisee_fee_amount, 2) ?>" type="text" name="amount" id="amount"/> </td> </tr> </table> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i> Bank Account Deposit Entry</div> </div> <div class="portlet-body form"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Transaction No: </th> <th>From:</th> <th>Date:</th> <th>Payment Method</th> </tr> <tr> <td> <input readonly="readonly" class="span12" type="text" value="--Auto Generated--"/></td> <td> <input type="text" name="bankacc" id="bankacc" value='' class="required span12" /> <input type="hidden" name="bankacc_id" id="bankacc_id" /> </td> <td><input class="span12 required calfocus" type="text" name="journal_date" id="journal_date" value="<?= date('d-m-Y') ?>"/></td> <td> <select name="payment_type_id" id="payment_type_id" class="required chosen span12" onchange="select_payment_mode(this.value, 'payment_mode','PV')"> <?php foreach ($payment_type as $value) { echo '<option value="' . $value['payment_type_id'] . '">' . $value["payment_type"] . '</option>'; } ?> </select> </td> </tr> </table> <div class="portlet box blue" id="div_payment_details" style="display: none" > <div class="portlet-title"> <div class="caption"><i class="icon-check"></i>Payment details</div> </div> <div class="portlet-body" id="payment_mode"></div> </div> </div> </div> <div class="form-actions"> <!-- <input type="hidden" name="student_batch_id" id="student_batch_id" value="<?= $viewinfo->student_batch_id ?>"/>--> <input type="hidden" name="resfunction" value="search_franchisee_fee"/> <input type="hidden" name="franchisee_fee_id" value="<?= $franchisee_details[0]->franchisee_fee_id ?>" id="franchisee_fee_id"/> <input type="hidden" name="table" value="franchisee_fee"/> <button type="submit" onclick="checkdatavalidity($('input#bankacc_id').val(), 'bankacc', 'No existing Bank Account selected'); submit_post()" class="btn blue"><i class="icon-ok"></i> Save</button> </div> </div> <?php echo form_close(); ?> </div> </div> </div>