Limpieza
This commit is contained in:
@ -4,25 +4,11 @@ namespace Incoviba\Service\Contabilidad\Cartola;
|
|||||||
use Psr\Http\Message\UploadedFileInterface;
|
use Psr\Http\Message\UploadedFileInterface;
|
||||||
use PhpOffice\PhpSpreadsheet;
|
use PhpOffice\PhpSpreadsheet;
|
||||||
use Incoviba\Common\Ideal\Cartola\Banco;
|
use Incoviba\Common\Ideal\Cartola\Banco;
|
||||||
use Psr\Log\LoggerInterface;
|
|
||||||
|
|
||||||
class Santander extends Banco
|
class Santander extends Banco
|
||||||
{
|
{
|
||||||
use withSubBancos;
|
use withSubBancos;
|
||||||
|
|
||||||
/*public function process(UploadedFileInterface $file): array
|
|
||||||
{
|
|
||||||
$filename = $this->processUploadedFile($file);
|
|
||||||
try {
|
|
||||||
$subBanco = $this->getSubBanco($filename);
|
|
||||||
$data = $subBanco->processFile($filename);
|
|
||||||
return $subBanco->mapColumns($data);
|
|
||||||
} catch (InvalidArgumentException) {
|
|
||||||
$data = parent::processFile($filename);
|
|
||||||
return $this->mapColumns($data);
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
protected function columnMap(): array
|
protected function columnMap(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
@ -105,14 +91,6 @@ class Santander extends Banco
|
|||||||
}
|
}
|
||||||
$rowData[$column] = $value;
|
$rowData[$column] = $value;
|
||||||
}
|
}
|
||||||
/*if ($rowData['CARGO/ABONO'] === 'C') {
|
|
||||||
$rowData['MONTO'] = -$rowData['MONTO'];
|
|
||||||
$rowData['cargo'] = $rowData['MONTO'];
|
|
||||||
$rowData['abono'] = 0;
|
|
||||||
} else {
|
|
||||||
$rowData['cargo'] = 0;
|
|
||||||
$rowData['abono'] = $rowData['MONTO'];
|
|
||||||
}*/
|
|
||||||
$data []= $rowData;
|
$data []= $rowData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user