<div class="block">
<div class="content controls">

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

  <div class="form-row">
    <div class="col-md-2">
      <label>Calcula ICMS</label>
      <select name="fl_calcula_icms" id="fl_calcula_icms" required>
        <option value="1" <?if(isset($fl_calcula_icms) && $fl_calcula_icms=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_calcula_icms) && $fl_calcula_icms=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>

    <div class="col-md-2">
      <label>Calcula IPI</label>
      <select name="fl_calcula_ipi" id="fl_calcula_ipi" required>
        <option value="1" <?if(isset($fl_calcula_ipi) && $fl_calcula_ipi=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_calcula_ipi) && $fl_calcula_ipi=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>

    <div class="col-md-2">
      <label>Calcula ISS</label>
      <select name="fl_calcula_iss" id="fl_calcula_iss" required>
        <option value="1" <?if(isset($fl_calcula_iss) && $fl_calcula_iss=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_calcula_iss) && $fl_calcula_iss=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>
  </div>

  <div class="form-row">
    <div class="col-md-2">
      <label>Agrega Solidário</label>
      <select name="id_agrega_solidario" id="id_agrega_solidario" required>
        <option value="1" <?if(isset($id_agrega_solidario) && $id_agrega_solidario=="1"){echo "selected";}?>>Sim</option>
        <option value="2" <?if(isset($id_agrega_solidario) && $id_agrega_solidario=="2"){echo "selected";}?>>Não</option>
        <option value="3" <?if(isset($id_agrega_solidario) && $id_agrega_solidario=="3"){echo "selected";}?>>Mercadoria</option>
        <option value="4" <?if(isset($id_agrega_solidario) && $id_agrega_solidario=="4"){echo "selected";}?>>Deduz Retido</option>
      </select>
    </div>
  </div>

  <div class="form-row">
    <div class="col-md-2">
      <label>Desconto AC IPI</label>
      <select name="fl_desp_ipi" id="fl_desp_ipi" required>
        <option value="1" <?if(isset($fl_desp_ipi) && $fl_desp_ipi=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_desp_ipi) && $fl_desp_ipi=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>

    <div class="col-md-2">
      <label>Desp. AC IPI</label>
      <select name="fl_desp_ac_ipi" id="fl_desp_ac_ipi" required>
        <option value="1" <?if(isset($fl_desp_ac_ipi) && $fl_desp_ac_ipi=="1"){echo "selected";}?>>Sim</option>
        <option value="2" <?if(isset($fl_desp_ac_ipi) && $fl_desp_ac_ipi=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>
  </div>

  <div class="form-row">
    <div class="col-md-2">
      <label>Credita ICMS</label>
      <select name="fl_credita_icms" id="fl_credita_icms" required>
        <option value="1" <?if(isset($fl_credita_icms) && $fl_credita_icms=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_credita_icms) && $fl_credita_icms=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>

    <div class="col-md-2">
      <label>Credita IPI</label>
      <select name="fl_credita_ipi" id="fl_credita_ipi" required>
        <option value="1" <?if(isset($fl_credita_ipi) && $fl_credita_ipi=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_credita_ipi) && $fl_credita_ipi=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>
  </div>

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

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

  <div class="form-row">
    <div class="col-md-2"><label>Situação Tributária ICMS</label></div>
    <div class="col-md-2">
      <div class="input-group">
        <input value="<?if(isset($id_situacao_tributaria)){echo $id_situacao_tributaria;}?>" type=number name="id_situacao_tributaria" id="id_situacao_tributaria" maxlenght="10" size="4">
          <div class="input-group-addon">
          <a href="erpc_dom_sit_trib_icms_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-parameter="" data-value="#id_situacao_tributaria" data-description="#ds_situacao_tributaria" data-title="Selecione:">
          <span class="fa fa-search"></span></a>
          </div>
       </div>
    </div>
    <div class="col-md-2"><input name="ds_situacao_tributaria" id="ds_situacao_tributaria" readonly></div>
  </div>

    <!--
    <div class="form-row">
      <div class="col-md-2">
        <label>Agrega Valor</label>
        <select name="id_agrega_valor" id="id_agrega_valor" required>
          <option value="I" <?if(isset($id_agrega_valor) && $id_agrega_valor=="I"){echo "selected";}?>>ICMS e Mercadoria</option>
          <option value="A" <?if(isset($id_agrega_valor) && $id_agrega_valor=="A"){echo "selected";}?>>ICMS</option>
          <option value="S" <?if(isset($id_agrega_valor) && $id_agrega_valor=="S"){echo "selected";}?>>Sim</option>
          <option value="N" <?if(isset($id_agrega_valor) && $id_agrega_valor=="N"){echo "selected";}?>>Não</option>
        </select>
      </div>
     </div>
   -->
   <div class="form-row">
     <div class="col-md-2"><label>Agrega Valor</label></div>
     <div class="col-md-2">
       <div class="input-group">
         <input value="<?if(isset($id_agrega_valor)){echo $id_agrega_valor;}?>" type=number name="id_agrega_valor" id="id_agrega_valor" maxlenght="10" size="4">
           <div class="input-group-addon">
           <a href="erpc_dom_agrega_valor_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-parameter="" data-value="#id_agrega_valor" data-description="#ds_agrega_valor" data-title="Selecione:">
           <span class="fa fa-search"></span></a>
           </div>
        </div>
     </div>
     <div class="col-md-4"><input name="ds_agrega_valor" id="ds_agrega_valor" readonly></div>
   </div>


   <div class="row-clear">&nbsp;</div>
   <div class="form-row">
     <div class="col-md-2">
       <label>Gera PIS / Cofins</label>
       <select name="id_pis_cofins" id="id_pis_cofins" required>
         <option value="1" <?if(isset($id_pis_cofins) && $id_pis_cofins=="1"){echo "selected";}?>>PIS</option>
         <option value="2" <?if(isset($id_pis_cofins) && $id_pis_cofins=="2"){echo "selected";}?>>Cofins</option>
         <option value="3" <?if(isset($id_pis_cofins) && $id_pis_cofins=="3"){echo "selected";}?>>Ambos</option>
         <option value="4" <?if(isset($id_pis_cofins) && $id_pis_cofins=="4"){echo "selected";}?>>Não Calcula</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Gera Créd. PIS / Cofins</label>
       <select name="fl_credita_pis_cofins" id="fl_credita_pis_cofins" required>
         <option value="1" <?if(isset($fl_credita_pis_cofins) && $fl_credita_pis_cofins=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_credita_pis_cofins) && $fl_credita_pis_cofins=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>
  </div>

  <!--
  <div class="form-row">
     <div class="col-md-2">
       <label>% Red PIS</label>
       <input type=number name="nr_perc_red_pis" id="nr_perc_red_pis" min="0" max="99.99" step="0.01"/>
     </div>

     <div class="col-md-2">
     <label>% Red Cofins</label>
       <input type=number name="nr_perc_red_cof" id="nr_perc_red_cof" min="0" max="99.99" step="0.01"/>
     </div>
   </div>
 -->

  <div class="form-row">
    <div class="col-md-2">
      <label>Livro Fiscais ICMS</label>
      <select name="id_livros_fiscais_icms" id="id_livros_fiscais_icms" required>
        <option value="1" <?if(isset($id_livros_fiscais_icms) && $id_livros_fiscais_icms=="1"){echo "selected";}?>>Tributado</option>
        <option value="2" <?if(isset($id_livros_fiscais_icms) && $id_livros_fiscais_icms=="2"){echo "selected";}?>>Isento</option>
        <option value="3" <?if(isset($id_livros_fiscais_icms) && $id_livros_fiscais_icms=="3"){echo "selected";}?>>Outros</option>
        <option value="4" <?if(isset($id_livros_fiscais_icms) && $id_livros_fiscais_icms=="4"){echo "selected";}?>>Não Calcula</option>
      </select>
    </div>

    <div class="col-md-2">
      <label>Livro Fiscais IPI</label>
      <select name="id_livros_fiscais_ipi" id="id_livros_fiscais_ipi" required>
        <option value="1" <?if(isset($id_livros_fiscais_ipi) && $id_livros_fiscais_ipi=="1"){echo "selected";}?>>Tributado</option>
        <option value="2" <?if(isset($id_livros_fiscais_ipi) && $id_livros_fiscais_ipi=="2"){echo "selected";}?>>Isento</option>
        <option value="3" <?if(isset($id_livros_fiscais_ipi) && $id_livros_fiscais_ipi=="3"){echo "selected";}?>>Outros</option>
        <option value="4" <?if(isset($id_livros_fiscais_ipi) && $id_livros_fiscais_ipi=="4"){echo "selected";}?>>Não Calcula</option>
      </select>
    </div>

    <!--
    <div class="col-md-2">
      <label>Livro Fiscais ISS</label>
      <select name="st_livro_iss" id="st_livro_iss" required>
        <option value="1">Tributado</option>
        <option value="2">Isento</option>
        <option value="3">Outros</option>
        <option value="4">Não Calcula</option>
      </select>
    </div>
    -->
  </div>

   <div class="form-row">
     <div class="col-md-2">
       <label>PIS/Cofins Total</label>
       <select name="fl_pis_cofins_total" id="fl_pis_cofins_total" required>
         <option value="1" <?if(isset($fl_pis_cofins_total) && $fl_pis_cofins_total=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_pis_cofins_total) && $fl_pis_cofins_total=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Retem ISS</label>
       <select name="fl_retem_iss" id="fl_retem_iss" required>
         <option value="1" <?if(isset($fl_retem_iss) && $fl_retem_iss=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_iss) && $fl_retem_iss=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Retem PIS</label>
       <select name="fl_retem_pis" id="fl_retem_pis" required>
         <option value="1" <?if(isset($fl_retem_pis) && $fl_retem_pis=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_pis) && $fl_retem_pis=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Retem Cofins</label>
       <select name="fl_retem_cof" id="fl_retem_cof" required>
         <option value="1" <?if(isset($fl_retem_cof) && $fl_retem_cof=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_cof) && $fl_retem_cof=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>
   </div>



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

   <div class="form-row">
     <div class="col-md-2">
       <label>Retem IRRF</label>
       <select name="fl_retem_irrf" id="fl_retem_irrf" required>
         <option value="1" <?if(isset($fl_retem_irrf) && $fl_retem_irrf=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_irrf) && $fl_retem_irrf=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Retem INSS</label>
       <select name="fl_retem_inss" id="fl_retem_inss" required>
         <option value="1" <?if(isset($fl_retem_inss) && $fl_retem_inss=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_inss) && $fl_retem_inss=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Retem CSLL</label>
       <select name="fl_retem_csll" id="fl_retem_csll" required>
         <option value="1" <?if(isset($fl_retem_csll) && $fl_retem_csll=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_csll) && $fl_retem_csll=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>
   </div>


   <div class="form-row">
     <div class="col-md-2">
       <label>Cálcula Frete</label>
       <select name="fl_calcula_icm_frete" id="fl_calcula_icm_frete" required>
         <option value="1" <?if(isset($fl_retem_icm_frete) && $fl_retem_icm_frete=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_icm_frete) && $fl_retem_icm_frete=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Cálcula IRRF</label>
       <select name="fl_calcula_irrf" id="fl_calcula_irrf" required>
         <option value="1" <?if(isset($fl_calcula_irrf) && $fl_calcula_irrf=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_calcula_irrf) && $fl_calcula_irrf=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Cálcula INSS</label>
       <select name="fl_calcula_inss" id="fl_calcula_inss" required>
         <option value="1" <?if(isset($fl_calcula_inss) && $fl_calcula_inss=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_calcula_inss) && $fl_calcula_inss=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Cálcula CSLL</label>
       <select name="fl_calcula_csll" id="fl_calcula_csll" required>
         <option value="1" <?if(isset($fl_calcula_csll) && $fl_calcula_csll=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_calcula_csll) && $fl_calcula_csll=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>
   </div>

   <div class="form-row">
     <div class="col-md-4">
       <label>Natureza Op.Nfs-e</label>
       <select name="id_natureza_nfse" id="id_natureza_nfse" required>
         <option value="1" <?if(isset($id_natureza_nfse) && $id_natureza_nfse=="1"){echo "selected";}?>>Tributação no Município</option>
         <option value="2" <?if(isset($id_natureza_nfse) && $id_natureza_nfse=="2"){echo "selected";}?>>Tributação fora do Município</option>
         <option value="3" <?if(isset($id_natureza_nfse) && $id_natureza_nfse=="3"){echo "selected";}?>>Isenção</option>
         <option value="4" <?if(isset($id_natureza_nfse) && $id_natureza_nfse=="4"){echo "selected";}?>>Imune</option>
         <option value="5" <?if(isset($id_natureza_nfse) && $id_natureza_nfse=="5"){echo "selected";}?>>Exigibilidade suspensa por decisão judicial</option>
         <option value="6" <?if(isset($id_natureza_nfse) && $id_natureza_nfse=="6"){echo "selected";}?>>Exigibilidade suspensa por procedimento administrativo</option>
       </select>
     </div>
   </div>


   <div class="form-row">
     <div class="col-md-2">
       <label>Calc. FunR</label>
       <select name="fl_calcula_funr" id="fl_calcula_funr" required>
         <option value="1" <?if(isset($fl_calcula_funr) && $fl_calcula_funr=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_calcula_funr) && $fl_calcula_funr=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

     <div class="col-md-2">
       <label>Retem FunR</label>
       <select name="fl_retem_funr" id="fl_retem_funr" required>
         <option value="1" <?if(isset($fl_retem_funr) && $fl_retem_funr=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_retem_funr) && $fl_retem_funr=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>
   </div>

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

   <div class="form-row">
     <div class="col-md-2">
      <label>Despesa Ac Icms</label>
      <select name="fl_desp_ac_icms" id="fl_desp_ac_icms" required>
        <option value="1" <?if(isset($fl_desp_ac_icms) && $fl_desp_ac_icms=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_desp_ac_icms) && $fl_desp_ac_icms=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>

     <div class="col-md-2">
       <label>Desconto Condicional</label>
       <select name="fl_desconto_condicional" id="fl_desconto_condicional" required>
         <option value="1" <?if(isset($fl_desconto_condicional) && $fl_desconto_condicional=="1"){echo "selected";}?>>Sim</option>
         <option value="0" <?if(isset($fl_desconto_condicional) && $fl_desconto_condicional=="0"){echo "selected";}?>>Não</option>
       </select>
     </div>

   </div>

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



  <div class="row-clear">&nbsp;</div>
  <div class="form-row">
   <div class="col-md-2"><label>CSOSN</label></div>
   <div class="col-md-2">
     <div class="input-group">
      <input value="<?if(isset($id_dom_csosn)){echo $id_dom_csosn;}?>" type=number name="id_dom_csosn" id="id_dom_csosn" min="0" step="1" size="4">
         <div class="input-group-addon">
        <a href="erpc_dom_csosn_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#id_dom_csosn" data-description="#ds_csosn" data-title="Selecione:">
           <span class="fa fa-search"></span></a>
         </div></div>
    </div>
    <div class="col-md-4"><input id="ds_csosn" readonly></div>
  </div>

  <div class="form-row">
    <div class="col-md-2"><label>ICMS ST MT</label></div>
    <div class="col-md-4"><input value="<?if(isset($ds_icms_st_mt)){echo $ds_icms_st_mt;}?>" name="ds_icms_st_mt" id="ds_icms_st_mt" required></div>
  </div>

  <div class="form-row">
    <div class="col-md-2"><label>IPI BC</label></div>
    <div class="col-md-4"><input value="<?if(isset($ds_ipi_bc)){echo $ds_ipi_bc;}?>" name="ds_ipi_bc" id="ds_ipi_bc" required></div>
  </div>

  <div class="form-row">
    <div class="col-md-2">
      <label>ICMS Diferido</label>
      <select name="fl_icms_diferido" id="fl_icms_diferido" required>
        <option value="1" <?if(isset($fl_icms_diferido) && $fl_icms_diferido=="1"){echo "selected";}?>>Sim</option>
        <option value="0" <?if(isset($fl_icms_diferido) && $fl_icms_diferido=="0"){echo "selected";}?>>Não</option>
      </select>
    </div>

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

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

    <div class="form-row">
      <div class="col-md-2"><label>Ajuste CIAP</label></div>
      <div class="col-md-4"><input value="<?if(isset($ds_ajuste_ciap)){echo $ds_ajuste_ciap;}?>" name="ds_ajuste_ciap" id="ds_ajuste_ciap"></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Informação St. Anterior</label></div>
      <div class="col-md-4"><input value="<?if(isset($ds_info_st_anterior)){echo $ds_info_st_anterior;}?>" name="ds_info_st_anterior" id="ds_info_st_anterior"></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Material de Consumo</label></div>
      <div class="col-md-4"><input value="<?if(isset($ds_mat_consumo)){echo $ds_mat_consumo;}?>" name="ds_mat_consumo" id="ds_mat_consumo"></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>Cofins Zona Franca</label></div>
      <div class="col-md-4"><input value="<?if(isset($ds_cofins_zfranca)){echo $ds_cofins_zfranca;}?>" name="ds_cofins_zfranca" id="ds_cofins_zfranca" /></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>PIS Zona Franca</label></div>
      <div class="col-md-4"><input value="<?if(isset($ds_pis_zfranca)){echo $ds_pis_zfranca;}?>" name="ds_pis_zfranca" id="ds_pis_zfranca"/></div>
    </div>

    <div class="form-row">
      <div class="col-md-2"><label>IPI Bruto</label></div>
      <div class="col-md-4"><input value="<?if(isset($ds_ipi_bruto)){echo $ds_ipi_bruto;}?>" name="ds_ipi_bruto" id="ds_ipi_bruto"></div>
    </div>


    <div class="form-row">
      <div class="col-md-3"><label>Descrição da Natureza da Operação</label></div>
      <div class="col-md-5"><input value="<?if(isset($ds_natureza_operacao)){echo $ds_natureza_operacao;}?>" name="ds_natureza_operacao" id="ds_natureza_operacao"/></div>
    </div>

    <div class="form-row">
      <div class="col-md-3"><label>Motivo da desoneração do ICMS</label></div>
      <div class="col-md-2">
        <div class="input-group">
         <input value="<?if(isset($id_motivo_desoneracao)){echo $id_motivo_desoneracao;}?>" type=number name="id_motivo_desoneracao" id="id_motivo_desoneracao" min="0" step="1" size="4">
            <div class="input-group-addon">
            <a href="erpc_dom_motivo_desoneracao_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#id_motivo_desoneracao" data-description="#ds_motivo_desoneracao" data-title="Selecione:">
              <span class="fa fa-search"></span></a>
            </div></div>
       </div>
       <div class="col-md-3"><input id="ds_motivo_desoneracao" readonly></div>
    </div>

</div>
</div>



<!-- modal do helper -->
<div class="row-clear">&nbsp;</div>
<div class="modal modal-white modal-draggable fade" id="helper-modal-div" tabindex="-1" role="dialog" aria-labelledby="helper-modal-label" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="helper-modal-label">Helper</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" id="modalCancel">Cancelar</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" id="modalOk" disabled="disabled">Selecionar</button>
      </div>
    </div>
  </div>
</div>
