?
Current Path : /home1/savoy/www/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/www/savoyglobal.net/eldertree/application/views/accounting/edit_bank_journal.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <script> $(document).ready(function() { checkfiscalyear(); suggest_bank_account('#from_account,#to_account'); }); </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>Updating Bank Journal</div> <div class="tools"> <a href="#" onclick="viewdata('accounting','viewinaccountingsearch','search_bank_journal','view_bank_journal','<?=$_SESSION['pagenum'];?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); $bankacc=$this->mastermodel->getdatas('finance_bank_account','bank_account_id','asc','bank_account_id'); echo form_open('accounting/addinaccounting/update_bank_journal/view_bank_journal/1',$attributes); ?> <h3> Bank To Bank Transfer</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">From Account:</label> <div class="controls"> <input value="<?=$from_acc->bank_name.'-'.$from_acc->chart_account_code?>" type="text" name="from_account" id="from_account" onchange="empty_text('from_account_id')" class="required span12" onblur="check_bank('from_account')"/> <input value="<?=$from_acc->bank_account_id.'~'.$from_acc->chart_account_code.'~'.$from_acc->bank_name?>" type="hidden" name="from_account_id" id="from_account_id" /> <!-- <select name="from_account" id="from_account" class="chosen required" onclick="check_bank(this.id)"> <option value=""> Select </option> <?php foreach($bankacc as $acc) { ?> <option value="<?=$acc['bank_account_id']?>" <?php if($acc['bank_account_id']==$from_acc){ echo 'selected'; }?>><?=$acc['bank_name']?></option> <?php } ?> </select>--> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">To Account:</label> <div class="controls"> <input value="<?=$to_acc->bank_name.'-'.$to_acc->chart_account_code?>" type="text" name="to_account" id="to_account" style="width: 300px;" onchange="empty_text('to_account_id')" class="required" onblur="check_bank('to_account')"/> <input value="<?=$to_acc->bank_account_id.'~'.$to_acc->chart_account_code.'~'.$to_acc->bank_name?>" type="hidden" name="to_account_id" id="to_account_id" /> <!-- <select name="to_account" class="chosen required" id="to_account" onclick="check_bank(this.id)"> <option value=""> Select </option> <?php foreach($bankacc as $acc) { ?> <option value="<?=$acc['bank_account_id']?>" <?php if($acc['bank_account_id']==$to_acc){ echo 'selected'; }?>><?=$acc['bank_name']?></option> <?php } ?> </select>--> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Amount: </label> <div class="controls"> <input class="span12 text_r" type="text" name="amount" id="amount" value="<?=$amount?>" /> </div> </div> </div> </div> <div class="portlet box yellow" id="div_payment_details" style="display: none"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i></div> </div> <div class="portlet-body" id="payment_mode"> </div> </div> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> </div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Transaction No:</label> <div class="controls"> <input class="span12" type="text" name="transaction_no" readonly="readonly" value="<?=$viewinfo->reference?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label"> Date:</label> <div class="controls"> <input class="span12 required calfocus" type="text" name="journal_date" id="journal_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->journal_date)?>"/> </div> </div> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="journal_id" id="journal_id" value="<?=$viewinfo->journal_id?>"/> <input type="hidden" name="tab_name" value="finance_journal_refs"/> <input type="hidden" name="resfunction" value="search_bank_journal"/> <button type="submit" onclick="checkdatavalidity($('#from_account_id').val(),'from_account','From Account not in List'); checkdatavalidity($('#to_account_id').val(),'to_account','To Bank Account not in List'); addformdata('validateform')" class="btn blue"><i class="icon-ok"></i>Transfer Amount</button> <button type="button" onclick="viewdata('accounting','viewinaccountingsearch','search_bank_journal','view_bank_journal','<?=$_SESSION['pagenum'];?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>