✏️ 正在编辑: EnvioFisico.php
路径:
/srv/systems_dir/yuppiecred-lidernegocios/library/Core/Banco/Planilha/Mercantil/EnvioFisico.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Core_Banco_Planilha_Mercantil_EnvioFisico extends Core_Banco_Planilha_EnvioFisicoGenerico { protected $_bancoId; protected $_inicioLaco = 1; protected $colunas = array( 'numero_protocolo' => 'B', 'data' => 'C', 'numero_contrato' => 'D', 'cpf' => 'E', ); public function importar(array $sheetData, array $params) { ini_set('precision', '15'); $registros = array(); if( count($sheetData) > 0 ){ $sheetData = $this->excluirLinhasVazias($sheetData); $protocolo = time(); foreach ( $sheetData as $row ) { $delChar = array("'", '"'); $numeroContrato = str_replace($delChar, "", trim($row[$this->getColuna('numero_contrato')])); $dt = new Zend_Date($params['data_envio']); $dtEnvio = $dt->get('yyyy-MM-dd'); $bordero = str_replace($delChar, "", trim($row[$this->getColuna('numero_protocolo')])); $dbtable = new Model_DbTable_Contrato(); $result = $dbtable->baixarEnvioFisico($dtEnvio, $bordero, $params['numero_envelope'], $numeroContrato, $this->getBancoId(), $protocolo, $params['obs_envio_fisico'], $params['usuario_formalizacao']); $registros[] = array( "numero_contrato" => $numeroContrato, "cpf" => isset($row[$this->getColuna('cpf')]) ? String_Refatorar::formatarCpf(trim($row[$this->getColuna('cpf')])) : "", "cliente" => isset($row[$this->getColuna('cliente')]) ? trim($row[$this->getColuna('cliente')]) : "", "resultado" => $result ); } } return $registros; } }
💾 保存文件
← 返回文件管理器