Spaces:
Running
Running
metadata
title: Invoice Generator
emoji: 💻
colorFrom: gray
colorTo: green
sdk: docker
pinned: false
Quotation Generator
This is a simple client-side application to generate quotations. Fill in your company details, customer details, itemized list, and additional charges. The application calculates totals and allows you to print or save the quotation as PDF.
Usage
- Open
index.html
in a web browser. - Enter your company and customer information.
- Add item rows as needed (auto-generated S.No, description, HSN code, quantity, unit price, discount %).
- Specify IGST rate and freight charges.
- Fill in bank payment details.
- Click Generate Quotation.
- The formatted quotation appears with the total amount shown in words (Rupees and Paise, using Crore/Lakh notation) above the totals.
- Click Print / Save as PDF to export.
Running Tests
Ensure you have Node.js installed, then run:
npm test
Alternatively, to run the tests directly, use:
node tests/test.js
Linting
Install the linting tools:
npm install
To run all linters (Stylelint, ESLint):
npm run lint
Or individually:
npm run lint:css
npm run lint:js
Git Hooks (Husky)
Husky is configured to run tests, linters, and lint-staged automatically on each commit. After installing dependencies, run:
npm run prepare
Now, any git commit
will:
- run
npm test
- run
npm run lint
- run
lint-staged
to fix staged files