here is a little summary of my learnings about the
invoice layout with HTML code and CSS syling,
which I found neither in the wiki nor forum. In case of any questions or if it helps, please leave a reply
CSS styling to right align all number columns including their headers (Quantity, Price, VAT, VAT%, Total)
- Insert the following code here:
Settings > Guest Management > Styling > Print Template Custom CSS:Code: Select all
.conf_vattotal { text-align:right; } .conf_subheadercenter, .conf_numbercenter{ text-align: right !important; }
- Insert the following code here to show the invoice table:
Settings > Guest Management > Invoicing > Invoice Template 1, 2 or 3 > edit > Quellcode (source code):Code: Select all
[INVOICE:QTY_PRI_VAP_VAA_TOT_CUA€_VAT_GRT]
- Insert the following code here to extend the width of the invoice table:
Settings > Guest Management > Styling > Print Template Custom CSS:Code: Select all
table.confirmationtable{ width:920px !important; }
- Insert the following code here to show the footer:
Settings > Guest Management > Invoicing > Invoice Template 1, 2 or 3 > edit > Quellcode (source code):Remark: <strong></strong> is optional to make the (part of) the footer bold.Code: Select all
<div style="text-align: center; position: absolute; bottom: -410px; left: 15%; "><span style="font-size:16px;"><strong>PUT HERE YOUR FOOTER LINES</strong></span></div>
Remark2: <span style="font-size:16px;"></span> is optional to put the font-size to 16px
- Insert the following code here to stick the footer to the bottom of the page:
Settings > Guest Management > Styling > Print Template Custom CSS:Code: Select all
#editor1{ height: 25.7cm; display: grid; grid-template-columns: 1fr; }
- Insert the following code here to show the invoice table:
Settings > Guest Management > Invoicing > Invoice Template 1, 2 or 3 > edit > Quellcode (source code):Code: Select all
<div style="margin-left: 40px;"><span style="font-size:12px;">w724 UG - Ettlinger Str. 22 - D-76337 Waldbronn</span></div> <p style="margin-left: 40px;"><br /> <span style="font-size:18px;">[IF=^[GUESTCOMPANY]^^[GUESTTITLE]<br /> ~][IF=^[GUESTCOMPANY]^^[GUESTFIRSTNAME] [GUESTNAME]<br /> ~][IF=^[GUESTCOMPANY]^^~[GUESTCOMPANY]<br /> ][IF=^[GUESTCOMPANY]^^[GUESTADDRESS]~[GUESTADDRESS]]<br /> [IF=^[GUESTCOMPANY]^^[GUESTPOSTCODE] [GUESTCITY]~[GUESTPOSTCODE] [GUESTCITY]]<br /> [IF=^[GUESTCOUNTRY2]^DE^~[GUESTSTATE]<br /> ][IF=^[GUESTCOUNTRY2]^DE^~[GUESTCOUNTRY]]</span></p>
However, there is still room for improvement and fine tuning like
- While VAP shows 7% without decimals, VAT_GRT shows 7.00% with 2 decimals - no clue how to fix this inconsitancy.
- Actually the footer is centered with "left: 15% and I assume that there is a better code with "centered" instead "left".
https://pasteboard.co/Havqzv3wGfps.png
Best regards,
Rico