✏️ 正在编辑: protocolos-gerados.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/financeiro/protocolos-gerados.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Protocolos Gerados</h1> <div id="filter"> <?php echo $this->form; ?> <div class="clear"></div> </div> <?php if (count($this->protocolos) > 0) :?> <div id="view-content"> <form method="post" enctype="multipart/form-data" onsubmit="return validarChecks(this)"> <table summary="Contratos" class="tablesorter" id="sortedTable"> <thead> <tr class="top_list"> <th class="not-sortable" style="font-size: 12px;"><input type="checkbox" name="control" id="control" value="all" onclick="myOptions.check(this)" /></th> <th> N° <br> Protocolo </th> <th width="70">Situação</th> <th>Data Protocolo</th> <th>Data Quitação</th> <th>Corretor</th> <th>Rota</th> <th>Banco</th> <th>Agência</th> <th>Conta</th> <th>Titular</th> <th>CPF Titular</th> <th>Tipo</th> <th>Valor Pagto.</th> </tr> </thead> <tbody> <?php $valorTotal = $totalPago = 0; if( count($this->protocolos) <= 0 ): ?> <tr> <td colspan="17">Nenhum protocolo encontrado.</td> <td></td> </tr> <?php else: foreach ( $this->protocolos as $protocolo ): $valorTotal += $protocolo['total_comissao']; $taxaTransf = isset($protocolo['taxa_transferencia_banco']) && $protocolo['descontar_taxa_transf'] == 1 ? $protocolo['taxa_transferencia_banco'] : 0; if( isset($protocolo['forma_pagamento_id']) && ($protocolo['forma_pagamento_id'] != 7) || $valorTotal == 0 ){ $taxaTransf = 0; } $totalComissao = number_format($protocolo['total_comissao'], 2, ".", ""); $desconto = number_format($protocolo['desconto'], 2, ".", ""); $acrescimo = number_format($protocolo['acrescimo'], 2, ".", ""); $recuperado = number_format($protocolo['recuperado'], 2, ".", ""); $pago = $totalComissao + $acrescimo - $desconto - $taxaTransf - $recuperado; $totalPago += $pago; ?> <tr> <td><input type="checkbox" name="protocolos[]" id="checks[]" value="<?php echo $protocolo['id'] ?>" /></td> <td><a href="javascript:void()" onclick="openWin('<?php echo $this->url(array( 'controller' => 'contrato', 'action' => 'imprimir-protocolo-pagamento', 'protocolo_id' => $protocolo['id'] )) ?>', 0, 600)" title="Visualizar"><?php echo $protocolo['id']; ?></a></td> <td> <?php $estado = ''; if ($protocolo['data_quitacao']) { $estado = 'Quitado'; $estadoClass = 'q'; } if ($protocolo['data_quitacao'] == null && $protocolo['liberado_pagamento'] == 1) { $estado = 'A quitar'; $estadoClass = 'l'; } if ($protocolo['liberado_pagamento'] == 0) { $estado = 'A liberar'; $estadoClass = 'nl'; } echo "<span class='tag-estado-protocolo tag-estado-protocolos-gerados-$estadoClass'>$estado</span>"; ?> </td> <td data-value="<?php echo $protocolo['data_pagamento'] ?>"><?php echo $this->dateFormat($protocolo['data_pagamento']); ?></td> <td data-value="<?php echo $protocolo['data_quitacao'] ?>"><?php echo $this->dateFormat($protocolo['data_quitacao']); ?></td> <td class="selecionar"><?php echo $protocolo['nome']; ?></td> <td><?= $protocolo['rota']; ?></td> <td><?= $protocolo['banco_pagamento']; ?></td> <td><?= $protocolo['agencia']; ?></td> <td><?= $protocolo['conta']; ?></td> <td><?= $protocolo['titular']; ?></td> <td><?= $protocolo['cpf_titular']; ?></td> <td><?= $protocolo['tipo_conta']; ?></td> <td class="valor" data-value="<?php echo $pago; ?>"><span>R$ </span><?php echo number_format($pago, 2, ',', '.'); ?></td> </tr> <?php endforeach; endif ?> </tbody> <tfoot> <tr> <td class="negrito">Total:</td> <td colspan="11"></td> <td class="valor negrito"><span>R$ </span><?php echo number_format($totalPago, 2, ',', '.'); ?></td> </tr> </tfoot> </table> <div id="opcoes" class="gerais no-print"> <fieldset class="opcoes-protocolo"> <legend>Impressão:</legend> <dl> <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> </dl> <button type="submit" class="bt_imprimir" onclick="return imprimirProtocolos(this);" name="acao" value="/financeiro/imprimir-varios-protocolos">Imprimir selecionados</button> </fieldset> <div class="clear"></div> </div> </form> </div> <?php endif;?>
💾 保存文件
← 返回文件管理器