@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require_once(ROOT . DS . 'vendor' . DS . 'autoload.php'); |
|
| 3 | +require_once(ROOT.DS.'vendor'.DS.'autoload.php'); |
|
| 4 | 4 | |
| 5 | 5 | use Dompdf\Dompdf; |
| 6 | 6 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $html .= ' <table style="background-color: #cacaca;" width="100%" valign="center" align="center">'; |
| 79 | 79 | $html .= ' <tr align="center">'; |
| 80 | 80 | $html .= ' <td>'; |
| 81 | - $html .= ' <h2>Orçamento Pedido #' . $dadosVenda[0]['Venda']['id'] . '</h2>'; |
|
| 81 | + $html .= ' <h2>Orçamento Pedido #'.$dadosVenda[0]['Venda']['id'].'</h2>'; |
|
| 82 | 82 | $html .= ' </td>'; |
| 83 | 83 | $html .= ' </tr> '; |
| 84 | 84 | $html .= ' </table>'; |
@@ -86,11 +86,11 @@ discard block |
||
| 86 | 86 | $html .= ' <table width="100%" valign="center" align="center">'; |
| 87 | 87 | $html .= ' <tr style="background-color: #ccc;">'; |
| 88 | 88 | $html .= ' <td>Total: </td>'; |
| 89 | - $html .= ' <td>R$ ' . number_format($dadosVenda[0]['Venda']['valor'], 2, ',', '.') . '</td>'; |
|
| 89 | + $html .= ' <td>R$ '.number_format($dadosVenda[0]['Venda']['valor'], 2, ',', '.').'</td>'; |
|
| 90 | 90 | $html .= ' </tr>'; |
| 91 | 91 | $html .= ' <tr style="background-color: #ccc;">'; |
| 92 | 92 | $html .= ' <td>Valor a Pagar: </td>'; |
| 93 | - $html .= ' <td>R$ ' . number_format($dadosVenda[0]['Venda']['valor'], 2, ',', '.') . '</td>'; |
|
| 93 | + $html .= ' <td>R$ '.number_format($dadosVenda[0]['Venda']['valor'], 2, ',', '.').'</td>'; |
|
| 94 | 94 | $html .= ' </tr>'; |
| 95 | 95 | $html .= ' </table>'; |
| 96 | 96 | $html .= ' <br>'; |
@@ -120,9 +120,9 @@ discard block |
||
| 120 | 120 | $total = number_format($total, 2, ',', '.'); |
| 121 | 121 | |
| 122 | 122 | $html .= ' <tr>'; |
| 123 | - $html .= ' <td>' . $produtoInfos['Produto']['nome'] . '</td>'; |
|
| 124 | - $html .= ' <td>' . $produto['VendaItensProduto']['quantidade_produto'] . '</td>'; |
|
| 125 | - $html .= ' <td>R$ ' . $total . '</td>'; |
|
| 123 | + $html .= ' <td>'.$produtoInfos['Produto']['nome'].'</td>'; |
|
| 124 | + $html .= ' <td>'.$produto['VendaItensProduto']['quantidade_produto'].'</td>'; |
|
| 125 | + $html .= ' <td>R$ '.$total.'</td>'; |
|
| 126 | 126 | $html .= ' </tr>'; |
| 127 | 127 | } |
| 128 | 128 | $html .= ' </table>'; |