Receipt Generator
+Fill in the details on the left — the receipt updates live on the right. Your logo and figures never leave this page: there's no server, no upload, no tracking.
+diff --git a/app/main.py b/app/main.py index 16f497b..93eab8e 100644 --- a/app/main.py +++ b/app/main.py @@ -5,6 +5,7 @@ from tools.eib import eib_bp from tools.donor_report import donor_report_bp from tools.financial_reports import financial_reports_bp from tools.payslip import payslip_bp +from tools.receipt import receipt_bp # ── Tool registry ──────────────────────────────────────────────────────────── # Each entry drives one card on the landing page. Add a new tool by @@ -54,6 +55,17 @@ TOOLS = [ "url": "/payslip/", "status": "online", }, + { + "name": "Receipt Generator", + "tagline": "Fill in, preview, download PDF", + "description": ( + "Generates a formatted point-of-sale style receipt from business " + "details, line items, discount/tax/tip, entirely in the browser - " + "nothing is uploaded to a server." + ), + "url": "/receipt/", + "status": "online", + }, ] @@ -67,6 +79,7 @@ def create_app(): app.register_blueprint(donor_report_bp) app.register_blueprint(financial_reports_bp) app.register_blueprint(payslip_bp) + app.register_blueprint(receipt_bp) @app.route("/") def home(): diff --git a/app/tools/receipt/__init__.py b/app/tools/receipt/__init__.py new file mode 100644 index 0000000..76bd565 --- /dev/null +++ b/app/tools/receipt/__init__.py @@ -0,0 +1,3 @@ +from .routes import receipt_bp + +__all__ = ["receipt_bp"] diff --git a/app/tools/receipt/routes.py b/app/tools/receipt/routes.py new file mode 100644 index 0000000..5e7fb62 --- /dev/null +++ b/app/tools/receipt/routes.py @@ -0,0 +1,12 @@ +from flask import Blueprint, render_template + +# Receipt Generator is entirely client-side (form -> live preview -> PDF, +# all in the browser, nothing uploaded) - there's no server-side business +# logic, so unlike this repo's other tools there's no logic.py, just the +# one page route. +receipt_bp = Blueprint("receipt", __name__, url_prefix="/receipt") + + +@receipt_bp.route("/") +def index(): + return render_template("receipt/index.html") diff --git a/templates/receipt/index.html b/templates/receipt/index.html new file mode 100644 index 0000000..fa1bf55 --- /dev/null +++ b/templates/receipt/index.html @@ -0,0 +1,946 @@ + + +
+ + +Fill in the details on the left — the receipt updates live on the right. Your logo and figures never leave this page: there's no server, no upload, no tracking.
+