✏️ 正在编辑: contratos-liberados-body.phtml
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/scripts/relatorio/contratos-liberados-body.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php if( count($this->producao) > 0 ): $arrayIterator = $this->producao->getIterator(); ?> <?php $valorTotal = 0; $comissaoCorretor = 0; $corretor = null; $qtd = 0;?> <?php foreach ( $arrayIterator as $key => $producao ): ?> <?php $valorTotal += $producao['valor_liquido']; ?> <?php $comissaoCorretor += $producao['valor_fixo_corretor'] + ($producao['base_comissao_valor'] * $producao['comissao_corretor'] / 100); ?> <?php $qtd++; ?> <?php if( $producao['corretor_id'] != $corretor ): $corretor = $producao['corretor_id']; ?> <thead> <tr class="top_list"> <td colspan="20">Corretor: <?php echo $producao['corretor']; ?></td> </tr> <tr class="top_list"> <th>Cliente</th> <th>Emissão</th> <th>Banco</th> <th>Tabela</th> <th>N° Contrato</th> <th>Prazo</th> <th>Liberação</th> <th>Valor</th> <th>Comissão</th> <th>Valor Comissão</th> </tr> </thead> <?php endif; ?> <tr> <td><?php echo $producao['cliente'] ?></td> <td><?php echo $this->dateFormat($producao['data_emissao']); ?></td> <td><?php echo $producao['banco'] ?></td> <td><?php echo $producao['tabela'] ?></td> <td><?php echo $producao['numero_contrato'] ?></td> <td><?php echo $producao['prazo'] ?></td> <td><?php echo $this->dateFormat($producao['data_liberacao']);?></td> <td class="valor"><span>R$</span> <?php echo number_format($producao['valor_liquido'], 2, ',', '.') ?></td> <td><?php echo $producao['comissao_corretor'] ?></td> <td class="valor"><?php echo number_format(($producao['base_comissao_valor']*$producao['comissao_corretor']/100), 2, ',', '.') ?></td> </tr> <?php if( !isset($arrayIterator[$key+1]['corretor_id']) || $producao['corretor_id'] != $arrayIterator[$key+1]['corretor_id'] ): ?> <tr> <td class="negrito">Total: <?php echo $qtd; ?></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td class="valor negrito"><span>R$ </span><?php echo number_format($valorTotal, 2, ',', '.'); ?></td> <td></td> <td class="valor negrito"><span>R$ </span><?php echo number_format($comissaoCorretor, 2, ',', '.'); ?></td> </tr> <?php $qtd = 0; $valorTotal = 0; $comissaoCorretor = 0;?> <?php endif; ?> <?php endforeach; ?> <?php if( $this->producao->count() == $this->producao->getCurrentPageNumber() ): ?> <tr> <td class="negrito">Total Geral: <?php echo $this->producao->getTotalItemCount(); ?></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td class="negrito valor">R$ <?php echo number_format($this->totalizador['total_liquido'], 2, ',', '.'); ?></td> <td></td> <td class="negrito valor">R$ <?php echo number_format($this->totalizador['total_comissao_corretor'], 2, ',', '.'); ?></td> </tr> <?php endif; endif; ?>
💾 保存文件
← 返回文件管理器