@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | if ($printForm) $this->printService->addLine('', '', ' '); |
68 | 68 | |
69 | 69 | $this->printService->addLine( |
70 | - $indent . $quantity . ' X ' . $product->getProduct(), |
|
71 | - " R$ " . number_format($total, 2, ',', '.'), |
|
70 | + $indent.$quantity.' X '.$product->getProduct(), |
|
71 | + " R$ ".number_format($total, 2, ',', '.'), |
|
72 | 72 | '.' |
73 | 73 | ); |
74 | 74 | |
@@ -88,10 +88,10 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | foreach ($groupedChildren as $groupName => $orderProductChildren) { |
91 | - $this->printService->addLine(strtoupper($groupName) . ":"); |
|
91 | + $this->printService->addLine(strtoupper($groupName).":"); |
|
92 | 92 | foreach ($orderProductChildren as $orderProductChild) { |
93 | 93 | $product = $orderProductChild->getProduct(); |
94 | - $this->printService->addLine(" - " . $product->getProduct()); |
|
94 | + $this->printService->addLine(" - ".$product->getProduct()); |
|
95 | 95 | } |
96 | 96 | } |
97 | 97 | $this->printService->addLine('', '', '-'); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | foreach ($parentOrderProducts as $parentOrderProduct) { |
105 | 105 | $quantity = $printForm ? $parentOrderProduct->getQuantity() : 1; |
106 | 106 | for ($i = 0; $i < $quantity; $i++) { |
107 | - $this->printProduct($parentOrderProduct, "- ", $printForm); |
|
107 | + $this->printProduct($parentOrderProduct, "- ", $printForm); |
|
108 | 108 | |
109 | 109 | $childs = $parentOrderProduct->getOrderProductComponents(); |
110 | 110 | if (!empty($childs)) |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | foreach ($queues as $queueName => $orderProducts) { |
121 | 121 | $parentOrderProducts = array_filter($orderProducts, fn($orderProduct) => $orderProduct->getOrderProduct() === null); |
122 | 122 | if (!empty($parentOrderProducts)) { |
123 | - if (!$printForm) $this->printService->addLine(strtoupper($queueName) . ":"); |
|
123 | + if (!$printForm) $this->printService->addLine(strtoupper($queueName).":"); |
|
124 | 124 | $this->printQueueProducts($orderProducts, $printForm); |
125 | 125 | if ($printForm) $this->printService->addLine('', '', ' '); |
126 | 126 | $this->printService->addLine('', '', ' '); |
@@ -136,13 +136,13 @@ discard block |
||
136 | 136 | |
137 | 137 | $printForm = ($device_configs->getConfigs(true)['print-mode'] ?? 'order') == 'form'; |
138 | 138 | |
139 | - $this->printService->addLine("PEDIDO #" . $order->getId()); |
|
139 | + $this->printService->addLine("PEDIDO #".$order->getId()); |
|
140 | 140 | $this->printService->addLine($order->getOrderDate()->format('d/m/Y H:i')); |
141 | 141 | |
142 | 142 | if (!$printForm) { |
143 | 143 | $client = $order->getClient(); |
144 | 144 | $this->printService->addLine(($client !== null ? $client->getName() : 'Não informado')); |
145 | - $this->printService->addLine("R$ " . number_format($order->getPrice(), 2, ',', '.')); |
|
145 | + $this->printService->addLine("R$ ".number_format($order->getPrice(), 2, ',', '.')); |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | $this->printService->addLine("", "", "-"); |