✏️ 正在编辑: meus-protocolos.phtml
路径:
/srv/systems_dir/yuppiecred/application/views/scripts/corretor/meus-protocolos.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<h1 class="tit_local">Comissões Programadas</h1> <div id="view-content"> <table> <thead> <tr class="top_list"> <th style="width: 150px">N° Protocolo</th> <th style="width: 150px">Data Programada</th> <th style="width: 150px"> </th> <th>Valor Comissão</th> <th>Acréscimos</th> <th>Descontos</th> <th>Total</th> <th colspan="3"></th> </tr> </thead> <tbody> <?php $totalValor = 0; $totalValorPago = 0; $totalGeral = 0; $valor = 0; $comissao = 0; $contar = 0; $totalComissao = 0; $totalAcrescimos = 0; $totalDescontos = 0;?> <?php foreach ( $this->protocolos as $key => $protocolo ): ?> <?php if (empty($protocolo['data_quitacao']) || $protocolo['data_quitacao'] == '0000-00-00'): $taxaTransf = isset($protocolo['taxa_transferencia_banco']) && $protocolo['descontar_taxa_transf'] == 1 ? $protocolo['taxa_transferencia_banco'] : null; $valorComissao = $protocolo['total_comissao']; $totalComissao += $protocolo['total_comissao']; $totalValor += $protocolo['total_comissao']; if( isset($protocolo['forma_pagamento_id']) && ($protocolo['forma_pagamento_id'] != 7) || $valorComissao == 0 ){ $taxaTransf = 0; } $totalAcrescimos += $protocolo['acrescimo']; $totalDescontos += $protocolo['desconto']; $totalGeral += ($valorComissao + $protocolo['acrescimo'] - $protocolo['desconto'] - $taxaTransf); $totalValorPago = ($valorComissao + $protocolo['acrescimo'] - $protocolo['desconto'] - $taxaTransf); $contar += 1; ?> <tr> <td><?php echo $protocolo['protocolo_id']; ?></td> <td><?php echo $this->dateFormat($protocolo['data_pagamento']); ?></td> <td> </td> <td class="valor"><span>R$</span> <?php echo number_format($protocolo['valor_comissao']-$taxaTransf, 2, ',', '.'); ?></td> <td class="valor"><span>R$</span> <?php echo number_format($protocolo['acrescimo'], 2, ',', '.'); ?></td> <td class="valor"><span>R$</span> <?php echo number_format($protocolo['desconto'], 2, ',', '.'); ?></td> <td class="valor"><span>R$</span> <?php echo number_format(($valorComissao+$protocolo['acrescimo']-$protocolo['desconto']-$taxaTransf), 2, ',', '.'); ?></td> <td><a href="javascript://" onclick="window.open('<?php echo $this->url(array( 'action' => 'detalhar-protocolo', 'protocolo_id' => $protocolo['protocolo_id'] )); ?>')" class="link_view" title="Visualizar Contratos"></a></td> <td align="center"><a href="<?php echo $this->url(array( 'controller' => 'corretor', 'action' => 'baixar-protocolo', 'protocolo_id' => $protocolo['protocolo_id'] )) ?>" class="link_protocolo_pdf" title="Baixar Protocolo PDF"></a></td> <td align="center"><a href="<?php echo $this->url(array( 'controller' => 'corretor', 'action' => 'baixar-protocolo-excel', 'protocolo_id' => $protocolo['protocolo_id'] )) ?>" class="link_protocolo_excel" title="Baixar Protocolo Excel"></a></td> </tr> <?php endif; ?> <?php endforeach; ?> </tbody> <tfoot> <tr> <td class="negrito" colspan="3">Total: <?php echo $contar; ?></td> <td class="valor negrito">R$ <?php echo number_format($totalComissao, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($totalAcrescimos, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($totalDescontos, 2, ',', '.'); ?></td> <td class="valor negrito">R$ <?php echo number_format($totalGeral, 2, ',', '.'); ?></td> </tr> </tfoot> </table> </div> <p style="margin: 25px 0"></p> <h1 class="tit_local">Comissões Quitadas</h1> <div id="view-content"> <table> <thead> <tr class="top_list"> <th style="width: 150px">N° Protocolo</th> <th style="width: 150px">Data Programada</th> <th style="width: 150px">Data Quitação</th> <th>Valor Comissão</th> <th>Acréscimos</th> <th>Descontos</th> <th>Total</th> <th colspan="3"></th> </tr> </thead> <tbody> <?php foreach ( $this->protocolos as $key => $protocolo ): ?> <?php if (!empty($protocolo['data_quitacao'])): $taxaTransf = isset($protocolo['taxa_transferencia_banco']) && $protocolo['descontar_taxa_transf'] == 1 ? $protocolo['taxa_transferencia_banco'] : null; $valorComissao = $protocolo['total_comissao']; if( isset($protocolo['forma_pagamento_id']) && ($protocolo['forma_pagamento_id'] != 7) || $valorComissao == 0 ){ $taxaTransf = 0; } ?> <tr> <td><?php echo $protocolo['protocolo_id']; ?></td> <td><?php echo $this->dateFormat($protocolo['data_pagamento']); ?></td> <td><?php echo $this->dateFormat($protocolo['data_quitacao']); ?></td> <td class="valor"><span>R$</span> <?php echo number_format($protocolo['valor_comissao']-$taxaTransf, 2, ',', '.'); ?></td> <td class="valor"><span>R$</span> <?php echo number_format($protocolo['acrescimo'], 2, ',', '.'); ?></td> <td class="valor"><span>R$</span> <?php echo number_format($protocolo['desconto'], 2, ',', '.'); ?></td> <td class="valor"><span>R$</span> <?php echo number_format(($valorComissao+$protocolo['acrescimo']-$protocolo['desconto']-$taxaTransf), 2, ',', '.'); ?></td> <td><a href="javascript://" onclick="window.open('<?php echo $this->url(array( 'action' => 'detalhar-protocolo', 'protocolo_id' => $protocolo['protocolo_id'] )); ?>')" class="link_view" title="Visualizar Contratos"></a></td> <td align="center"><a href="<?php echo $this->url(array( 'controller' => 'corretor', 'action' => 'baixar-protocolo', 'protocolo_id' => $protocolo['protocolo_id'] )) ?>" class="link_protocolo_pdf" title="Baixar Protocolo PDF"></a></td> <td align="center"><a href="<?php echo $this->url(array( 'controller' => 'corretor', 'action' => 'baixar-protocolo-excel', 'protocolo_id' => $protocolo['protocolo_id'] )) ?>" class="link_protocolo_excel" title="Baixar Protocolo Excel"></a></td> </tr> <?php endif; ?> <?php endforeach; ?> </tbody> </table> </div>
💾 保存文件
← 返回文件管理器