@@ -64,7 +64,7 @@ |
||
64 | 64 | $this->loadExtension(new Extension\Controller\EditProducto()); |
65 | 65 | $this->loadExtension(new Extension\Controller\EditSettings()); |
66 | 66 | |
67 | - AssetManager::add('js', \FS_ROUTE . '/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
67 | + AssetManager::add('js', \FS_ROUTE.'/Plugins/fsRepublicaDominicana/Assets/JS/CommonDomFunctions.js'); |
|
68 | 68 | SalesLineHTML::addMod(new Mod\SalesLineMod()); |
69 | 69 | SalesFooterHTML::addMod(new Mod\SalesFooterMod()); |
70 | 70 | PurchasesFooterHTML::addMod(new Mod\PurchasesFooterMod()); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $ticket = new Ticket(); |
35 | 35 | $ticket->idprinter = $printer->id; |
36 | 36 | $ticket->nick = $user->nick; |
37 | - $ticket->title = self::$i18n->trans($model->modelClassName() . '-min') . ' RepDominicana.php' . $model->codigo; |
|
37 | + $ticket->title = self::$i18n->trans($model->modelClassName().'-min').' RepDominicana.php'.$model->codigo; |
|
38 | 38 | |
39 | 39 | static::setHeader($model, $printer, $ticket->title); |
40 | 40 | static::setBody($model, $printer); |
@@ -67,54 +67,54 @@ discard block |
||
67 | 67 | |
68 | 68 | // imprimimos el nombre corto de la empresa |
69 | 69 | if ($printer->print_comp_shortname) { |
70 | - static::$escpos->text(static::sanitize($company->nombrecorto) . "\n"); |
|
70 | + static::$escpos->text(static::sanitize($company->nombrecorto)."\n"); |
|
71 | 71 | static::$escpos->setTextSize($printer->head_font_size, $printer->head_font_size); |
72 | 72 | |
73 | 73 | // imprimimos el nombre de la empresa |
74 | - static::$escpos->text(static::sanitize($company->nombre) . "\n"); |
|
74 | + static::$escpos->text(static::sanitize($company->nombre)."\n"); |
|
75 | 75 | } else { |
76 | 76 | // imprimimos el nombre de la empresa |
77 | - static::$escpos->text(static::sanitize($company->nombre) . "\n"); |
|
77 | + static::$escpos->text(static::sanitize($company->nombre)."\n"); |
|
78 | 78 | static::$escpos->setTextSize($printer->head_font_size, $printer->head_font_size); |
79 | 79 | } |
80 | 80 | |
81 | 81 | static::$escpos->setJustification(); |
82 | 82 | |
83 | 83 | // imprimimos la dirección de la empresa |
84 | - static::$escpos->text(static::sanitize($company->direccion) . "\n"); |
|
85 | - static::$escpos->text(static::sanitize("CP: " . $company->codpostal . ', ' . $company->ciudad) . "\n"); |
|
86 | - static::$escpos->text(static::sanitize($company->tipoidfiscal . ': ' . $company->cifnif) . "\n\n"); |
|
84 | + static::$escpos->text(static::sanitize($company->direccion)."\n"); |
|
85 | + static::$escpos->text(static::sanitize("CP: ".$company->codpostal.', '.$company->ciudad)."\n"); |
|
86 | + static::$escpos->text(static::sanitize($company->tipoidfiscal.': '.$company->cifnif)."\n\n"); |
|
87 | 87 | |
88 | 88 | if ($printer->print_comp_tlf) { |
89 | 89 | if (false === empty($company->telefono1) && false === empty($company->telefono2)) { |
90 | - static::$escpos->text(static::sanitize($company->telefono1 . ' / ' . $company->telefono2) . "\n"); |
|
90 | + static::$escpos->text(static::sanitize($company->telefono1.' / '.$company->telefono2)."\n"); |
|
91 | 91 | } elseif (false === empty($company->telefono1)) { |
92 | - static::$escpos->text(static::sanitize($company->telefono1) . "\n"); |
|
92 | + static::$escpos->text(static::sanitize($company->telefono1)."\n"); |
|
93 | 93 | } elseif (false === empty($company->telefono2)) { |
94 | - static::$escpos->text(static::sanitize($company->telefono2) . "\n"); |
|
94 | + static::$escpos->text(static::sanitize($company->telefono2)."\n"); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
98 | 98 | // imprimimos el título del documento |
99 | - static::$escpos->text(static::sanitize($title) . "\n"); |
|
99 | + static::$escpos->text(static::sanitize($title)."\n"); |
|
100 | 100 | |
101 | 101 | static::setHeaderTPV($model, $printer); |
102 | 102 | |
103 | 103 | // si es un documento de venta |
104 | 104 | // imprimimos la fecha y el cliente |
105 | 105 | if (in_array($model->modelClassName(), ['PresupuestoCliente', 'PedidoCliente', 'AlbaranCliente', 'FacturaCliente'])) { |
106 | - static::$escpos->text(static::sanitize(static::$i18n->trans('date') . ': ' . $model->fecha . ' ' . $model->hora) . "\n"); |
|
107 | - static::$escpos->text(static::sanitize(static::$i18n->trans('customer') . ': ' . $model->nombrecliente) . "\n\n"); |
|
106 | + static::$escpos->text(static::sanitize(static::$i18n->trans('date').': '.$model->fecha.' '.$model->hora)."\n"); |
|
107 | + static::$escpos->text(static::sanitize(static::$i18n->trans('customer').': '.$model->nombrecliente)."\n\n"); |
|
108 | 108 | |
109 | 109 | if ($model->modelClassName() == 'FacturaCliente') { |
110 | 110 | if (property_exists($model, 'numeroncf') && $model->numeroncf) { |
111 | - static::$escpos->text(static::sanitize(static::$i18n->trans('ncf-number') . ': ' . $model->numeroncf)) . "\n"; |
|
111 | + static::$escpos->text(static::sanitize(static::$i18n->trans('ncf-number').': '.$model->numeroncf))."\n"; |
|
112 | 112 | } |
113 | 113 | if (property_exists($model, 'tipocomprobante') && $model->tipocomprobante) { |
114 | - static::$escpos->text(static::sanitize(static::$i18n->trans('tipo_comprobante') . ': ' . static::getTipoComprobanteRD($model->tipocomprobante))) . "\n"; |
|
114 | + static::$escpos->text(static::sanitize(static::$i18n->trans('tipo_comprobante').': '.static::getTipoComprobanteRD($model->tipocomprobante)))."\n"; |
|
115 | 115 | } |
116 | 116 | if (property_exists($model, 'ncffechavencimiento') && $model->ncffechavencimiento) { |
117 | - static::$escpos->text(static::sanitize(static::$i18n->trans('due-date') . ': ' . $model->ncffechavencimiento)) . "\n"; |
|
117 | + static::$escpos->text(static::sanitize(static::$i18n->trans('due-date').': '.$model->ncffechavencimiento))."\n"; |
|
118 | 118 | } |
119 | 119 | } |
120 | 120 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | // añadimos la cabecera |
123 | 123 | if ($printer->head) { |
124 | 124 | static::$escpos->setJustification(Printer::JUSTIFY_CENTER); |
125 | - static::$escpos->text(static::sanitize($printer->head) . "\n\n"); |
|
125 | + static::$escpos->text(static::sanitize($printer->head)."\n\n"); |
|
126 | 126 | static::$escpos->setJustification(); |
127 | 127 | } |
128 | 128 | } |