| Server IP : 162.214.74.102 / Your IP : 216.73.217.114 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/leve/application/plugins/module_billing/views/ |
Upload File : |
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>{$_L['Payment register']}</h3>
</div>
<div class="modal-body">
<form class="form-horizontal" id="form_register" method="post"
action="{U}module_billing/billing/add_register_post" enctype="multipart/form-data">
<input type="hidden" name="id_record" value="{$record['id']}">
<input type="hidden" name="type" value="{$record['type']}">
<input type="hidden" name="id_category" value="{$record['id_category']}">
<input type="hidden" name="id_cost_center" value="{$record['id_cost_center']}">
<div class="row">
<div class="col-md-4 col-sm-12">
<label for="id_account" class="control-label">
{if $record['type'] == 'Income'}{$_L['Billing Destino']}{else}{$_L['Origin']}{/if}
<small class="red">*</small>
</label>
<select class="form-control" name="id_sys_account">
{foreach $sys_accounts as $acc}
<option value="{$acc['id']}">{$acc['account']} - {$acc['description']}</option>
{/foreach}
</select>
</div>
<div class="col-md-4 col-sm-12 row-date">
<label for="date" class="control-label">
{$_L['Date']}
<small class="red">*</small>
</label>
<input type="text" name="date" id="date" class="form-control"
value="{date('d/m/Y')}" datepicker data-date-format="dd/mm/yyyy">
</div>
<div class="row row-pmethod">
<div class="col-md-4 col-md-12">
<label for="id_payment_method" class="control-label">
{$_L['Method']}
<small class="red">*</small>
</label>
<select class="form-control" name="id_payment_method">
<option selected>{$_L['Select a category']}</option>
{foreach $pmethods as $pmethod}
<option {if $record['id_payment_method'] == $pmethod['id']}selected{/if} value="{$pmethod['id']}">{$pmethod['name']}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label for="historic" class="control-label">
{$_L['Historic']}
</label>
<textarea name="historic" id="historic" class="form-control" cols="30" rows="3">{$record['historic']}</textarea>
</div>
</div>
<br>
<br>
<div class="row row-table">
<div class="col-md-12">
<h3>{$_L['Referring to the following accounts']}</h3>
</div>
</div>
<div class="row row-table">
<div class="col-md-12">
<table id="table-record" class="table table-bordered">
<thead>
<tr>
<th>{$_L['Account']}</th>
<th>Nº doc</th>
<th>{$_L['Balance']}</th>
<th>{$_L['Tax']}</th>
<th>{$_L['Interest']}</th>
<th>{$_L['Discount']}</th>
<th>{$_L['Increase']}</th>
<th>{$_L['Amount paid']}</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>{$record['account']}</td>
<td>{$record['document_number']}</td>
<td>{number_format($record['balance'], 2, ',', '.')}</td>
<td><input type="text" name="tax" id="tax" class="form-control" value="0,00"></td>
<td><input type="text" name="interest" id="interest" class="form-control" value="0,00"></td>
<td><input type="text" name="discount" id="discount" class="form-control" value="0,00"></td>
<td><input type="text" name="increase" id="increase" class="form-control" value="0,00"></td>
<td>
<input type="text" name="amount_paid" id="amount_paid" class="form-control"
value="{number_format($record['balance'], 2, ',', '.')}">
</td>
<td>
{if $record['status'] == 'Em aberto'}
{if ((($record['value'] - $record['payed']) > 0) && ($record['expiry'] < date('Y-m-d')))}
<i class="fa fa-circle text-danger" data-toggle="tooltip" data-placement="top" title="Atrasada"></i>
{else}
<i class="fa fa-circle text-warning" data-toggle="tooltip" data-placement="top" title="Em aberto"></i>
{/if}
{elseif $record['status'] == 'Paga'}
<i class="fa fa-circle text-navy" data-toggle="tooltip" data-placement="top" title="Paga"></i>
{elseif $record['status'] == 'Parcial'}
<i class="fa fa-circle text-success" data-toggle="tooltip" data-placement="top" title="Parcial"></i>
{elseif ($record['status'] == 'Atrasada')}
<i class="fa fa-circle text-danger" data-toggle="tooltip" data-placement="top" title="Atrasada"></i>
{/if}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row row-amount">
<div class="col-md-3 col-sm-3 col-md-offset-9">
<label for="amount">{$_L['Total Paid']}</label>
<input type="text" name="amount" id="amount" class="form-control"
value="{number_format($record['balance'], 2, ',', '.')}" disabled="disabled">
</div>
</div>
</form>
<a href="#" id="advanced"> Avançado </a>
</div>
<div class="modal-footer">
<button class="btn btn-primary register_submit" type="submit" id="modal_register_submit">
<i class="fa fa-check"></i> {$_L['Payment register']}
</button>
<a href="#" data-dismiss="modal"> | ou Cancelar</a>
</div>