This Bootstrap 6 invoice template is a complete business invoice page with a deep blue header band, company and client details, line items with their own tax rates and a tax summary table by rate. Use it as an invoice example for suppliers and service companies that charge mixed VAT or GST rates.
How it works
.itx-page holds a navbar with a Drawer menu, a toolbar (currency, Send, Print), the .itx-doc invoice and a footer. The .itx-band header holds the issuer, invoice number and dates; .itx-parties lists From, Bill to and Ship to.
Each line item is a tr[data-itx-row] with its unit price in data-price, a quantity input and a tax rate select (0, 10 or 20%). script.js listens for input events and runs recalc(): it multiplies quantity by price, groups the amounts by rate, applies the trade discount to each group, calculates the tax per rate, rebuilds the [data-itx-taxrows] table and fills the totals panel (subtotal, discount, net, tax, shipping, total due). Money is formatted with Intl.NumberFormat; the [data-itx-currency] select switches the format, for example to 2.085,98 € for EUR. Amounts are not converted. Issue, delivery and due dates come from data-itx-date day offsets, so they never go stale. Send is simulated with a timeout, which is where you add fetch().
Customization
--itx-navyand--itx-navy-deeponbodyinstyle.css: change the header band and total due colors.--bs-primary-*onbody: recolor the buttons, labels and focus rings.CURRENCY_LOCALESinscript.js: add currencies or change the number format locale for each one.RATE_LABELSand the<option>values in[data-itx-rate]: match your local tax rates, such as 5% and 19%.data-priceon each[data-itx-row]: the unit price used in all calculations.data-itx-dateon the date fields: day offsets from today, for example14for net 14 terms.- The footer credit links to WebDevSnippets and can be kept or removed.
Use cases
- Wholesale and industrial suppliers: invoice goods, services and books at different VAT rates
- Agencies and consultants: show exempt training next to standard rated work
- Billing dashboards: an invoice preview screen before sending to a client
Accessibility
Each quantity input and tax select has an aria-label naming its item, the item names are row headers, and the tax table has a hidden caption. Totals and send results are announced through a polite role="status" region. The page has a skip link and visible focus rings. Below 576 px every line item turns into a labelled block, so nothing scrolls sideways.
Usage notes
Print styles set an A4 @page, hide the navbar, toolbar and footer credit and print inputs as plain text. Sandboxed previews may block window.print().
Bootstrap 6 notes
The tax and currency selects use form-control, because form-select is gone. Buttons use btn-solid theme-primary and btn-outline, the status uses badge badge-subtle theme-warning, the mobile menu is a <dialog class="drawer"> and the breadcrumb uses breadcrumb-link with breadcrumb-divider. Built on 6.0.0-alpha.1; alpha APIs can still change.