@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | ]; |
86 | 86 | $commonFunctions->exportTXT('606', $fileName, $this->empresa->cifnif, $year, $month, $whereReport); |
87 | 87 | $this->response->headers->set('Content-type', 'text/plain'); |
88 | - $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName); |
|
89 | - $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName)); |
|
88 | + $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName); |
|
89 | + $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName)); |
|
90 | 90 | break; |
91 | 91 | case "FiscalReport607": |
92 | 92 | $this->setTemplate(false); |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | $fileName = 'DGII_607_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt'; |
98 | 98 | $commonFunctions->exportTXT('607', $fileName, $this->empresa->cifnif, $year, $month, $whereReport); |
99 | 99 | $this->response->headers->set('Content-type', 'text/plain'); |
100 | - $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName); |
|
101 | - $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName)); |
|
100 | + $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName); |
|
101 | + $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName)); |
|
102 | 102 | break; |
103 | 103 | case "FiscalReport608": |
104 | 104 | $this->setTemplate(false); |
@@ -109,8 +109,8 @@ discard block |
||
109 | 109 | $fileName = 'DGII_608_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt'; |
110 | 110 | $commonFunctions->exportTXT('608', $fileName, $this->empresa->cifnif, $year, $month, $whereReport); |
111 | 111 | $this->response->headers->set('Content-type', 'text/plain'); |
112 | - $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName); |
|
113 | - $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName)); |
|
112 | + $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName); |
|
113 | + $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName)); |
|
114 | 114 | break; |
115 | 115 | default: |
116 | 116 | break; |
@@ -82,10 +82,10 @@ |
||
82 | 82 | /** |
83 | 83 | * @inheritDoc |
84 | 84 | */ |
85 | - public function show(Response &$response) |
|
85 | + public function show(Response & $response) |
|
86 | 86 | { |
87 | 87 | $response->headers->set('Content-Type', 'text/text; charset=utf-8'); |
88 | - $response->headers->set('Content-Disposition', 'attachment;filename=' . $this->getFileName() . '.txt'); |
|
88 | + $response->headers->set('Content-Disposition', 'attachment;filename='.$this->getFileName().'.txt'); |
|
89 | 89 | $response->setContent($this->getDoc()); |
90 | 90 | } |
91 | 91 | } |
92 | 92 | \ No newline at end of file |
@@ -127,7 +127,7 @@ |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | public function exportTXT(string $report, string $fileName, string $rncCompany, string $yearReport, |
130 | - string $monthReport, array $whereReport) |
|
130 | + string $monthReport, array $whereReport) |
|
131 | 131 | { |
132 | 132 | if (file_exists($fileName)) { |
133 | 133 | unlink($fileName); |
@@ -74,10 +74,10 @@ |
||
74 | 74 | protected function getSQLFrom(): string |
75 | 75 | { |
76 | 76 | return static::MAIN_TABLE |
77 | - . ' LEFT JOIN '. static::SECONDARY_TABLE . ' ON (' |
|
78 | - . static::MAIN_TABLE . '.idfacturarect = ' . static::SECONDARY_TABLE_ALIAS . '.idfactura)' |
|
79 | - . ' LEFT JOIN ' . static::ESTADOSDOC_TABLE . ' ON (' |
|
80 | - . static::MAIN_TABLE . '.idestado = ' . static::ESTADOSDOC_TABLE . '.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre != \'Anulada\')'; |
|
77 | + . ' LEFT JOIN '.static::SECONDARY_TABLE.' ON (' |
|
78 | + . static::MAIN_TABLE.'.idfacturarect = '.static::SECONDARY_TABLE_ALIAS.'.idfactura)' |
|
79 | + . ' LEFT JOIN '.static::ESTADOSDOC_TABLE.' ON (' |
|
80 | + . static::MAIN_TABLE.'.idestado = '.static::ESTADOSDOC_TABLE.'.idestado AND '.static::ESTADOSDOC_TABLE.'.nombre != \'Anulada\')'; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |