AnonSec Shell
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/public_html/lrsys_apps/imobles/ui/theme/lrsys/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/imobles/ui/theme/lrsys//edit-invoice.tpl
{include file="sections/header.tpl"}
<div class="row">
    <div class="col-lg-12">
        <div class="wrapper wrapper-content animated fadeInRight">
            <form id="invform" method="post">
                <div class="ibox-content p-xl" id="ibox_form">
                    <div class="row">
                        <div class="alert alert-danger" id="emsg">
                            <span id="emsgbody"></span>
                        </div>
                        <div class="col-md-6">
                            <div class="form-horizontal">
                                <div class="form-group">
                                    <label for="cid" class="col-sm-2 control-label">{$_L['Customer']}</label>

                                    <div class="col-sm-10">
                                        <select id="cid" name="cid" class="form-control">
                                            <option value="">{$_L['Select Contact']}...</option>
                                            {foreach $c as $cs}
                                                <option value="{$cs['id']}"
                                                        {if $i['account'] eq $cs['account']}selected="selected" {/if}>{$cs['account']}</option>
                                            {/foreach}

                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputPassword3" class="col-sm-2 control-label">{$_L['Address']}</label>

                                    <div class="col-sm-10">
                                        <textarea id="address" readonly class="form-control" rows="5"></textarea>
                                        <span id="spam-edit-client" class="hide help-block"><a href="#" id="contact_edit" data-id="">| {$_L['Client without address, click here to update the address']}</a> </span>
                
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="invoicenum"
                                           class="col-sm-2 control-label">{$_L['Invoice Prefix']}</label>

                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" id="invoicenum" name="invoicenum"
                                               value="{$i['invoicenum']}">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="cn"
                                           class="col-sm-2 control-label">{$_L['Invoice']} #</label>

                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="cn" name="cn" value="{$i['cn']}">
                                        <span class="help-block">{$_L['invoice_number_help']}</span>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <div class="col-md-6">
                            <div class="form-horizontal">
                                {if $i['r'] neq '0'}
                                    <div class="form-group">
                                        <label for="inputEmail3"
                                               class="col-sm-4 control-label">{$_L['Repeat Every']}</label>

                                        <div class="col-sm-8">
                                            <select class="form-control" name="repeat" id="repeat">
                                                <option value="week1" {if $i['r'] eq '+1 week'} selected{/if}>{$_L['Week']}</option>
                                                <option value="weeks2" {if $i['r'] eq '+2 weeks'} selected{/if}>{$_L['Weeks_2']}</option>
                                                <option value="month1" {if $i['r'] eq '+1 month'} selected{/if}>{$_L['Month']}</option>
                                                <option value="months2" {if $i['r'] eq '+2 months'} selected{/if}>{$_L['Months_2']}</option>
                                                <option value="months3" {if $i['r'] eq '+3 months'} selected{/if}>{$_L['Months_3']}</option>
                                                <option value="months6" {if $i['r'] eq '+6 months'} selected{/if}>{$_L['Months_6']}</option>
                                                <option value="year1" {if $i['r'] eq '+1 year'} selected{/if}>{$_L['Year']}</option>
                                                <option value="years2" {if $i['r'] eq '+2 years'} selected{/if}>{$_L['Years_2']}</option>
                                                <option value="years3" {if $i['r'] eq '+3 years'} selected{/if}>{$_L['Years_3']}</option>

                                            </select>
                                        </div>
                                    </div>
                                {else}
                                    <input type="hidden" name="repeat" id="repeat" value="0">
                                {/if}
                                <div class="form-group">
                                    <label for="inputEmail3"
                                           class="col-sm-4 control-label">{$_L['Invoice Date']}</label>
                                    <div class="col-sm-8">
                                        <input type="text" class="form-control" id="idate" name="idate" datepicker
                                               data-date-format="{$_c['formatDate']}" data-auto-close="true"
                                               value="{date( $_c['df'], strtotime($i['date']))}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputPassword3" class="col-sm-4 control-label">{$_L['Due Date']}</label>

                                    <div class="col-sm-8">
                                        <input type="text" class="form-control" id="ddate" name="ddate" datepicker
                                               data-date-format="{$_c['formatDate']}" data-auto-close="true"
                                              value="{date( $_c['df'], strtotime($i['duedate']))}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="tid" class="col-sm-4 control-label">{$_L['Sales TAX']}</label>

                                    <div class="col-sm-8">
                                        <select id="tid" name="tid" class="form-control">
                                            <option value="">None</option>
                                            {foreach $t as $ts}
                                                <option value="{$ts['id']}"
                                                        {if $ts['name'] eq $i['taxname']}selected="selected" {/if} >{$ts['name']}
                                                    ({{number_format($ts['rate'],2,$_c['dec_point'],$_c['thousands_sep'])}}
                                                    %)
                                                </option>
                                            {/foreach}
                                            {foreach $t as $ts}
                                                <input type="hidden" value="{$ts['rate']}" id="tx_{$ts['id']}">
                                            {/foreach}
                                        </select>
                                        <input type="hidden" id="stax" name="stax" value="{$i['taxrate']}">
                                        <input type="hidden" id="discount_amount" name="discount_amount"
                                               value="{$i['discount_value']}">
                                        <input type="hidden" id="discount_type" name="discount_type"
                                               value="{$i['discount_type']}">
                                    </div>
                                </div>

                                <!--lpillon - 22/01/2017 -->
                                <div class="form-group">
                                    <label for="mtdopgto" class="col-sm-4 control-label">{$_L['Payment Method Invoice']}</label>
                                    <div class="col-sm-8">
                                        <select id="mtdopgto" name="mtdopgto" class="form-control">
                                            <option value="0">{$_L['None']}</option>
                                            <option value="1" {if 1 eq $i['paymentmethod']}selected="selected" {/if}>{$_L['Payment Method Invoice0']}</option>
                                            <option value="2" {if 2 eq $i['paymentmethod']}selected="selected" {/if}>{$_L['Payment Method Invoice1']}</option>
                                            <option value="3" {if 3 eq $i['paymentmethod']}selected="selected" {/if}>{$_L['Payment Method Invoice2']}</option>
                                            <option value="4" {if 4 eq $i['paymentmethod']}selected="selected" {/if}>{$_L['Payment Method Invoice3']}</option>
                                            <option value="5" {if 5 eq $i['paymentmethod']}selected="selected" {/if}>{$_L['Payment Method Invoice4']}</option>
                                            <option value="6" {if 6 eq $i['paymentmethod']}selected="selected" {/if}>{$_L['Payment Method Invoice5']}</option>
                                            <option value="7" {if 7 eq $i['paymentmethod']}selected="selected" {/if}>{$_L['Payment Method Invoice6']}</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="cdtpgto" class="col-sm-4 control-label">{$_L['Payment Condition Invoice']}</label>
                                    <div class="col-sm-8">
                                        <select id="cdtpgto" name="cdtpgto" class="form-control">
                                            <option value="0">{$_L['None']}</option>
                                            <option value="1" {if 1 eq $i['paymentcondition']}selected="selected" {/if}>{$_L['Payment Condition Invoice0']}</option>
                                            <option value="2" {if 2 eq $i['paymentcondition']}selected="selected" {/if}>{$_L['Payment Condition Invoice1']}</option>
                                            <option value="3" {if 3 eq $i['paymentcondition']}selected="selected" {/if}>{$_L['Payment Condition Invoice2']}</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label >{$_L['Freight by account']}</label>
                                    <select id="freight_by" name="freight_by" class="form-control">
                                        <option value="Sender" {if $i['freight_by']=='Sender'}selected{/if}>{$_L['Sender']}</option>
                                        <option value="Addressee" {if $i['freight_by']=='Addressee'}selected{/if}>{$_L['Addressee']}</option>
                                        <option value="The 3rd" {if $i['freight_by']=='The 3rd'}selected{/if}>{$_L['The 3rd']}</option>
                                        <option value="Free shipping" {if $i['freight_by']=='Free shipping'}selected{/if}>{$_L['Free shipping']}</option> 
                                    </select>
                                </div>
                                <div class=" form-group">
                                    <label class="control-label">{$_L['Freight']}</label>                                   
                                    <input  type="text"  value='{{number_format($i['freight'],2,$_c['dec_point'],$_c['thousands_sep'])}}' id="freight" name="freight" class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2">
                                </div>
                                <div class="form-group">
                                    <label for="add_discount"
                                           class="col-sm-4 control-label">{$_L['Discount']}</label>

                                    <div class="col-sm-8">

                                        <a href="#" id="add_discount" class="btn btn-info btn-xs"
                                           style="margin-top: 5px;"><i
                                                    class="fa fa-minus-circle"></i> {$_L['Set Discount']}</a>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>


                    <div class="table-responsive m-t">
                        <table class="table invoice-table" id="invoice_items">
                            <thead>
                            <tr>
                                <th class='middle'  width="50px">{$_L['Item Code']}</th>
                                <th width="100px">{$_L['Image']}</th>
                                <th class='middle'  width="">{$_L['Item Name']}</th>
                                <th class='middle'  width="130px">{$_L['Qty']}</th>
                                <th class='middle'  width="120px">{$_L['Price']}</th>
                                <th class='middle'  width="160px">{$_L['Total']}</th>
                                {*<th width="10%">Tax</th>*}
                            </tr>
                            </thead>
                            <tbody>
                            {foreach $items as $item}
                                {$id = $item['sys_item_id']}
                                  {foreach $itensUnit as $itn}
                                    {if $itn['id'] == $id}
                                        {foreach $undades as $und}
                                            {if $und['id'] == $itn['unit_id']}
                                                {$unid = $und['initials']}
                                                {$valInt = $und['value_int']}
                                            {/if}
                                        {/foreach}
                                    {/if}
                                  {/foreach}
                                <tr class="itm_nm_ftura">
                                    <td><input type="hidden" name="item_id[]" value="{$id}" class="idItenBusc"><input type="hidden" value="{$unid}" id="unit_itm{$id}"><input type="hidden" value="{$valInt}" id="dec_itn{$id}">
                                    <input type="hidden" value="{$id}_{number_format($item['total'],2,$_c['dec_point'],$_c['thousands_sep'])}_{number_format($i['taxrate'],2,$_c['dec_point'],$_c['thousands_sep'])}_{number_format($item['qty'],3,$_c['dec_point'],$_c['thousands_sep'])}_{$unid}_{$valInt}" class="valrs_edit">{$item['sys_item_id']}
                                    </td> 
                                    <td><img width="100" style="max-height:100px" src="{$item['image']}"/></td>
                                    <td><input type="text" data-toggle="tooltip" data-placement="top" title="{$item['description']}" value="{$item['description']}" class="form-control itm_nm_ftura" id="i_{$id}" name="desc[]" readonly></td>
                                    <td><input type="text" class="form-control qtyl qtyVal{$id}" value="{$item['qty']}" name="qty[]" id="{$id}"><input type="hidden" value="{$item['qty']}" name="qtdBe[]" id="qtdBe{$id}"></td>
                                    <td><input type="text" class="form-control item_price{$id} am" name="amount[]" value="{{number_format($item['amount'],2,$_c['dec_point'],$_c['thousands_sep'])}}" readonly></td>
                                    <td class="ltotal"><input type="text" class="form-control lvtotal lvtotal{$id} am" readonly value="{{number_format($item['total'],2,$_c['dec_point'],$_c['thousands_sep'])}}"></td>
                                </tr>
                            {/foreach}

                            <!-- '<tr><td><input type="hidden" name="item_id[]" value="'+item_id+'" class="idItenBusc"><input type="hidden" value="'+item_sifr+'" id="unit_itm'+rowNum+'">' +  item_code + '</td> <td><input type="text" value="' + item_name + '" class="form-control itm_nm_ftura" id="i_' + rowNum + '" name="desc[]" readonly></td> <td><input type="text" class="form-control qtyl qtyVal'+rowNum+'" value="1'+ind_decimal+'00" name="qty[]" id="'+rowNum+'"></td> <td><input type="text" class="form-control item_price'+rowNum+' am" name="amount[]" value="' + item_price + '" data-a-sign=" CHF" readonly></td> <td class="ltotal"><input type="text" class="form-control lvtotal lvtotal'+rowNum+' am" readonly value="' + item_price + '"></td></tr>' -->

                            {*  ======   <td> <select class="form-control taxed" name="taxed[]"> <option value="Yes" {if $item['taxed'] eq '1'}selected{/if}>Yes</option> <option value="No" {if $item['taxed'] eq '0'}selected{/if}>No</option></select></td>*}
                            {*<tr>*}
                            {*<td>PS 1000</td>*}
                            {*<td><div><strong>Angular JS &amp; Node JS Application</strong></div></td>*}
                            {*<td>*}
                            {*<textarea class="form-control" rows="3"></textarea></td>*}
                            {*<td><input type="text" class="form-control" placeholder="Text input"></td>*}
                            {*<td><input type="text" class="form-control" placeholder="Text input"></td>*}
                            {*<td><input type="text" class="form-control" placeholder="Text input"></td>*}
                            {*<td>$1033.20</td>*}
                            {*<td>Yes</td>*}
                            {*</tr>*}

                            </tbody>
                        </table>

                    </div>
                    <!-- /table-responsive -->
                    <!-- <button type="button" class="btn btn-primary" id="blank-add"><i class="fa fa-plus"></i> {$_L['Add blank Line']}
                    </button> -->
                    <button type="button" class="btn btn-primary" id="item-add"><i class="fa fa-search"></i> {$_L['Add Product OR Service']}
                    </button>
                    <button type="button" class="btn btn-danger" id="item-remove"><i class="fa fa-minus-circle"></i>
                        {$_L['Delete']}
                    </button>
                    <table class="table invoice-total">
                        <tbody>
                        <tr>
                            <td><strong>{$_L['Sub Total']} :</strong></td>
                            <td class="amount">{$_c['currency_code']}&nbsp;<span id="sub_total">0,00</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{$_L['Discount']} <span id="is_pt"></span> :</strong></td>
                            <td class="amount"><span id="coin_desc">{$_c['currency_code']}</span>&nbsp;<span id="discount_amount_total">0.00</span>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{$_L['TAX']} :</strong></td>
                            <td id="taxtotal" class="amount"><span id="tax_amount">0.00</span>&nbsp;%
                            </td>
                        </tr>
                        <tr>
                            <td><strong>{$_L['TOTAL']} :</strong></td>
                            <td class="amount">{$_c['currency_code']}&nbsp;<span id="total">0.00</span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <textarea class="form-control" name="notes" id="notes" rows="3"
                              placeholder="{$_L['Invoice Terms']}...">{$i['notes']}</textarea>
                    <br>

                    <div class="text-right">
                        <input type="hidden" name="iid" id="iid" value="{$i['id']}">
                        <input type="hidden" id="_dec_point" name="_dec_point" value="{$_c['dec_point']}">
                        <input type="hidden" value="{$_c['thousands_sep']}" name="_mil_point" id="_mil_point">
                        <input type="hidden" value="{$_c['currency_code']}" name="_curr_code" id="_curr_code">
                    </div>

                </div>
            </form>
        </div>
    </div>
</div>

{* lan variables *}

<input type="hidden" id="_lan_set_discount" value="{$_L['Set Discount']}">
<input type="hidden" id="_lan_discount" value="{$_L['Discount']}">
<input type="hidden" id="_lan_discount_type" value="{$_L['Discount Type']}">
<input type="hidden" id="_lan_percentage" value="{$_L['Percentage']}">
<input type="hidden" id="_lan_fixed_amount" value="{$_L['Fixed Amount']}">
<input type="hidden" id="_lan_btn_save" value="{$_L['Save']}">
<input type="hidden" id="_lan_select_contact" value="{$_L['Select Contact']}";
<input type="hidden" id="_lan_no_results_found" value="{$_L['No results found']}">
<input type="hidden" id="select_state" value="{$_L['Select State']}">
<input type="hidden" id="select_city" value="{$_L['Select City']}">

{include file="sections/footer.tpl"}

Anon7 - 2022
AnonSec Team