Overview
The Herramientas (Tools) module provides a collection of utility features designed to streamline your daily business operations. From financial calculators to document management, this module brings together essential tools in one convenient location.Key Features
Discount Calculator
Calculate discounts, final prices, and savings with multi-input support
Document Viewer
Access and view stored PDF documents from Firebase Storage
File Search
Quickly find documents with real-time search filtering
Price Calculations
Compute original prices, discounts, and total amounts
Discount Calculator
How It Works
The discount calculator supports multiple input scenarios and automatically calculates missing values:Input Fields
Original Value (Valor Original)
Original Value (Valor Original)
The initial price before any discount is applied. Enter this value if you know the starting price.
Discount Percentage (Porcentaje)
Discount Percentage (Porcentaje)
The discount rate to apply (e.g., 20 for 20% off). The calculator will compute the discount amount and final price.
Discount Amount (Valor Descontado)
Discount Amount (Valor Descontado)
The absolute amount being discounted. If you enter this, the calculator can determine the percentage and original value.
Total to Pay (Total a Pagar)
Total to Pay (Total a Pagar)
The final price after discount. Enter any two values, and the calculator will compute the rest.
Calculation Scenarios
- Scenario 1: Know Original + Percentage
- Scenario 2: Know Final Price + Discount Amount
- Scenario 3: Know Final Price + Percentage
Input:
- Original Value: $100,000
- Discount: 20%
- Discount Amount: $20,000
- Total to Pay: $80,000
Interactive Calculation
The calculator updates in real-time as you type:The calculator prevents calculation loops by tracking which fields are being actively edited.
Document Viewer
Firebase Storage Integration
The document viewer connects to Firebase Storage to retrieve and display uploaded PDF files:Document Access
Load file list
All available PDFs are retrieved from Firebase Storage and displayed as clickable cards.
Search Functionality
The integrated search system allows you to quickly find documents:Search Features
- Real-time filtering: Results update as you type
- Case-insensitive: Searches work regardless of capitalization
- Clear button: Quick reset to show all documents
- Visual feedback: Hidden documents are removed from view
User Interface
The Tools module features a clean, modular design:Layout Structure
Responsive Design
The layout adapts to different screen sizes:Advanced Features
Number Formatting
All currency inputs are automatically formatted with thousand separators for better readability:- Input:
100000 - Display:
100.000
Input Validation
The calculator validates input to prevent errors:- Accepts only numeric values
- Handles decimal places
- Prevents negative values
- Auto-corrects invalid percentages (>100%)
Integration with Firebase
The Tools module leverages Firebase for:- Authentication: Only authenticated users can access documents
- Storage: PDFs are stored in Firebase Cloud Storage
- Real-time Access: Document list updates when new files are uploaded
Best Practices
Regular Updates
Clear the search field and refresh the document list periodically to see newly uploaded files
Naming Conventions
Use descriptive filenames for documents to make searching easier
Calculator Accuracy
Always enter at least two values in the discount calculator for accurate results
Browser Compatibility
Use a modern browser with popup blocker disabled for viewing documents
Related Resources
Firebase Integration
Learn how Firebase powers the Tools module
User Guide
Export and share your calculations
