Skip to content

About

This is My Personal Business Tracking App

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

Repository files navigation

Satindress Tracker

A comprehensive Android application for tracking the complete lifecycle of dress manufacturing business - from raw material purchase to final sales and profit analysis.

🎯 Features

πŸ“¦ Purchase Management

  • Record cloth purchases with supplier details
  • Track meters, rates, and total costs
  • Payment status tracking (Paid/Pending)
  • Cloth type management with custom types

🎨 Set Templates & Creation

  • Create reusable set templates
  • Define cloth type and meters per set
  • Allocate meters from purchased batches
  • Track leftover materials after set creation

βš™οΈ Processing Board

  • Sutarang β†’ Bandhai β†’ Coloring workflow
  • Track processing stages with worker assignments
  • Monitor cycle times and costs per stage
  • Visual kanban-style board with color-coded stages

πŸ“‰ Loss Management

  • Record losses after coloring stage
  • Track loss sets and meters with reasons
  • Adjust finished quantities automatically

πŸ’° Sales & Receipts

  • Create sales records for finished sets
  • Track customer information and pricing
  • Record receipts and payment modes
  • Monitor pending vs received sales

πŸ’³ Payments & Receipts Master

  • Central payment management for workers
  • Receipt tracking for customers
  • Payment mode tracking (Cash, UPI, Bank Transfer)
  • Summary dashboards with totals

πŸ“Š Reports & Profit Analysis

  • Real-time profit calculation per batch
  • Cost breakdown (Raw materials + Processing costs)
  • Profit percentage analysis
  • Stage-wise cost allocation

πŸ’Ύ Backup & Export

  • CSV export for all data tables
  • Database backup functionality
  • Git backup instructions
  • Data portability and analysis

πŸ—οΈ Architecture

  • UI: Jetpack Compose with Material3 design
  • Database: Room with SQLite
  • Dependency Injection: Hilt
  • Architecture: MVVM with StateFlow
  • Language: Kotlin
  • Minimum SDK: API 31 (Android 12)

🎨 Design System

Color Palette

  • Purchase: Blue (#0369A1) - Primary operations
  • Set Creation: Teal (#0EA5A1) - Template management
  • Sutarang: Yellow (#F59E0B) - First processing stage
  • Bandhai: Orange (#FB923C) - Second processing stage
  • Coloring: Pink (#EC4899) - Final processing stage
  • Sales: Purple (#7C3AED) - Revenue operations

Typography

  • Custom typography scale optimized for business data
  • Clear hierarchy for financial information
  • Accessible contrast ratios

πŸ“± Screens

  1. Dashboard - Overview and quick actions
  2. Purchase - Raw material management
  3. Processing - Stage-wise workflow board
  4. Payments - Worker payment management
  5. Receipts - Customer receipt tracking
  6. Reports - Profit analysis and insights

πŸš€ Getting Started

Prerequisites

  • Android Studio Arctic Fox or later
  • Android SDK 31+
  • Kotlin 1.8+

Installation

  1. Clone the repository
  2. Open in Android Studio
  3. Sync Gradle files
  4. Run on device or emulator

Database Setup

The app uses Room database with automatic migration. No manual setup required.

πŸ’Ό Business Logic

Profit Calculation Formula

Raw Cost = metersConsumed Γ— ratePerMeter
Stage Costs = sum(processing_records.totalAmount)
Total Cost = Raw Cost + Stage Costs
Finished Sets = setsCreated - totalLossSets
Cost per Set = Total Cost Γ· Finished Sets
Profit per Set = Sale Price - Cost per Set
Profit % = (Profit per Set Γ· Cost per Set) Γ— 100

Processing Workflow

  1. Purchase β†’ Raw cloth batches
  2. Template β†’ Define set specifications
  3. Create Sets β†’ Allocate meters from batches
  4. Sutarang β†’ First processing stage
  5. Bandhai β†’ Second processing stage
  6. Coloring β†’ Final processing stage
  7. Loss Entry β†’ Record any losses
  8. Sales β†’ Sell finished sets
  9. Receipts β†’ Track payments received

πŸ”§ Development

Project Structure

app/src/main/java/com/hamid/satindress/
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ entities/          # Room entities
β”‚   β”œβ”€β”€ dao/              # Data access objects
β”‚   β”œβ”€β”€ AppDatabase.kt    # Database configuration
β”‚   β”œβ”€β”€ DataRepository.kt # Repository pattern
β”‚   └── ProfitCalculator.kt # Business logic
β”œβ”€β”€ ui/
β”‚   β”œβ”€β”€ screens/          # Compose screens
β”‚   β”œβ”€β”€ viewmodel/        # ViewModels
β”‚   └── theme/           # Material3 theming
β”œβ”€β”€ di/                  # Dependency injection
└── MainActivity.kt      # Entry point

Key Technologies

  • Room: Local database with Flow support
  • Hilt: Dependency injection
  • Compose: Modern UI toolkit
  • Material3: Latest design system
  • StateFlow: Reactive state management

πŸ“Š Data Model

Core Entities

  • ClothBatch: Raw material purchases
  • SetTemplate: Reusable set specifications
  • CreatedSet: Sets created from batches
  • ProcessingRecord: Stage-wise processing
  • LossRecord: Loss tracking
  • Sale: Sales transactions
  • Payment: Worker payments
  • Receipt: Customer receipts

πŸ”’ Security & Privacy

  • All data stored locally on device
  • No cloud synchronization
  • Export functionality for data portability
  • Git backup for code versioning

πŸ“ˆ Performance

  • Optimized database queries
  • Lazy loading for large datasets
  • Efficient state management
  • Minimal memory footprint

πŸ› Troubleshooting

Common Issues

  1. Database errors: Check Room version compatibility
  2. UI not updating: Verify StateFlow collection
  3. Navigation issues: Check Hilt injection

Debug Tools

  • Database Inspector in Android Studio
  • Layout Inspector for UI debugging
  • Logcat for runtime issues

🀝 Contributing

  1. Fork the repository
  2. Create feature branch
  3. Commit changes
  4. Push to branch
  5. Create Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ“ž Support

For support and questions:

  • Create an issue in the repository
  • Check the documentation
  • Review the code comments

πŸ”„ Version History

  • v1.0.0: Initial release with complete business workflow
  • All milestones (M1-M10) implemented
  • Full feature set for dress manufacturing business

Built with ❀️ for the dress manufacturing industry

About

This is My Personal Business Tracking App

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages