<div class="block">
    <div class="content controls">
      <div class="form-row">
        <div class="col-md-2"><label>Grupo Tributário</label></div>
        <div class="col-md-2">
          <div class="input-group">
          <input type=text required name="id_grupo_tributacao" id="id_grupo_tributacao" value="<?if(isset($id_grupo_tributacao)){echo $id_grupo_tributacao;}?>"/>
          <div class="input-group-addon">
            <a href="erpc_grupo_tributacao_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#id_grupo_tributacao" data-description="#ds_grupo_tributacao" data-title="Selecione:">
            <span class="fa fa-search"></span></a>
          </div>
          </div>
        </div>
        <div class="col-md-4"><input id="ds_grupo_tributacao" readonly/></div>
      </div>

      <div class="form-row">
        <div class="col-md-2"><label>Origem</label></div>
        <div class="col-md-2">
          <div class="input-group">
            <input type=number required name="id_origem_produto" id="id_origem_produto" maxlenght="03" size="3" value="<?if(isset($id_origem_produto)){echo $id_origem_produto;}?>">
            <div class="input-group-addon">
            <a href="erpc_origem_produto_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#id_origem_produto" data-description="#ds_origem" data-title="Selecione:">
            <span class="fa fa-search"></span></a>
            </div>
          </div>
        </div>
        <div class="col-md-4"><input id="ds_origem" readonly/></div>
       </div>

    <div class="form-row">
        <div class="col-md-3">
          <label>Aliq ICMS</label>
          <input value="<?if(isset($nr_perc_aliq_icms)){echo $nr_perc_aliq_icms;}?>" required name="nr_perc_aliq_icms" id="nr_perc_aliq_icms" type="number" min="0" step="0.01" max="99.99"/></div>

        <div class="col-md-3">
          <label>Aliq IPI</label>
          <input value="<?if(isset($nr_perc_aliq_ipi)){echo $nr_perc_aliq_ipi;}?>" required name="nr_perc_aliq_ipi" id="nr_perc_aliq_ipi" type="number" min="0" step="0.01" max="99.99"/></div>

      <div class="col-md-3">
          <label>% FCP </label>
          <input type="number" value="<?if(isset($nr_perc_fcp)){echo $nr_perc_fcp;}?>" required name="nr_perc_fcp" id="nr_perc_fcp" type="number" min="0" step="0.01" max="99.99"/></div>

    </div>


  <div class="form-row">

    <div class="col-md-3"><label>Pos.IPI/NCM </label><input value="<?if(isset($ds_pos_ipi_ncm) ){echo $ds_pos_ipi_ncm;}?>"  name="ds_pos_ipi_ncm"  id="ds_pos_ipi_ncm"/></div>
    <div class="col-md-3"><label>Especie TIPI</label><input value="<?if(isset($ds_especie_tipi)){echo $ds_especie_tipi;}?>" name="ds_especie_tipi" id="ds_especie_tipi"/></div>

  </div>

<div class="form-row">
    <div class="col-md-3"><label>EX do NCM</label><input value="<?if(isset($ds_ex_ncm)){echo $ds_ex_ncm;}?>" name="ds_ex_ncm" id="ds_ex_ncm"/></div>
    <div class="col-md-3"><label>EX do NBM</label><input value="<?if(isset($ds_ex_nbm)){echo $ds_ex_nbm;}?>" name="ds_ex_nbm" id="ds_ex_nbm"/></div>


    <div class="col-md-3"><label>Aliq. ISS</label>   <input value="<?if(isset($nr_perc_iss)){echo $nr_perc_iss;}?>"               name="nr_perc_iss" id="nr_perc_iss" type="number" min="0" step="0.01" max="99.99"/></div>
</div>

<div class="form-row">
  <div class="col-md-3"><label>Solid.Entrada</label><input value="<?if(isset($ds_solidario_entrada)){echo $ds_solidario_entrada;}?>" name="ds_solidario_entrada" id="ds_solidario_entrada" type="number"/></div>
  <div class="col-md-3"><label>Solid.Saida</label  ><input value="<?if(isset($ds_solidario_saida)  ){echo $ds_solidario_saida  ;}?>" name="ds_solidario_saida" id="ds_solidario_saida" type="number"/></div>

  <div class="col-md-3"><label>Imp. Z. Franca</label><input value="<?if(isset($nr_imposto_zfranca)){echo $nr_imposto_zfranca;}?>" name="nr_imposto_zfranca" id="nr_imposto_zfranca" type="number"/></div>
</div>

<div class="form-row">
<div class="col-md-3"><label>Origem</label>      <input value="<?if(isset($ds_origem)){echo $ds_origem;}?>" name="ds_origem" id="ds_origem" type="number"/></div>
<div class="col-md-3"><label>Class.Fiscal</label><input value="<?if(isset($ds_classificacao_fiscal)){echo $ds_classificacao_fiscal;}?>" name="ds_classificacao_fiscal" id="ds_classificacao_fiscal"/></div>
<div class="col-md-3"><label>Impos.Renda</label> <input value="<?if(isset($ds_imposto_renda)){echo $ds_imposto_renda;}?>" name="ds_imposto_renda" id="ds_imposto_renda"/></div>
</div>

<div class="form-row">
<div class="col-md-2"><label>Calcula INSS</label></div>
<div class="col-md-5">
  <div class="checked inline"><label> <input <?if(isset($fl_calcula_inss) && $fl_calcula_inss==1){echo "checked";}?> type=radio required name=fl_calcula_inss value="1"/> Sim </label></div>
  <div class="checked inline"><label> <input <?if(isset($fl_calcula_inss) && $fl_calcula_inss==0){echo "checked";}?> type=radio required name=fl_calcula_inss value="0"/> Não </label></div>
</div>
</div>

<div class="form-row">
  <div class="col-md-3"><label>% Red. INSS</label>
    <input value="<?if(isset($nr_perc_red_inss)){echo $nr_perc_red_inss;}?>" name="nr_perc_red_inss" id="nr_perc_red_inss" type="number" min="0" step="0.01" max="99.99"/></div>
</div>

<div class="form-row">
  <div class="col-md-3"><label>IPI  de Pauta </label>
    <input value="<?if(isset($vl_ipi_pauta)){echo $vl_ipi_pauta;}?>"       name="vl_ipi_pauta"    id="vl_ipi_pauta" type="number" min="0" step="0.01"/></div>

  <div class="col-md-3"><label>% Red. PIS   </label>
    <input value="<?if(isset($nr_perc_red_pis)){echo $nr_perc_red_pis;}?>" name="nr_perc_red_pis" id="nr_perc_red_pis" type="number" min="0" step="0.01" max="99.99"/></div>

  <div class="col-md-3"><label>% Red. COFINS</label>
    <input value="<?if(isset($nr_perc_red_cofins)){echo $nr_perc_red_cofins;}?>" name="nr_perc_red_cofins" id="nr_perc_red_cofins" type="number" min="0" step="0.01" max="99.99"/></div>
</div>

<div class="form-row">
  <div class="col-md-3"><label>% CSLL   </label><input value="<?if(isset($nr_perc_csll)  ){echo $nr_perc_csll;}?>"   name="nr_perc_csll"   id="nr_perc_csll"   type="number" min="0" step="0.01" max="99.99"/></div>
  <div class="col-md-3"><label>% COFINS </label><input value="<?if(isset($nr_perc_cofins)){echo $nr_perc_cofins;}?>" name="nr_perc_cofins" id="nr_perc_cofins" type="number" min="0" step="0.01" max="99.99"/></div>
  <div class="col-md-3"><label>% PIS    </label><input value="<?if(isset($nr_perc_pis)   ){echo $nr_perc_pis;}?>"    name="nr_perc_pis"    id="nr_perc_pis"    type="number" min="0" step="0.01" max="99.99"/></div>
</div>

<div class="form-row">
  <div class="col-md-3"><label>% ICMS Próp. </label><input value="<?if(isset($nr_perc_icms_prop)){echo $nr_perc_icms_prop;}?>" name="nr_perc_icms_prop"    id="nr_perc_icms_prop"    type="number" min="0" step="0.01" max="99.99"/></div>
  </div>

<div class="form-row">
<div class="col-md-3"><label>ICMS Pauta </label><input value="<?if(isset($vl_icms_pauta) ){echo $vl_icms_pauta;}?>" name="vl_icms_pauta" id="vl_icms_pauta"/></div>
<div class="col-md-3"><label>Classe Selo</label><input value="<?if(isset($ds_classe_selo)){echo $ds_classe_selo;}?>" name="ds_classe_selo" id="ds_classe_selo"/></div>
</div>

<div class="form-row">
  <div class="col-md-3"><label>PIS Pauta </label><input value="<?if(isset($vl_pis_pauta)){echo $vl_pis_pauta;}?>" name="vl_pis_pauta" id="vl_pis_pauta"/></div>
  </div>

<div class="form-row">
  <div class="col-md-3"><label>Regra ISS pg </label><input value="<?if(isset($ds_regra_iss_pg)){echo $ds_regra_iss_pg;}?>" name="ds_regra_iss_pg" id="ds_regra_iss_pg"/></div>
  </div>

<div class="form-row">
<div class="col-md-2"><label>Retem CSLL</label></div>
<div class="col-md-5">
  <div class="checked inline"><label> <input <?if(isset($fl_retem_csll) && $fl_retem_csll==1){echo "checked";}?> type=radio name=fl_retem_csll required value="1"/> Sim </label></div>
  <div class="checked inline"><label> <input <?if(isset($fl_retem_csll) && $fl_retem_csll==0){echo "checked";}?> type=radio name=fl_retem_csll required value="0"/> Não </label></div>
</div>
</div>

<div class="form-row">
<div class="col-md-2"><label>Retem PIS</label></div>
<div class="col-md-5">
  <div class="checked inline"><label> <input <?if(isset($fl_retem_pis) && $fl_retem_pis==1){echo "checked";}?> type=radio name=fl_retem_pis required value="1"/> Sim </label></div>
  <div class="checked inline"><label> <input <?if(isset($fl_retem_pis) && $fl_retem_pis==0){echo "checked";}?> type=radio name=fl_retem_pis required value="0"/> Não </label></div>
</div>
</div>

<div class="form-row">
<div class="col-md-2"><label>Retem Cofins</label></div>
<div class="col-md-5">
  <div class="checked inline"><label> <input <?if(isset($fl_retem_cof) && $fl_retem_cof==1){echo "checked";}?> type=radio name=fl_retem_cof required value="1"/> Sim </label></div>
  <div class="checked inline"><label> <input <?if(isset($fl_retem_cof) && $fl_retem_cof==0){echo "checked";}?> type=radio name=fl_retem_cof required value="0"/> Não </label></div>
</div>
</div>

<div class="form-row">
  <div class="col-md-3"><label>CNAE </label><input value="<?if(isset($ds_cnae)){echo $ds_cnae;}?>" name="ds_cnae" id="ds_cnae"/></div>
  </div>

<div class="form-row">
  <div class="col-md-3"><label>C.Trib.Municipal</label><input value="<?if(isset($ds_cod_tributacao_municipal)){echo $ds_cod_tributacao_municipal;}?>" name="ds_cod_tributacao_municipal" id="ds_cod_tributacao_municipal"/></div>
  </div>

</div>
</div>
