How hanselt/cotizaciones works
Cotizaciones is a small browser-based quotation generator. The user enters client details and line items; the app calculates each line total plus subtotal, 18% IGV, and total, then overlays the quote data onto the supplied PDF template and downloads the result. The sampled JavaScript supports these workflow links; the HTML and styling files are present in the tree, but their contents were not sampled.
Main entry points: script.js PDF generator · index.html Quote form · cotizacion.pdf PDF template
Components 8
Quote entry
- Quote form
index.html - Line-item editor
script.js
Quote totals
- Totals calculator
script.js
PDF generation
- PDF template
cotizacion.pdf - PDF generator
script.js - PDFLib
- Downloaded quote
Other components
- User
Connections 8
- User → Quote form: enters details
- Quote form → Line-item editor: captures items
- Line-item editor → Totals calculator: updates totals
- User → PDF generator: requests PDF
- PDF generator → Quote form: reads quote data
- PDF generator → PDF template: fetches template
- PDF generator → PDFLib: loads and edits
- PDF generator → Downloaded quote: downloads PDF