Arkschelphof 13
2492HD Den Haag
Netherlands
info@armor4.com
Invoice / Factuur
Invoice No:
Date:
Due:
Customer:
Address:
| Description | Qty | Price (€) | Total (€) |
|---|---|---|---|
VAT (21%): €0
Payment within 14 days / Betaling binnen 14 dagen
Bank: NL24 INGB 0114 0264 83
let counter = 1;
function generateInvoice() { let year = new Date().getFullYear(); document.getElementById("invNo").innerText = "ARM-" + year + "-" + String(counter).padStart(3,'0'); }
generateInvoice();
function addRow() { let table = document.getElementById("items"); let row = table.insertRow();
for (let i = 0; i < 4; i++) { let cell = row.insertCell(); if (i < 3) { let input = document.createElement("input"); if(i>0) input.type="number"; cell.appendChild(input); } } }
function calculate() { let table = document.getElementById("items"); let subtotal = 0;
for (let i = 1; i < table.rows.length; i++) { let qty = table.rows[i].cells[1].children[0].value || 0; let price = table.rows[i].cells[2].children[0].value || 0; let total = qty * price; table.rows[i].cells[3].innerText = total.toFixed(2); subtotal += total; } let vat = subtotal * 0.21; let grand = subtotal + vat; document.getElementById("sub").innerText = subtotal.toFixed(2); document.getElementById("vat").innerText = vat.toFixed(2); document.getElementById("grand").innerText = grand.toFixed(2); }