@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | class residentesFacturaDetallada |
24 | 24 | { |
25 | - public $archivo ; |
|
25 | + public $archivo; |
|
26 | 26 | public $document; |
27 | 27 | public $emailHelper; |
28 | 28 | public $output; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | private $residentesController; |
32 | 32 | public function __construct($orientation = 'L', $um = 'mm', $size = 'A5', $output = 'enviar', $archivo = 'doc.pdf', $user = 'cron') |
33 | 33 | { |
34 | - $this->archivo = ($archivo) ?: \date('dmYHis') . ".pdf"; |
|
34 | + $this->archivo = ($archivo) ?: \date('dmYHis').".pdf"; |
|
35 | 35 | $this->output = $output; |
36 | 36 | $this->user = $user; |
37 | 37 | $this->log = new fs_core_log(); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $datosFactura = $this->invoiceData($companyInformation, $invoice); |
51 | 51 | $datosEmpresa = (array) $companyInformation; |
52 | 52 | $customerInfo = (array) $customer; |
53 | - $customerInfo['direccion'] = trim($customer->inmueble->codigo_externo()) . " numero " . $customer->inmueble->numero; |
|
53 | + $customerInfo['direccion'] = trim($customer->inmueble->codigo_externo())." numero ".$customer->inmueble->numero; |
|
54 | 54 | $this->document->createDocument($datosEmpresa, $datosFactura[0], $datosFactura[1], $customerInfo); |
55 | 55 | $this->residentesController->cliente_residente = $customer; |
56 | 56 | $pendiente = $this->residentesController->pagosFactura(false); |
@@ -58,17 +58,17 @@ discard block |
||
58 | 58 | if ($this->output === 'enviar') { |
59 | 59 | $this->document->Output( |
60 | 60 | 'F', |
61 | - 'tmp/' . FS_TMP_NAME . 'enviar/' . $this->archivo, |
|
61 | + 'tmp/'.FS_TMP_NAME.'enviar/'.$this->archivo, |
|
62 | 62 | true |
63 | 63 | ); |
64 | - if(isset($_POST['email']) && $_POST['email'] !== '') { |
|
64 | + if (isset($_POST['email']) && $_POST['email'] !== '') { |
|
65 | 65 | $customer->email = $_POST['email']; |
66 | 66 | } |
67 | 67 | $this->emailHelper->invoiceEmail($companyInformation, $invoice, $customer, $this->user, $this->archivo); |
68 | - } else { |
|
68 | + }else { |
|
69 | 69 | $this->document->Output( |
70 | 70 | 'I', |
71 | - 'factura_' .$datosFactura[0]['numero2']. '_' . \date('dmYhis') . '.pdf' |
|
71 | + 'factura_'.$datosFactura[0]['numero2'].'_'.\date('dmYhis').'.pdf' |
|
72 | 72 | ); |
73 | 73 | } |
74 | 74 | } |