?
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/single_transaction_page.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); //$this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function close_modal() { $('#payment_vouchar_div').modal('hide'); } $(document).ready(function(){ $('.calfocus').datepick({dateFormat: 'dd-mm-yyyy'}); $('#close_modal').click(function(){ close_modal(); return true; }); }); </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> <?= $this->mastermodel->get_single_field_value('finance_transaction_code', 'transaction_name', 'transaction_id', $journal_refs->transaction_id) ?></div> <div class="tools"> <a href="#" id="close_modal" class="remove"></a> </div> </div> <div class="portlet-body form"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr style="border-bottom: 1px solid #C8C8C8;"> <th colspan="3" style="width: 50%;padding: 5px 0;">Transaction No: <?= $journal_refs->reference; ?></th> <th colspan="3">Date: <?= $this->mastermodel->convertdatenormalformat($journal_refs->journal_date); ?></th> </tr> </table> <table class="table table-striped table-hover table-bordered" id="sample_4"> <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; foreach ($journal as $row) { ?> <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> <?php if ($payment) { ?> <table class="table1" style="width: 100%;" > <tr style="border-top: 1px solid #C8C8C8;background: #f8f8f8;"> <td colspan="6" style="padding: 5px 0;font-size: 12px;"> <?php echo '<div style="margin: 2px 5px;padding: 5px 15px 5px 10px;float: left;"><span style="font-size:14px;">Payment Type</span> : ' . $payment['method'] . '</div>'; foreach ($payment['payment_details'] as $key => $value) { echo '<div style="margin: 2px 5px;padding: 5px 10px;float: left;"><span style="font-size:14px;color:black;">' . $key . '</span> : ' . $value . '</div>'; } ?> </td> </tr> </table> <?php } ?> <br/> <?php if ($journal_refs->posted == 0 && $model_function != "search_fee_posted") { ?> <div class="actions"> <div class="actions-right"> <input type="button" id="button1" class="clickimage" onclick="post(<?= $journal_refs->journal_id ?>,'<?= $model_function ?>', '<?= $return_page ?>')" value="POST" style="padding:3px 5px;"/> </div> </div> <?php } ?> </div> </div> </div> </div> <script type="text/javascript"> function post(id, model_function, page) { $.ajax({ type: "GET", dataType: "json", url: "<?= site_url('accounting/post_data/') ?>/" + id, success: function (msg) { alert('Posted Successfully'); close_modal(); $("#inner_content").empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>'); $("#inner_content").load("<?= site_url() ?>/accounting/viewinaccountingsearch/"+ '/' + model_function + '/' + page + '/1'); } }); } </script>