| Server IP : 162.214.74.102 / Your IP : 216.73.217.80 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/erp/ui/theme/lrsys/ |
Upload File : |
{include file="sections/header.tpl"}
<div class="row">
<!-- <div class="col-lg-12">
<div class="form-group">
<label for="exampleInputEmail1">{$_L['Unique Invoice URL']}:</label>
<input type="text" class="form-control" id="invoice_public_url" onClick="this.setSelectionRange(0, this.value.length)" value="{$_url}client/iview/{$d['id']}/token_{$d['vtoken']}">
</div> -->
<div class="col-lg-12" id="application_ajaxrender">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>{$_L['Order']} - {$d['invoicenum']}{if $d['cn'] neq ''} {$d['cn']} {else} {$d['id']} {/if} </h5>
<input type="hidden" name="iid" value="{$d['id']}" id="iid">
<div class="btn-group pull-right" style="margin-top:40px;" role="group" aria-label="...">
<!-- <div class="btn-group" role="group">
<button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<i class="fa fa-envelope-o"></i> {$_L['Send Email']}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" id="mail_invoice_created">{$_L['Invoice Created']}</a></li>
<li><a href="#" id="mail_invoice_reminder">{$_L['Invoice Payment Reminder']}</a></li>
<li><a href="#" id="mail_invoice_overdue">{$_L['Invoice Overdue Notice']}</a></li>
<li><a href="#" id="mail_invoice_confirm">{$_L['Invoice Payment Confirmation']}</a></li>
<li><a href="#" id="mail_invoice_refund">{$_L['Invoice Refund Confirmation']}</a></li>
</ul>
</div> -->
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<i class="fa fa-ellipsis-v"></i> {$_L['Mark As']}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
{if $d['status'] neq 'Open'}
<li>
<a data-status="{$_L['Open']}" data-id="{$d['id']}" class='update_status' data-val="Open" href="#">{$_L['Open']}</a>
</li>
{/if}
{if $d['status'] neq 'Approved'}
<li>
<a data-status="{$_L['Approved']}" data-id="{$d['id']}" class='update_status' data-val="Approved" href="#">{$_L['Approved']}</a>
</li>
{/if}
{if $d['status'] neq 'Canceled'}
<li>
<a data-status="{$_L['Canceled']}" data-id="{$d['id']}" class='update_status' data-val="Canceled" href="#">{$_L['Canceled']}</a>
</li>
{/if}
{if $d['status'] neq 'Returned'}
<li>
<a data-status="{$_L['Returned']}" data-id="{$d['id']}" class='update_status' data-val="Returned" href="#">{$_L['Returned']}</a>
</li>
{/if}
{if $d['status'] neq 'Delivered'}
<li>
<a data-status="{$_L['Delivered']}" data-id="{$d['id']}" class='update_status' data-val="Delivered" href="#">{$_L['Delivered']}</a>
</li>
{/if}
{if $d['status'] neq 'Shipped'}
<li>
<a data-status="{$_L['Shipped']}" data-id="{$d['id']}" class='update_status' data-val="Shipped" href="#">{$_L['Shipped']}</a>
</li>
{/if}
{if $d['status'] neq 'Production'}
<li>
<a data-status="{$_L['Production']}" data-id="{$d['id']}" class='update_status' data-val="Production" href="#">{$_L['Production']}</a>
</li>
{/if}
</ul>
</div>
<a class="btn btn-warning btn-sm" href="{$_url}orders/edit/{$d['id']}/"><i class="fa fa-pencil"></i> {$_L['Edit']}</a>
<a href="#" class="cdelete btn btn-danger btn-sm" id="uid{$d['id']}"><i class="fa fa-trash"></i> {$_L['Delete']}</a>
{if empty($d['sys_invoice_id'])}
{if $d['paymentcondition']==1}
<a href="#" class="btn btn-success btn-sm create_invoice" data-id="{$d['id']}" data-sys_accounts_id="{$d['installment_sys_accounts_id']}" data-p_methods_id="{$d['installment_p_methods_id']}" ><i class="fa fa-dollar"></i> {$_L['Create Invoice']}</a>
{else}
<a class="btn btn-success btn-sm" href="{$_url}orders/convert_invoice/{$d['id']}/view-full" ><i class="fa fa-check"></i> {$_L['Create Invoice']}</a>
{/if}
{else}
<a class="btn btn-primary btn-sm" href="{$_url}invoices/view/{$d['sys_invoice_id']}" ><i class="fa fa-dollar"></i> {$_L['View Invoice']}</a>
{/if}
<a href="#" class="btn btn-info btn-sm occurrence" data-status="{$d['status']}" data-id="{$d['id']}" ><i class="fa fa-eye"></i> {$_L['Occurrences']}</a>
</div>
</div>
<div class="ibox-content">
<div class="invoice">
<header class="clearfix">
<div class="row">
<div class="col-sm-6 mt-md">
<h2 class="h2 mt-none mb-sm text-dark text-bold">{$_L['Order']}</h2>
<h4 class="h4 m-none text-dark text-bold">#{$d['ordernum']}{if $d['cn'] neq ''} {$d['cn']} {else} {$d['id']} {/if}</h4>
<!-- {if $d['status'] eq 'Unpaid'}
<h3 class="alert alert-danger">{$_L['Unpaid']}</h3>
{elseif $d['status'] eq 'Paid'}
<h3 class="alert alert-success">{$_L['Paid']}</h3>
{elseif $d['status'] eq 'Partially Paid'}
<h3 class="alert alert-info">{$_L['Partially Paid']}</h3>
{else}
<h3 class="alert alert-info">{$d['status']}</h3>
{/if}-->
{if $d['status'] eq 'Approved'}
<h3 class="alert alert-success">{ib_lan_get_line($_L[$d['status']])}</h3>
{else}
<h3 class="alert alert-danger">{ib_lan_get_line($_L[$d['status']])}</h3>
{/if}
</div>
<div class="col-sm-6 text-right mt-md mb-md">
<address class="ib mr-xlg">
{$_c['caddress']}
</address>
<div class="ib">
<img src="{$app_url}application/storage/system/logo.png" alt="Logo">
</div>
</div>
</div>
</header>
<div class="bill-info">
<div class="row">
<div class="col-md-6">
<div class="bill-to">
<p class="h5 mb-xs text-dark text-semibold"><strong>{$_L['Invoiced To']}:</strong></p>
<address>
{if $a['company'] neq ''}
{$a['company']}
<br>
{$_L['ATTN']}: {$a['account']}
<br>
{else}
{$a['account']}
<br>
{/if}
{$account_address['address']} - {$account_address['number']} - {$account_address['complement']} <br>
{$account_address['neighborhood']} <br/>
{$account_address_state['uf_state']} - {$account_address_city['city_name']} <br>
{$account_address['zip']} <br>
{$a['country']}
<br>
<strong>{$_L['Phone']}:</strong> {$a['phone']}
<br>
<strong>{$_L['Email']}:</strong> {$a['email']}
</address>
</div>
</div>
<div class="col-md-6">
<div class="bill-data text-right">
<p class="mb-none">
<span class="text-dark">{$_L['Sales Data']}:</span>
<span class="value">{date( $_c['df'], strtotime($d['sales_date']))}</span>
</p>
{if $d['expected_date']}
<p class="mb-none">
<span class="text-dark">{$_L['Expected date']}:</span>
<span class="value">{date( $_c['df'], strtotime($d['expected_date']))}</span>
</p>
{/if}
<h2> {$_L['Invoice Total']}: <span class="amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['total']}</span> </h2>
<!-- {if ($d['credit']) neq '0.00'}
<h2> {$_L['Total Paid']}: <span class="amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['credit']}</span> </h2>
{*<h2> {$_L['Amount Due']}: {$_c['currency_code']} {number_format($i_due,2,$_c['dec_point'],$_c['thousands_sep'])} </h2>*}
<h2> {$_L['Amount Due']}: <span class="amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$i_due}</span> </h2>
{/if} -->
</div>
</div>
</div>
</div>
<div class="table-responsive">
<table class="table invoice-items">
<thead>
<tr class="h4 text-dark">
<!-- <th id="cell-id" class="text-semibold">#</th> -->
<th id="cell-item" class="text-semibold">{$_L['Item']}</th>
<th id="cell-price" class="text-center text-semibold">{$_L['Price']}</th>
<th id="cell-qty" class="text-center text-semibold">{$_L['Quantity']}</th>
<th id="cell-total" class="text-center text-semibold">{$_L['Discount']}</th>
<th id="cell-total" class="text-center text-semibold">{$_L['Total']}</th>
</tr>
</thead>
<tbody>
{foreach $items as $item}
<tr>
<!-- <td>{$item['itemcode']}</td>-->
<td class="text-semibold text-dark">{$item['description']}</td>
<td class="text-center amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$item['amount']}</td>
<td class="text-center">{$item['qty']}</td>
<td class="text-center amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$item['discount']}</td>
<td class="text-center amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$item['total']}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="invoice-summary">
<div class="row">
<div class="col-sm-8 ">
{if ($d['notes']) neq ''}
<div class="well m-t">
<b>{mb_strtoupper($_L['Details'])}:</b><br>
{$d['notes']}
</div>
{/if}
</div>
<div class="col-sm-4">
<table class="table h5 text-dark">
<tbody>
<tr class="b-top-none">
<td colspan="2">{$_L['Subtotal']}</td>
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['sub_total']}</td>
</tr>
{if ($d['discount']) neq '0.00'}
<tr>
<td colspan="2">{$_L['Discount']}</td>
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['discount']}</td>
</tr>
{/if}
<!-- <tr>
<td colspan="2">{$_L['TAX']}</td>
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['tax']}</td>
</tr> -->
<tr>
<td colspan="2">{$_L['Freight']}</td>
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['freight']}</td>
</tr>
<!-- {if ($d['credit']) neq '0.00'}
<tr>
<td colspan="2">{$_L['Total']}</td>
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['total']}</td>
</tr>
<tr>
<td colspan="2">{$_L['Total Paid']}</td>
<td class="text-left amount">{$d['credit']}</td>
</tr>
<tr class="h4">
<td colspan="2">{$_L['Amount Due']}</td>
{*<td class="text-left">{$_c['currency_code']} {number_format($i_due,2,$_c['dec_point'],$_c['thousands_sep'])}</td>*}
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$i_due}</td>
</tr>
{else}
<tr class="h4">
<td colspan="2">{$_L['Grand Total']}</td>
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['total']}</td>
</tr>
{/if}-->
<tr class="h4">
<td colspan="2">{$_L['Total']}</td>
<td class="text-left amount" data-a-sign="{if $d['currency_symbol'] eq ''} {$_c['currency_code']} {else} {$d['currency_symbol']}{/if} ">{$d['total']}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="table-responsive">
<h3>{$_L['Payment Condition Invoice']}: <b>{if $d['paymentcondition'] == 1}{$_L['Payment Condition Invoice0']}{else if $d['paymentcondition'] == 2}{$_L['Payment Condition Invoice1']}{else}{$_L['Payment Condition Invoice2']}{/if}</b></h3>
<table class="table invoice-items">
<thead>
<tr class="h4 text-dark">
<th id="cell-id" class="text-semibold">#</th>
<th id="cell-item" class="text-semibold">{$_L['Due Date']}</th>
<th id="cell-qty" class="text-semibold">{$_L['Value']}</th>
<th id="cell-qty" class="text-semibold">{$_L['Payment Method Invoice']}</th>
<th id="cell-qty" class="text-semibold">{$_L['Obs']}</th>
</tr>
</thead>
<tbody>
{$count = 1}
{foreach $sys_orders_installment as $item}
<tr>
<td>{$count++}</td>
<td class="text-semibold text-dark">{implode('/',array_reverse(explode('-',$item['due_date'])))}</td>
<td class="text-semibold text-dark">{$item['value']}</td>
<td class="text-semibold text-dark">{$item['p_methods_desc']}</td>
<td class="text-semibold text-dark">{$item['obs']}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" id="_lan_msg_confirm" value="{$_L['are_you_sure']}">
{include file="orders-fragment-modal-operation.tpl"}
{include file="sections/footer.tpl"}