✏️ 正在编辑: recebimento-comissao-empresa.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/financeiro/recebimento-comissao-empresa.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Recebimento Empresa</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <?php if( $this->contratos ): ?> <div id="view-content"> <form method="post" action="<?php echo $this->url(array( 'action' => 'baixa-recebimento-comissao-empresa' )); ?>" onsubmit="return validarChecks(this)"> <table class="tablesorter"> <thead> <tr class="top_list"> <th colspan="13"></th> <th colspan="7" style="text-align: center; border-left: 1px solid white; border-bottom: 1px solid white">Comissão</th> </tr> <tr class="top_list"> <th class="check_control"> <input type="checkbox" name="control" id="control" value="all" onclick="myOptions.check(this)" /> </th> <th>Banco</th> <th>Convênio</th> <th>Liberação</th> <th>Contrato</th> <th>Cliente</th> <th>CPF</th> <th>Corretor</th> <th>Status</th> <th>Tipo</th> <th>Prazo</th> <th style="min-width: 80px">Vl. Liq</th> <th style="min-width: 80px">Vl. Bruto</th> <th style="border-left: 1px solid white">Prevista (%)</th> <th style="min-width: 80px">Prevista (R$)</th> <th>Recebida (%)</th> <th>Base</th> <th>Data Saldo</th> <th>Tipo de Remuneração</th> <th>Natureza</th> </tr> </thead> <tbody> <?php $cont = 0; foreach ( $this->contratos as $key => $contrato ): $cont++; ?> <tr> <td align="center"><input type="checkbox" name="contratos[<?php echo $contrato['id_contrato'] ?>]" id="checks[]" value="<?php echo $contrato['id_contrato'] ?>" class="required_campos"/></td> <td><?php echo $this->limitSizeTextList($contrato['banco']) ?></td> <td><?php echo $this->limitSizeTextList($contrato['convenio']) ?></td> <td> <?php echo $this->dateFormat($contrato['data_liberacao']) ?></td> <td> <?php echo $contrato['numero_contrato'] ?> <?php echo isset($contrato['numero_ade']) && $contrato['numero_ade'] > 0 ? " <br /> " . $contrato['numero_ade'] : ""; ?></td> <td> <?php echo $contrato['cliente'] ?></td> <td><a href="javascript:void()" onclick="openWin('<?php echo $this->url(array( 'controller' => 'cliente', 'action' => 'save', 'id' => $contrato['cliente_id'] )) ?>', 1024, 600, 1)" ><?php echo String_Refatorar::resetCpf($contrato['cpf_cliente']); ?></a></td> <td> <?php echo $contrato['corretor'] ?></td> <td><?php echo $this->limitSizeTextList($contrato['status_proposta_nome'], 25); ?></td> <td title="<?php echo $contrato['tipo'] ?>"><?php echo $this->limitSizeTextList($contrato['tipo'], 8); ?></td> <td><?php echo $this->limitSizeTextList($contrato['prazo'], 2); ?></td> <td><span>R$ </span> <?php echo number_format($contrato['valor_liquido'], 2, ',', '.') ?></td> <td><span>R$ </span> <?php echo number_format($contrato['valor_bruto'], 2, ',', '.') ?></td> <td> <?php echo number_format($contrato['comissao_empresa'], 2, ',', '.') ?><span> (%)</span> </td> <td><span>R$ </span> <?php echo number_format($contrato['valor_fixo_empresa'] + $contrato['base_comissao_empresa_valor'] * $contrato['comissao_empresa'] / 100, 2, ',', '.') ?></td> <td align="center" > <?php $input = new Zend_Form_Element_Text('comissao_empresa'); $input->setBelongsTo("contratos[{$contrato['id_contrato']}]"); $input->removeDecorator("Label"); $input->setAttribs(array( "class" => "alter-recebimento-comissao", 'onkeypress' => 'mascara(this,mvalor)', 'size' => 15 )); echo $input; ?> </td> <td> <?php $select = new Zend_Form_Element_Select('base_comissao_empresa'); $select->addMultiOptions(array('VALOR_LIQUIDO' => 'Valor líquido', 'VALOR_BRUTO' => 'Valor bruto')); $select->setRegisterInArrayValidator(true); $select->removeDecorator("Label"); $select->setBelongsTo("contratos[{$contrato['id_contrato']}]"); $select->setAttrib('class', 'form-control'); $select->setAttrib('style', 'width: 100px'); echo $select; ?> </td> <td> <?php $dataInput = Form_DatePicker::getDatePicker("data_saldo", "Data saldo"); $dataInput->removeDecorator("Label"); $dataInput->setBelongsTo("contratos[{$contrato['id_contrato']}]"); $dataInput->setAttribs(array( "placeholder" => "dd/mm/aaaa", "onkeypress" => "mascara(this,data)", "class" => "hasDatepicker" )); echo $dataInput; ?> </td> <td><?php $select = new Zend_Form_Element_Select('tipo_remuneracao'); $select->addMultiOptions(array( '' => '' ) + Core_Combos::getTipoRemuneracaoEmpresaOptions()); $select->setRegisterInArrayValidator(true); $select->removeDecorator("Label"); $select->setBelongsTo("contratos[{$contrato['id_contrato']}]"); $select->setAttrib('class', 'form-control'); $select->setAttrib('style', 'width: 100px'); echo $select; ?> </td> <td> <?php $select = new Zend_Form_Element_Select('natureza'); $select->addMultiOptions(array( '' => '' ) + array_filter(Core_Combos::getNaturezasOptions())); $select->setRegisterInArrayValidator(true); $select->removeDecorator("Label"); $select->setBelongsTo("contratos[{$contrato['id_contrato']}]"); $select->setAttrib('class', 'form-control'); $select->setAttrib('style', 'width: 100px'); echo $select; ?> </td> </tr> <?php endforeach; ?> <tr> <td colspan="15">Total: <?php echo $cont; ?></td> <td colspan="5">Total recebido: <i id="totalizador_recebimento_empresa">0.00</i></td> </tr> </tbody> </table> <div class="content"> <br> <input type="submit" class="bt_apply" style="float: right;" value="Receber Comissão"/> </div> </form> </div> <?php endif; ?>
💾 保存文件
← 返回文件管理器