Last active
December 2, 2022 16:53
-
-
Save cesgarma/1a34755cbf786f2d87828d1a7a4cb449 to your computer and use it in GitHub Desktop.
The OpenPOS topbeer.mx Receipt template.
Store here just in case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1{ | |
font-size: 1.5em; | |
color: #000; | |
} | |
h2{font-size: .9em;} | |
h3{ | |
font-size: 1.2em; | |
font-weight: 300; | |
line-height: 2em; | |
} | |
p{ | |
font-size: .7em; | |
color: #000; | |
line-height: 1.2em; | |
} | |
#top, #mid,#bot{ | |
border-bottom: 1px solid #000; | |
} | |
#top{ | |
min-height: 100px; | |
text-align: center; | |
} | |
#mid{min-height: 80px;} | |
#bot{ min-height: 50px;} | |
#top .logo{ | |
height: 50px; | |
width: 60px; | |
background-size: 60px 60px; | |
text-align: center; | |
margin: auto; | |
} | |
#top .logo img { | |
width: 40px; | |
} | |
.clientlogo{ | |
float: left; | |
height: 60px; | |
width: 60px; | |
background-size: 60px 60px; | |
border-radius: 50px; | |
} | |
.info{ | |
display: block; | |
margin-left: 0; | |
} | |
.info p{ | |
margin: 0; | |
padding: 0 2px; | |
} | |
.title{ | |
float: right; | |
} | |
.title p{text-align: right;} | |
table{ | |
width: 100%; | |
border-collapse: collapse; | |
} | |
.tabletitle{ | |
font-size: .5em; | |
} | |
.items-table-label{ | |
border-bottom:solid 1px #000; | |
} | |
.service{border-bottom: 1px dotted #000;} | |
.item{width: 24mm;} | |
.itemtext{ | |
font-size: .5em; | |
margin-bottom:0; | |
display: inline-block; | |
} | |
.option-item{ | |
font-size: .5em; | |
font-style: italic; | |
display: block; | |
color: #000; | |
} | |
#legalcopy{ | |
margin-top: 5mm; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="top"> | |
<div class="logo"> | |
<img src="https://updates.topbeer.mx/wp-content/uploads/2018/11/logo1.png"></div> | |
<div class="info"> | |
<h2>Pedido: <%= order_number_format %></h2> | |
</div> | |
</div> | |
<div id="mid"> | |
<div class="info"> | |
<p>Nota: <%= note %></p> | |
<p>Fecha: <%= created_at %></p> | |
<p>Cajero : <% if(typeof sale_person_name != "undefined") { %> <%= sale_person_name %> <% } %> </p> | |
</div> | |
<table> | |
<tr class="tabletitle items-table-label"> | |
<td class="item"><h2>Item</h2></td> | |
<td class="qty"><h2>Price</h2></td> | |
<td class="qty"><h2>Qty</h2></td> | |
<td class="total"><h2>Total</h2></td> | |
<td class="total"><h2>Discount</h2></td> | |
<td class="total"><h2>Tax</h2></td> | |
<td class="total"><h2>Total incl_tax</h2></td> | |
</tr> | |
<% items.forEach(function(item){ %> | |
<tr class="service"> | |
<td class="tableitem item-name"> | |
<p class="itemtext"><%= item.name %></p> | |
<% if(item.sub_name.length > 0){ %> | |
<p class="option-item"> <%- item.sub_name %> </p> | |
<% }; %> | |
</td> | |
<td class="tableitem item-price"> | |
<p class="itemtext"> | |
<% if( item.price_currency_formatted != item.final_price_currency_formatted ) {%> | |
<span style="text-decoration: line-through;"><%= item.price_currency_formatted %></span> | |
<% }; %> | |
<%= item.final_price_currency_formatted %> | |
</p> | |
</td> | |
<td class="tableitem item-qty"><p class="itemtext"><%= item.qty %></p></td> | |
<td class="tableitem item-total"><p class="itemtext"><%= item.total_currency_formatted %></p></td> | |
<td class="tableitem item-total"><p class="itemtext"><%= item.final_discount_amount_currency_formatted %></p></td> | |
<td class="tableitem item-total"><p class="itemtext"><%= item.tax_amount_currency_formatted %></p></td> | |
<td class="tableitem item-total"><p class="itemtext"><%= item.total_incl_tax_currency_formatted %></p></td> | |
</tr> | |
<% }); %> | |
<tr class="tabletitle"> | |
<td class="Rate sub-total-title" style="text-align:right;padding-right:5px;" colspan="6"><h2>Subtotal</h2></td> | |
<td class="payment sub-total-amount"><h2><%= sub_total_currency_formatted %></h2></td> | |
</tr> | |
<tr class="tabletitle"> | |
<td class="Rate tax-title" style="text-align:right;padding-right:5px;" colspan="6"><h2>Descuento</h2></td> | |
<td class="payment cart-discount-amount"><h2><%= final_discount_amount_currency_formatted %></h2></td> | |
</tr> | |
<tr class="tabletitle"> | |
<td class="Rate tax-title" style="text-align:right;padding-right:5px;" colspan="6"><h2>IVA</h2></td> | |
<td class="payment tax-amount"><h2><%= tax_amount_currency_formatted %></h2></td> | |
</tr> | |
<tr class="tabletitle"> | |
<td class="Rate grand-total-title" style="text-align:right;padding-right:5px;" colspan="6"><h2>Total</h2></td> | |
<td class="payment grand-total-amount"><h2><%= grand_total_currency_formatted %></h2></td> | |
</tr> | |
</table> | |
<p style="text-align:center;">[order_qrcode width="100" height="100"] </p> | |
<div id="legalcopy"> | |
<p class="legal"><strong>¡Salud y gracias por tu compra!</strong></p> | |
<p>Compra en línea: <strong>topbeer.mx</strong></p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hola buenas como podria colocar el sku en este tiket de venta?