This commit removes the confusing default account mapping feature and implements a more reliable offline-first account mirroring system. The changes include: BREAKING CHANGES: - Remove all default account mapping functionality (saveDefaultAccount, getDefaultAccount, etc.) - Simplify account selection to use direct account choice instead of default mapping FEATURES: - Implement account mirroring system that stores all FireFly III accounts locally - Add offline-first approach: server accounts > mirrored accounts > fallback - Automatic account sync when connection is available - Manual sync capability in config screen - Enhanced offline reliability - app works completely without server connection IMPROVEMENTS: - Faster startup times using local account cache - More predictable account selection behavior - Reduced confusion about which accounts are being used - Better error handling for offline scenarios - Simplified architecture without complex default mapping logic |
||
|---|---|---|
| .vscode | ||
| android | ||
| assets/images | ||
| curl_scripts | ||
| ios | ||
| key | ||
| lib | ||
| linux | ||
| macos | ||
| plugins | ||
| test | ||
| web | ||
| windows | ||
| .gitignore | ||
| .metadata | ||
| COMMIT_MESSAGE.txt | ||
| PRINTING_CARD_IMPLEMENTATION.md | ||
| PROJECT_CONTEXT.md | ||
| README.md | ||
| analysis_options.yaml | ||
| devtools_options.yaml | ||
| package-lock.json | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| sample-struk.jpg | ||
README.md
Cashumit
Aplikasi kasir berbasis Flutter dengan fitur:
- Cetak struk ke printer thermal
- Integrasi langsung dengan FireFly III
Cara Menjalankan
- Pastikan Flutter sudah terinstall
- Jalankan perintah berikut:
flutter run
Konfigurasi FireFly III
- Buka aplikasi dan masuk ke menu "Pengaturan"
- Masukkan URL instance FireFly III Anda
- Masukkan Personal Access Token yang dibuat di FireFly III
- Simpan konfigurasi
Pengujian Integrasi FireFly III
Untuk menguji integrasi dengan FireFly III tanpa menjalankan aplikasi Flutter, Anda dapat menjalankan script pengujian:
dart test_firefly_integration.dart
Sebelum menjalankan script, pastikan untuk:
- Mengganti nilai
baseUrldengan URL instance FireFly III Anda - Mengganti nilai
accessTokendengan Personal Access Token yang valid - Mengganti nilai
sourceAccountIddandestinationAccountIddengan ID akun yang valid
Fitur yang Akan Dikembangkan
- Input transaksi kasir
- Cetak struk ke printer thermal (Bluetooth/USB)
- Integrasi API FireFly III untuk pencatatan transaksi
Catatan
- Pastikan printer thermal kompatibel dengan perangkat
- Siapkan API key dan URL FireFly III