✏️ 正在编辑: fisicos-pendentes-body.phtml
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/scripts/relatorio/fisicos-pendentes-body.phtml
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php $ns = new Zend_Session_Namespace(); $verComissao = $ns->acl->isAllowed(Yuppie_Auth::getIdentity()->grupo, 'visualizar-comissao-contrato'); $totalGeral = 0; if (!empty($this->contratos)): $valorTotal = 0; $qtd = 0; $qtdGeral = 0; foreach ($this->contratos as $key => $contrato): $valorTotal += $contrato['valor_liquido']; $totalGeral += $contrato['valor_liquido']; $contratoId = $contrato['id_contrato']; $comissaoCorretor = $contrato['valor_fixo_corretor'] + $contrato['base_comissao_valor'] * $contrato['comissao_corretor'] / 100 ; $qtd++; $qtdGeral++; $diasAtraso = $this->fisicoAtrasado( $contrato['data_base'], $contrato['data_recebimento_fisico'], $contrato['data_recebimento_previa'], $contrato['prazo_fisico']); if( !isset($corretor) || $contrato['corretor_id'] != $corretor ): $corretor = $contrato['corretor_id']; ?> <thead> <tr class="top_list"> <th colspan="3">Corretor: <?php echo $contrato['corretor']; ?></th> <th colspan="16">Rota: <?php echo $contrato['rotas']; ?></th> </tr> <tr class="top_list"> <th>Digitador</th> <th>Emissão</th> <th>Liberação</th> <th>Cliente</th> <th>CPF</th> <th>Banco</th> <th>Convênio</th> <th>Tabela</th> <th>Nº Contrato</th> <th>Status</th> <th>Valor</th> <?php if($verComissao): ?> <th>Comissão</th> <?php endif ?> <th>Atraso</th> <th>Data Prévia</th> <th>Pendência</th> <th>Usuário Pendência</th> <th>Situação Físico</th> <?php if($verComissao): ?> <th width="5" align="center"></th> <?php else: ?> <th width="5" align="center" colspan="2"></th> <?php endif; ?> </tr> </thead> <?php endif; ?> <tr class="<?php echo $this->fisicosPendentesCores($contrato);?>" > <td><?php echo $contrato['digitador']; ?></td> <td><?php echo $this->dateFormat($contrato['data_emissao']); ?></td> <td><?php echo $this->dateFormat($contrato['data_liberacao']); ?></td> <td><?php echo ($contrato['cliente']); ?></td> <td class="cpf"><?php echo $contrato['cpf_cliente']; ?></td> <td><?php echo $contrato['banco']; ?></td> <td><?php echo $contrato['convenio']; ?></td> <td><?php echo $contrato['tabela']; ?></td> <td><?php echo $contrato['numero_contrato2'] ?> <?php echo isset($contrato['numero_ade']) && $contrato['numero_ade'] > 0 ? " <br /> " . $contrato['numero_ade'] : ""; ?></td> <td><?php echo $contrato['status_proposta_nome']; ?></td> <td class="valor"><span>R$ </span><?php echo number_format($contrato['valor_liquido'], 2, ',', '.'); ?></td> <?php if($verComissao): ?> <td class="valor"><span>R$ </span><?php echo is_numeric($comissaoCorretor) ? number_format($comissaoCorretor, 2, ',', '.') : ''; ?></td> <?php endif ?> <td align="center"><span class="marcadorDiasAtraso <?php echo $this->farolPendencia($diasAtraso, $contrato['prazo_fisico']); ?>"><?php echo $diasAtraso; ?></span></td> <td><?php echo $this->dateFormat($contrato['data_recebimento_previa']); ?></td> <td><?php echo $contrato['descricao_pendencia']; ?></td> <td><?php echo !empty($contrato['usuario_pendencia'])? $contrato['usuario_pendencia'] : "" ;?></td> <td align="center"><?php echo $contrato['previa_recebimento'] == 1 ? 'RECEPCIONADO' : 'PENDENTE'; ?></td> <td><input type="checkbox" name="contratos[]" id="checks[]" role="<?php echo $contrato['corretor_id']?>" value="<?php echo $contrato['id_contrato'] ?>" checked/></td> </tr> <?php if ( !isset($this->contratos[$key + 1]['corretor_id']) || $contrato['corretor_id'] != $this->contratos[$key + 1]['corretor_id'] ): ?> <tr> <td>Total: <?php echo $qtd; ?></td> <td colspan="9"></td> <td class="valor"><span>R$ </span><?php echo number_format($valorTotal, 2, ',', '.'); ?></td> <td colspan="9"></td> </tr> <tr> <td colspan="19"> <button type="submit" name="corretor" role="<?php echo $contrato['corretor_id']?>" value="<?php echo $contrato['corretor_id'] ?>" onclick="uncheckByRole(this);">Notificar Pendência</button> <button type="submit" name="supervisor" role="<?php echo $contrato['corretor_id']?>" value="<?php echo $contrato['corretor_id'] ?>" onclick="uncheckByRole(this);">Notificar Pendência Supervisor</button> <button type="submit" name="bloqueio_corretor" role="<?php echo $contrato['corretor_id']?>" value="<?php echo $contrato['corretor_id'] ?>" onclick="uncheckByRole(this);">Notificar Bloqueio de Comissão Corretor</button> </td> </tr> <?php $valorTotal = 0; $qtd = 0; endif; endforeach; ?> <tr> <td class="negrito" colspan="10"> Qtd. Pendente: <?php echo $qtdGeral; ?> Qtd. Vendida: <?php echo $this->qtd_vendida; ?> Pendência: <?php echo $this->qtd_vendida > 0 ? number_format(($qtdGeral * 100 / $this->qtd_vendida), 2, '.', ',') : 0; ?> % </td> <td class="negrito valor">R$ <?php echo number_format($totalGeral, 2, ',', '.'); ?></td> <td colspan="8"></td> </tr> <tr> <td colspan="19"> <input type="submit" name="notificar_pendencias_geral" value="Notificar Todas Pendências" class="bg_vermelho"/> <input type="submit" name="notificar_pendencias_geral" value="Notificar Todas Pendências Supervisores" class="bg_vermelho"/> <input type="submit" name="notificar_pendencias_geral" value="Notificar Bloqueio de Comissão Corretores" class="bg_vermelho"/> </td> </tr> <?php endif; ?>
💾 保存文件
← 返回文件管理器