From 9970371a85f88de1ad8bc7b7e28250cfb8f414ee Mon Sep 17 00:00:00 2001 From: Diego Paradeda Date: Thu, 14 Nov 2024 18:14:12 -0300 Subject: [PATCH] [FIX] l10n_br_pos_nfce: fix print receipt page --- .../static/src/css/ReceiptOrder.css | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/l10n_br_pos_nfce/static/src/css/ReceiptOrder.css b/l10n_br_pos_nfce/static/src/css/ReceiptOrder.css index 139fd72477a7..ae20ae6815db 100644 --- a/l10n_br_pos_nfce/static/src/css/ReceiptOrder.css +++ b/l10n_br_pos_nfce/static/src/css/ReceiptOrder.css @@ -9,6 +9,12 @@ background-color: white; } +.pos .pos-receipt-container-nfce > div { + text-align: left; + width: 500px; + display: inline-block; +} + .nfceSeparator { border-style: dotted; } @@ -109,3 +115,40 @@ .itemsTitle { font-size: 16px !important; } + +@media print { + body { + background: white; + } + body * { + visibility: hidden; + height: 0 !important; + } + .pos, + .pos * { + position: static !important; + } + .pos .receipt-screen .pos-receipt-container-nfce { + position: absolute !important; + top: 0; + left: 0; + flex: 0 1 500px !important ; + overflow: auto; + background-color: white; + } + .pos .receipt-screen .pos-receipt-container-nfce, + .pos .receipt-screen .pos-receipt-container-nfce * { + visibility: visible; + background: white !important; + color: black !important; + height: auto !important; + } + .pos .pos-receipt-container-nfce .pos-receipt { + margin: 0 !important; + margin-left: auto !important; + margin-right: auto !important; + border: none !important; + font-size: 14px !important; + width: 500px !important; + } +}