Skip to content

Commit

Permalink
[IMP] l10n_br_pos_nfce: receipt format
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoParadeda committed Nov 21, 2024
1 parent ad1271d commit 07c69c5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
14 changes: 5 additions & 9 deletions l10n_br_nfe/report/danfe_nfce.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<t t-call="web.html_container">
<div style="font-size: 12px; max-width: 90mm; margin-top: 2mm;">
<div style="text-align: center; margin: 0 auto">
<h2
<h3
style="text-transform: uppercase; font-size: 18px; font-weight: bold;"
><t t-esc="company_legal_name" /></h2>
><t t-esc="company_legal_name" /></h3>
<div style="max-width: 20.5em; text-align: center; margin: 0 auto;">
<p style="margin-bottom: 0;"><t t-esc="company_street" />, <t
t-esc="company_district"
Expand All @@ -15,14 +15,10 @@
/></p>
</div>
<div
style="display: flex; justify-content: space-between; max-width: 20em; margin: 0 auto;"
style="justify-content: space-between; max-width: 20em; margin: 0;"
>
<p style="margin-bottom: 0; padding: 0;">CNPJ: <t
t-esc="company_cnpj"
/></p>
<p style="margin-bottom: 0; padding: 0;">IE: <t
t-esc="company_ie"
/></p>
<p style="padding: 0;">CNPJ: <t t-esc="company_cnpj" /></p>
<p style="padding: 0;">IE: <t t-esc="company_ie" /></p>
</div>
<div>
<p
Expand Down
27 changes: 17 additions & 10 deletions l10n_br_pos_nfce/static/src/css/ReceiptOrder.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,32 @@
}

.pos-receipt-container-nfce {
flex: 0 1 500px !important ;
overflow: auto;
background-color: white;
font-size: 0.75em;
text-align: center;
direction: ltr;
}

.pos .pos-receipt-container-nfce > div {
text-align: left;
width: 500px;
width: 300px;
background-color: white;
/* margin: 20px; */
padding: 15px;
font-size: 16px;
padding-bottom: 30px;
display: inline-block;
border: solid 1px rgb(220, 220, 220);
border-radius: 3px;
overflow: hidden;
}

.nfceSeparator {
border-style: dotted;
}

.nfcePTag {
font-size: var(--fontSizeBody) !important;
margin: 5px auto;
}

Expand All @@ -35,6 +44,7 @@
}

.companyLegalName {
margin: 0.3em auto;
text-transform: uppercase;
font-size: var(--fontSizeBody) !important;
}
Expand All @@ -47,10 +57,9 @@
}

.companyInfo {
display: flex;
justify-content: space-between;
max-width: 20em;
margin: 0 auto;
margin: 0;
}

.companyInfoLine {
Expand Down Expand Up @@ -96,20 +105,19 @@
display: flex;
flex-direction: row-reverse;
align-items: center;
text-align: center;
justify-content: space-between;
margin: 10px 0;
font-size: 12px !important;
}

.consumerNotIdentified {
text-transform: uppercase;
text-align: left;
font-size: 20px !important;
margin: 2px auto;
}

.inContingency {
text-transform: uppercase;
font-size: 22px !important;
}

.itemsTitle {
Expand All @@ -132,7 +140,6 @@
position: absolute !important;
top: 0;
left: 0;
flex: 0 1 500px !important ;
overflow: auto;
background-color: white;
}
Expand All @@ -149,6 +156,6 @@
margin-right: auto !important;
border: none !important;
font-size: 14px !important;
width: 500px !important;
width: 266px !important;
}
}

0 comments on commit 07c69c5

Please sign in to comment.