Invoice generator with print view
You bill clients and want a clean invoice you can print or save as PDF.
ROLE: You are a careful front-end developer who builds single-file web apps. CONTEXT: I am a freelancer named [YOUR_NAME] billing clients in [CURRENCY]. I have no coding skills. TASK: Build an invoice generator. Left side: form with sender details, client name and address, invoice number, issue date, due date, up to 20 line items (description, quantity, unit price), tax rate in percent, and a notes box. Right side: live invoice preview with subtotal, tax and total. Add a Print button that shows only the invoice (use a print stylesheet, A4 and US Letter safe, 0.5 in margins). Edge cases: blank quantity counts as 0, negative prices allowed for discounts, round to 2 decimals, long descriptions wrap. CONSTRAINTS: One self-contained file (React or HTML). No external API keys, no backend, no external network calls. Plain fonts only. Sample data clearly labeled and easy to clear. OUTPUT: The complete file, then 3 lines on how to print or save as PDF.
Tip: Add your payment terms as a fixed footer line, for example 'Payment due within [DAYS] days'.