feat: Add automatic anticipo notes to tickets and optimize for 58mm printers

- Add automatic notes for anticipo tickets with commitment and cancellation policy
- Optimize ticket layout for 58mm thermal printers (reduced from 72mm)
- Improve ticket spacing with better margins (0.1cm/0.05cm)
- Add proper capitalization for service titles (e.g. "anticipo" → "Anticipo")
- Enhance total amount formatting with larger font size (15px) and better spacing
- Add visual separation between payment method and staff information

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Marco Gallegos
2025-09-14 08:36:50 -06:00
parent 2b1438a064
commit 9559652f40
4 changed files with 40 additions and 11 deletions

View File

@@ -870,11 +870,11 @@ button.action-btn {
/* Estilos del Ticket */
.ticket {
width: 72mm;
max-width: 72mm;
width: 58mm;
max-width: 58mm;
background: #fff;
color: #000;
padding: 8px 2px;
padding: 6px 1mm;
box-sizing: border-box;
font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
border: 1px solid #ccc; /* Visible en pantalla, no en impresión */
@@ -895,12 +895,18 @@ button.action-btn {
.t-small { font-size: 11px; line-height: 1.3; }
.t-service-title { margin-bottom: 6px; font-size: 12px; }
.t-service-detail { margin-bottom: 3px; }
.t-anticipo-note {
word-wrap: break-word;
width: 100%;
text-align: left;
line-height: 1.4;
}
.t-divider { border-top: 1px dashed #000; margin: 8px 0; }
.t-row { display: flex; justify-content: space-between; margin-bottom: 2px; }
.t-row-label { font-weight: bold; }
.t-service-detail-label { font-weight: bold; }
.t-footer { margin-top: 10px; }
.t-total-large { font-size: 13px; }
.t-total-large { font-size: 15px; margin: 6px 0; }
.t-qr-section {
margin-top: 12px;
@@ -962,15 +968,15 @@ button.action-btn {
}
@page {
size: 72mm auto;
margin: 0.3cm 0.1cm;
size: 58mm auto;
margin: 0.1cm 0.05cm;
}
/* Configuración adicional para impresión PDF */
@media print {
body {
width: 72mm !important;
max-width: 72mm !important;
width: 58mm !important;
max-width: 58mm !important;
}
}