✏️ 正在编辑: protocolos-liberar.phtml
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/scripts/contrato/protocolos-liberar.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Protocolos para Liberar - Corretor</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <div id="view-content"> <form id="liberar_protocolos_pagamento" action="<?php echo $this->url(array('action' => 'liberar-protocolo-pagamentos')); ?>" method="post" onsubmit="validarChecks(this)"> <table summary="Contratos" class="selecionar font-big"> <?php if( count($this->protocolos) > 0 ): ?> <thead> <tr> <th colspan="18"> <input style="display: block;float:left;margin: 0 2px;" type="checkbox" name="control" id="selecionar_protocolos"/> <label for="control">Selecionar Todos</label> </th> </tr> </thead> <tbody> <?php $corretor = null; $valorTransf = $valorDescontos = $valorAcrecimos = $valorRecuperados = $valorEstornado = $valorTotal = $totalGeral = 0; foreach ( $this->protocolos as $key => $protocolo ): $saldoCorretor = number_format(($protocolo['valor_saldo_corretor'] * -1), 2, ',', '.'); $valorComissao = $protocolo['total_comissao']; $taxaTransf = $valorEstorno = 0; if( isset($protocolo['taxa_transferencia_banco']) && $protocolo['descontar_taxa_transf'] == 1){ $taxaTransf = $protocolo['taxa_transferencia_banco']; } if( isset($protocolo['forma_pagamento_id']) && ($protocolo['forma_pagamento_id'] != 7) || $valorComissao == 0 ){ $taxaTransf = 0; } $valorDesconto = $protocolo['desconto']; $valorAcrecimo = $protocolo['acrescimo']; $valorRecuperado = $protocolo['recuperado']; $valorEstorno = $protocolo['total_estornado']; $valorPagto = $valorComissao + $protocolo['acrescimo'] - $protocolo['desconto'] - $taxaTransf - $protocolo['recuperado']; $valorTransf += $taxaTransf; $valorDescontos += $valorDesconto; $valorAcrecimos += $valorAcrecimo; $valorRecuperados+= $valorRecuperado; $valorEstornado += $valorEstorno; $valorTotal += $valorComissao; $totalGeral += $valorPagto; if( $protocolo['corretor_id'] != $corretor ): $corretor = $protocolo['corretor_id']; ?> <tr class="top_list"> <td> <?php if( (new Model_DbTable_CorretorPendenciaFisico())->selectCorretoresLista($protocolo['corretor_id']) != null ){ echo "<span title='Corretor com pendência além do prazo ou reabertura.' style='color:orange' class='glyphicon-reg glyphicon-reg-warning_sign'></span>"; } if((new Model_ProtocoloContrato)->getValoresRecuperar($protocolo['corretor_id'])){ echo "  <span title='Corretor com valor a recuperar.' style='color:orange' class='glyphicon-reg glyphicon-reg-circle_minus'></span>"; } ?> </td> <td colspan="21"> Corretor: <?php echo $protocolo['nome']; ?> | Rota: <?php echo $protocolo['rota']; ?> | Saldo: <?php echo $saldoCorretor; ?> </td> </tr> <tr> <th></th> <th>Protocolo</th> <th>Data</th> <th>Banco</th> <th>Agência</th> <th>Conta</th> <th>Titular</th> <th>CPF Titular</th> <th>Tipo</th> <th>Taxa transf</th> <th>Descontos</th> <th>Acréscimos</th> <th>Recuperado</th> <th class="tooltip" style="cursor:help">Estornado<span class="tooltiptext">Soma dos valores dos contratos estornados</span></th> <th class="tooltip" style="cursor:help">Valor<span class="tooltiptext">Valor da comissão bruta (contempla contratos estornados)</span></th> <th class="tooltip" style="cursor:help">Valor Pagto.<span class="tooltiptext">Valor da comissão líquida</span></th> <th colspan='2'></th> </tr> <?php endif; ?> <tr> <td><input type="checkbox" name="protocolos[]" id="checks[]" value="<?php echo $protocolo['id']?>" /></td> <td><a style="display:inline" onclick="openWin('<?php echo $this->url(array( 'controller' => 'contrato', 'action' => 'imprimir-protocolo-pagamento', 'protocolo_id' => $protocolo['id'] )) ?>', 1024, 600); return false;" title="Visualizar"><?php echo $protocolo['id']; ?></a></td> <td data-value="<?php echo $protocolo['data_pagamento'] ?>"><?php echo $this->dateFormat($protocolo['data_pagamento']); ?></td> <td><?php echo $protocolo['banco_pagamento']; ?></td> <td><?php echo $protocolo['agencia']; ?></td> <td><?php echo $protocolo['conta']; ?></td> <td><?php echo $protocolo['titular']; ?></td> <td><?php echo $protocolo['cpf_titular']; ?></td> <td><?php echo $protocolo['tipo_conta']; ?></td> <td class="valor">R$ <?php echo number_format((float)$taxaTransf, 2, ",", "."); ?></td> <td class="valor">R$ <?php echo number_format((float)$protocolo['desconto'], 2, ",", "."); ?></td> <td class="valor">R$ <?php echo number_format((float)$protocolo['acrescimo'], 2, ",", "."); ?></td> <td class="valor">R$ <?php echo number_format((float)$protocolo['recuperado'], 2, ",", "."); ?></td> <td class="valor">R$ <?php echo number_format((float)$protocolo['total_estornado'], 2, ",", "."); ?></td> <td class="valor">R$ <span id="valor_pagar_<?= $protocolo['id']?>"><?php echo number_format( (float)$valorComissao, 2, ",", "."); ?></span></td> <td class="valor">R$ <span id="valor_pgto_<?= $protocolo['id']?>"><?php echo number_format((float)($valorPagto), 2 , ",", "."); ?></span></td> <td align="center"><a href="javascript:void()" onclick="openWin('<?php echo $this->url(array( 'controller' => 'contrato', 'action' => 'edit-protocolo', 'id' => $protocolo['id'] )) ?>', 1024, 600, 1)" class="link_money" title="Acréscimo / Desconto"></a></td> <td align="center"><a href="<?php echo $this->url(array( 'controller' => 'contrato', 'action' => 'edit-protocolo-a-quitar', 'id' => $protocolo['id'] )) ?>" class="link_edit" title="Editar Protocolo"></a></td> </tr> <?php if( !isset($this->protocolos[$key + 1]['corretor_id']) || $protocolo['corretor_id'] != $this->protocolos[$key + 1]['corretor_id'] ): ?> <tr> <td class="negrito">Total:</td> <td colspan="8"></td> <td class="valor negrito">R$ <?php echo number_format($valorTransf, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($valorDescontos, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($valorAcrecimos, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($valorRecuperados, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($valorEstornado, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($valorTotal, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($totalGeral, 2, ',', '.'); ?></td> <td colspan="2"></td> </tr> <?php $valorTotal = $totalGeral = 0; ?> <?php endif; ?> <?php endforeach; ?> </tbody> <?php else : ?> <thead> <tr class="top_list"> <th></th> <th>Protocolo</th> <th>Data</th> <th>Banco</th> <th>Agência</th> <th>Conta</th> <th>Titular</th> <th>CPF Titular</th> <th>Tipo</th> <th>Taxa transf</th> <th>Descontos</th> <th>Acréscimos</th> <th>Valor</th> <th>Valor Pagto.</th> <th colspan='1'></th> </tr> </thead> <tbody> <tr> <td colspan="18">Nenhum contrato encontrado.</td> </tr> </tbody> <?php endif; ?> <tfoot> <tr> <td colspan="4" class="negrito">Total Selecionado: <span id="total_selecionados">0</span></td> <td colspan="10"></td> <td class="valor">R$ <span id="total_valor">0,00</span></td> <td class="valor">R$ <span id="total_valor_pgto">0,00</span></td> </tr> </tfoot> </table> <div id="opcoes" class="liberar no-print"> <fieldset class="opcoes-protocolo"> <legend>Alterar informações do protocolo:</legend> <dl> <?php echo Form_DatePicker::getDatePicker('data_pagamento', 'Data Pagamento:', null); ?> <dt> <i style="padding: 5px;">Conta:</i> </dt> <dd> <?php $select = new Zend_Form_Element_Select('conta_id'); $select->addMultiOptions(Core_Combos::getContasOptions()) ->removeDecorator('DtDdWrapper') ->removeDecorator('HtmlTag') ->removeDecorator('Label'); echo $select; ?> </dd> </dl> <input type="submit" class="bt_apply" value="Liberar Pagamento" /> <input type="button" onclick="window.location = '<?php echo $this->baseUrl(); ?>/financeiro/pagar-comissao/';" value="Novo Pagamento" class="bt_new" /> </fieldset> <fieldset class="opcoes-protocolo"> <legend>Impressão:</legend> <dt><label>Exibir recibo</label></dt> <dd><select style="min-width: 0; width:auto" name="exibir_recibo"><option value="0">Não</option><option value="1" selected>Sim</option></select></dd> <dt><label>Exibir protocolo</label></dt> <dd><select style="min-width: 0; width:auto" name="exibir_protocolo"><option value="0">Não</option><option value="1" selected>Sim</option></select></dd> <div style="margin: 0 0 10px 0" class="clear"></div> <button type="submit" class="bt_imprimir" value="/financeiro/imprimir-varios-protocolos" onclick="return imprimirProtocolos(this);">Imprimir selecionados</button> </fieldset> <div class="clear"></div> </div> </form> </div>
💾 保存文件
← 返回文件管理器