A professional and modular invoice generator built for the BitBuilders Fun Code Race.
- Graphical User Interface (GUI): An intuitive window built with Tkinter for easy data entry.
- Multi-Currency Support: Switch between USD and MXN with automatic exchange rate handling.
- Smart Discount Logic: Automatically applies a 10% discount on orders over $500.
- File Persistence: Exports every invoice as a formatted
.txtfile with unique timestamps.
The system follows the Single Responsibility Principle (SRP):
invoice_manager.py: The "Brain". Handles all math, taxes, and discounts.exporter.py: The "Writer". Formats and saves the data to the disk.main.py: The "Face". Reuses the logic to provide a visual experience.
- Ensure you have Python 3 installed.
- (Linux only) Install Tkinter:
sudo apt-get install python3-tk - Run the GUI:
python main.py