diff --git a/gestaoRaul/__pycache__/manage.cpython-313.pyc b/gestaoRaul/__pycache__/manage.cpython-313.pyc
new file mode 100644
index 0000000..5f1a477
Binary files /dev/null and b/gestaoRaul/__pycache__/manage.cpython-313.pyc differ
diff --git a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc
index c516175..7ed29ab 100644
Binary files a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc and b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc differ
diff --git a/gestaoRaul/comandas/templates/viewcomanda.html b/gestaoRaul/comandas/templates/viewcomanda.html
index 29723bb..023a793 100644
--- a/gestaoRaul/comandas/templates/viewcomanda.html
+++ b/gestaoRaul/comandas/templates/viewcomanda.html
@@ -83,7 +83,7 @@ Detalhes {{comanda.name}}
{% for item in consumo%}
- |
+ |
{{item.product.name}}
{% if item.product.cuisine == True %}
@@ -94,6 +94,12 @@ Detalhes {{comanda.name}}
style="width: 25px; height: 35px; cursor: pointer;">
+
+
+
{% endif %}
|
diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3
index 89a83ba..50827e5 100644
Binary files a/gestaoRaul/db.sqlite3 and b/gestaoRaul/db.sqlite3 differ
diff --git a/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-313.pyc b/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-313.pyc
index f853361..dbb2df2 100644
Binary files a/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-313.pyc and b/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-313.pyc differ
diff --git a/gestaoRaul/orders/__pycache__/views.cpython-313.pyc b/gestaoRaul/orders/__pycache__/views.cpython-313.pyc
index 76c0442..debb416 100644
Binary files a/gestaoRaul/orders/__pycache__/views.cpython-313.pyc and b/gestaoRaul/orders/__pycache__/views.cpython-313.pyc differ
diff --git a/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html b/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html
index e352b7f..0f0e725 100644
--- a/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html
+++ b/gestaoRaul/templates/htmx_components/comandas/htmx_list_products_in_comanda.html
@@ -8,7 +8,7 @@
{% for item in consumo%}
-|
+ |
{{item.product.name}}
{% if item.product.cuisine == True %}
@@ -19,6 +19,12 @@
style="width: 25px; height: 35px; cursor: pointer;">
+
+
+
{% endif %}
|
diff --git a/gestaoRaul/templates/static/comandas/js/viewcomanda.js b/gestaoRaul/templates/static/comandas/js/viewcomanda.js
index 6299819..dbb348c 100644
--- a/gestaoRaul/templates/static/comandas/js/viewcomanda.js
+++ b/gestaoRaul/templates/static/comandas/js/viewcomanda.js
@@ -110,6 +110,38 @@ function imprimirFichas() {
console.error(`Element with ID not found`);
}
}
+function printOrder(id) {
+ var item = document.getElementById('id-for-print-'+id).innerText
+ var cliente = document.getElementById('name-comanda').innerText
+ var local = document.getElementById('mesa-comanda').innerText
+ const agora = new Date();
+ var dateString = agora.getDate() + '/' + (agora.getMonth()+1) + '/' + agora.getFullYear() + ' - ' + agora.getHours() + ':' + agora.getMinutes();
+ console.log(item)
+ console.log(cliente)
+ console.log(local)
+ const body = `
+
| ${item} |
+ | ${cliente} |
+ | ${local} |
+ | ${dateString} |
+ `;
+
+ var printWindow = window.open('', '_blank');
+ // printWindow.body.appendChild(body);
+ printWindow.document.write('');
+ printWindow.document.close();
+ printWindow.print();
+ printWindow.close();
+
+ }
function imprimirConta() {
diff --git a/gestaoRaul/templates/static/midia/icons/print.svg b/gestaoRaul/templates/static/midia/icons/print.svg
new file mode 100644
index 0000000..c990033
--- /dev/null
+++ b/gestaoRaul/templates/static/midia/icons/print.svg
@@ -0,0 +1,7 @@
+
+
+
\ No newline at end of file