Repository navigation
Enhance fines management with points history and PDF receipt features - #83
Merged
Merged
Conversation
…d_until and some files updates...
Update shema add the new attribute in model license table to suspend…
Fix merge issues and add Git working app code
…nto feature/driver-app-ui-pages
Updated AuthRequest interface to use 'id' instead of 'sub' for user identification in password change methods.
…nto feature/driver-app-ui-pages
…sh/Auto-Ledger into feature/driver-app-ui-pages
- Replace static TweenAnimationBuilder dots with a repeating AnimationController - Implement staggered phases (0.0, 0.33, 0.66) for wave-like pulsing effect - Switch from SingleTickerProviderStateMixin to TickerProviderStateMixin to support multiple animation controllers - Add import for dart:math for trigonometric pulse calculations
Features Added: 1. Points History Tab - Third tab in fines screen showing cumulative demerit points - Timeline view with individual fine points and running total - Displays fine ID, date, officer, and status for each entry - Color-coded items (orange for pending, green for paid) 2. PDF Receipt Download - Receipt button for each paid fine - Generates PDF with fine details, offenses, and payment info - Prints/downloads receipt using printing package - Professional receipt layout with Auto-Ledger branding Dependencies Added: - pdf: ^3.10.4 - printing: ^5.11.1 - path_provider: ^2.1.2 Files Changed: - lib/screens/fines_screen.dart (points history + receipt button) - lib/services/pdf_service.dart (new file) - pubspec.yaml (dependencies)
Description: - Add license dashboard with glass-morphism design - Add fines screen with pending/paid tabs and points history - Add profile screen with biometric toggle and password change - Add biometric login with NIC auto-save - Add PDF receipt download for paid fines - Add device verification with OTP - Build release APK with signing configuration
vthish
added a commit
that referenced
this pull request
Jun 27, 2026
Enhance fines management with points history and PDF receipt features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant changes to the fines and licensing system, focusing on improved handling of fines, license status automation, and enhanced data relationships. The main themes are: stricter device login handling, improved fine issuance and payment logic, enhanced data modeling for officers and scans, and more robust automation around license activation and suspension.
Key changes include:
Fines and License Status Logic Improvements
scanToken(JWT) to securely associate fines with licenses, and introduces automatic handling of overdue fines and license activation/suspension based on point thresholds and court cases. Points now accumulate upwards, triggering suspensions and revocations at 24, 50, and 100 points respectively. [1] [2]Data Model and Schema Enhancements
QR_Scan_Historynow referencesTraffic_Officer, andTemporary_Licenserecords the issuing officer.Traffic_Officeris related to both QR scans and temporary licenses. [1] [2] [3]Fine_Statusenum introduces a newCOURT_CASEstatus, andDriving_Licensepoints now start at 0 instead of 24, with a newsuspended_Untilfield to track suspension periods. [1] [2]Security and Authentication
AuthRequestinterface and password change logic are simplified to useidinstead ofsubfor user identification. [1] [2] [3]API and Service Additions
FinesServicenow injectsJwtServicefor scan token verification and is registered in the module. [1] [2]General Robustness
These changes collectively make the fines and licensing system more secure, maintainable, and aligned with real-world business rules.
References: