Parcourir la source

wip print documents

3.x
Andrew Wallo il y a 7 mois
Parent
révision
642bbca9b2

+ 3
- 0
resources/css/app.css Voir le fichier

@@ -0,0 +1,3 @@
1
+@tailwind base;
2
+@tailwind components;
3
+@tailwind utilities;

+ 1
- 1
resources/views/filament/infolists/components/document-templates/modern.blade.php Voir le fichier

@@ -91,7 +91,7 @@
91 91
                 </tr>
92 92
             @endforeach
93 93
             </tbody>
94
-            <tfoot class="text-sm tracking-tight">
94
+            <tfoot class="text-sm tracking-tight summary-section">
95 95
             <tr>
96 96
                 <td class="pl-6 py-2" colspan="2"></td>
97 97
                 <td class="text-right font-semibold py-2">Subtotal:</td>

+ 15
- 0
resources/views/print-document.blade.php Voir le fichier

@@ -54,6 +54,21 @@
54 54
                 overflow: hidden !important;
55 55
                 max-height: none !important;
56 56
             }
57
+
58
+            .modern-template-line-items .summary-section {
59
+                display: table-row-group;
60
+                page-break-inside: avoid;
61
+            }
62
+
63
+            .modern-template-line-items tr {
64
+                page-break-inside: avoid;
65
+                page-break-after: auto;
66
+            }
67
+
68
+            .modern-template-footer {
69
+                page-break-inside: avoid;
70
+                page-break-before: auto;
71
+            }
57 72
         }
58 73
     </style>
59 74
 </head>

+ 1
- 0
vite.config.js Voir le fichier

@@ -6,6 +6,7 @@ export default defineConfig({
6 6
         laravel({
7 7
             input: [
8 8
                 'resources/js/app.js',
9
+                'resources/css/app.css',
9 10
                 'resources/css/filament/company/theme.css',
10 11
                 'resources/css/filament/user/theme.css',
11 12
             ],

Chargement…
Annuler
Enregistrer