Skip to content

Business Invoice with Tax Breakdown

Business invoice page with per-line tax rates, a tax summary table by rate, discount, shipping and total, plus a currency switch and print styles for a clean VAT invoice.

Also known as: vat invoice template, invoice with tax summary, multiple tax rates invoice, printable business invoice, html invoice with tax

Business Invoice with Tax Breakdown live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

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-navy and --itx-navy-deep on body in style.css: change the header band and total due colors.
  • --bs-primary-* on body: recolor the buttons, labels and focus rings.
  • CURRENCY_LOCALES in script.js: add currencies or change the number format locale for each one.
  • RATE_LABELS and the <option> values in [data-itx-rate]: match your local tax rates, such as 5% and 19%.
  • data-price on each [data-itx-row]: the unit price used in all calculations.
  • data-itx-date on the date fields: day offsets from today, for example 14 for 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.

Business Invoice with Tax Breakdown at a glance

Framework
Bootstrap 6
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 6, Bootstrap Icons, fonts.googleapis.com
Layout
Responsive, works on mobile
Category
Invoices
License
Free for personal and commercial use

Questions about this template

Can I use the Business Invoice with Tax Breakdown code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 6 and Bootstrap Icons and fonts.googleapis.com from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Business Invoice with Tax Breakdown – free Bootstrap 6 invoice template
Business Invoice with Tax Breakdown · free Bootstrap 6 invoice template