Guest

Merged prompt

Feb 19th, 2026
3
0
Never
Not a member of gistpad yet? Sign Up, it unlocks many cool features!
None 136.48 KB | None | 0 0
  1. # ๐Ÿช ULTIMATE PREMIUM RETAIL BUSINESS MANAGEMENT APP โ€” COMPLETE MERGED PROMPT
  2.  
  3. ---
  4.  
  5. ## โš ๏ธ CRITICAL DEVELOPMENT RULES (READ FIRST)
  6.  
  7. ```
  8. #REMEMBER:
  9. "Do not start a new project or rewrite big parts.
  10. Only add or minimally change code to implement what I ask.
  11. Keep all existing screens, flows, models, and data working exactly as before.
  12. Do not rename or delete any classes, files, functions, or fields unless I clearly say so.
  13. Modify only the necessary parts and mark them with // NEW or // UPDATED".
  14. ```
  15.  
  16. ---
  17.  
  18. ## ๐Ÿ“‹ MVP vs Future Phases Tagging System
  19.  
  20. Mark every feature as:
  21. | Tag | Meaning |
  22. |-----|---------|
  23. | **[PHASE 1 - MVP]** | Core features for initial launch |
  24. | **[PHASE 2]** | Important features for 2nd release |
  25. | **[PHASE 3]** | Advanced/Premium features for later |
  26.  
  27. **Feature Flags / Remote Config Requirement:**
  28. - Implement a remote-config system (Firebase Remote Config).
  29. - Turn individual features ON/OFF per shop without app update.
  30. - Examples: Gamification, CRM, Supplier Module, Advanced AI Features.
  31. - Owner can enable/disable modules from settings.
  32.  
  33. ---
  34.  
  35. Build a premium, production-ready business management mobile app for a retail store with **1 Owner** and **multiple Staff members**, each using login/signup on separate devices.
  36.  
  37. Use a **real-time cloud database (Firebase)** with **offline support + auto-sync**.
  38.  
  39. ---
  40.  
  41. ## ๐Ÿ” Authentication & Security [PHASE 1 - MVP]
  42.  
  43. ### Owner Signup/Login:
  44. - Email + Password registration.
  45. - Phone number (OTP) login option.
  46. - Biometric login (Fingerprint / Face ID) after first login.
  47. - 4-digit Security PIN as backup login.
  48. - "Forgot Password" with email reset link.
  49.  
  50. ### Staff Signup/Login:
  51. - Owner generates a unique **Staff Invite Code** or **QR Code**.
  52. - Staff joins shop using invite code + creates personal profile.
  53. - Staff profile includes: Name, Photo, Phone, Role Tag (Cashier / Manager / Helper).
  54. - Staff cannot access app until Owner **approves** their join request.
  55.  
  56. ### Session Management:
  57. - Auto logout after inactivity (configurable: 5 / 15 / 30 min / Never).
  58. - Owner can **remotely force logout** any staff device instantly.
  59. - Track all login/logout timestamps with device info.
  60.  
  61. ### Anti-Screenshot Mode (Owner Toggle):
  62. - Prevent staff from taking screenshots of sensitive data (sales, profits, analytics).
  63.  
  64. ### Two-Factor Authentication (2FA): [PHASE 2]
  65. - Optional 2FA for Owner login (extra security layer).
  66.  
  67. ### Panic Mode / Stealth Lock:
  68. - Owner can set a secret PIN that, when entered, hides all sensitive data (profit, analytics, expenses) โ€” useful when showing the phone to others.
  69. - Voice command: "Safety lock" / "Stealth mode on karo" triggers this mode.
  70.  
  71. ---
  72.  
  73. ## ๐ŸŽจ UI & Layout [PHASE 1 - MVP]
  74.  
  75. ### Theme Options:
  76. - ๐Ÿ”ต **GRADIENT BLUE** โ€” Clean gradient-based professional look.
  77. - ๐ŸŸค **CLAYMORPHISM** โ€” Soft 3D clay-style card elements.
  78. - ๐Ÿ”ถ **POLYMORPHISM** โ€” Multi-layered depth UI with shadows.
  79. - ๐Ÿ”ฎ **GLASSMORPHISM** โ€” Frosted glass transparent panels with blur.
  80. - ๐ŸŒ™ **DARK MODE (AMOLED BLACK)** โ€” True black dark theme for OLED screens.
  81. - ๐ŸŒˆ **CUSTOM THEME** โ€” Owner picks primary, secondary, accent colors manually.
  82.  
  83. *(Each theme must have its own distinct layout structure, card designs, badges, icons, button styles, and premium visuals.)*
  84.  
  85. ### Splash Screen:
  86. - Animated premium splash with shop logo + app branding on launch.
  87.  
  88. ### Onboarding Screens (First Time Only):
  89. - 3โ€“4 swipeable intro screens explaining app features with Lottie animations.
  90. - "Get Started" โ†’ Signup/Login.
  91.  
  92. ### Owner Onboarding Wizard [PHASE 1 - MVP]: // NEW
  93. After first login, a 5โ€“10 step wizard:
  94. 1. Add basic shop details (Name, Logo, Address, GST).
  95. 2. Add key categories and 10โ€“20 top items.
  96. 3. Select modules to enable (Udhar, CRM, Suppliers, Gamification).
  97. 4. Set up first staff member (optional).
  98. 5. Choose theme and language.
  99. 6. Quick billing tutorial.
  100.  
  101. *This prevents overwhelming new users.*
  102.  
  103. ### Contextual Tooltips & "First Time" Guides: // NEW
  104. - On every new screen, show subtle guided tips (coach-marks).
  105. - Explain 6โ€“7 important buttons the first time only.
  106. - "Don't show again" option.
  107. - "Reset tips" option in settings.
  108.  
  109. ### Animations & Transitions:
  110. - Page transitions (slide, fade, scale).
  111. - Button press ripple effects.
  112. - Card expand/collapse animations.
  113. - Pull-to-refresh with custom animation.
  114. - Skeleton loading screens (not just spinners).
  115. - Haptic feedback on key actions (bill save, delete, etc.).
  116.  
  117. ### Floating Action Buttons (FAB):
  118. - Expandable FAB (tap โ†’ shows: Add Item, New Bill, Add Customer, Add Expense).
  119.  
  120. ### Header (Top Bar):
  121. - Left: Shop Logo (circular/rounded) + Shop Name (stylized).
  122. - Center: Current screen title.
  123. - Right: Notification Bell (with red badge count) + Overflow Menu (โ‹ฎ).
  124.  
  125. ### Bottom Navigation (fixed, always visible, 5 tabs):
  126. - ๐Ÿ  Dashboard | ๐Ÿงพ Billing | ๐Ÿ“’ Udhar Ledger | ๐Ÿ“Š Analytics | โš™๏ธ Settings
  127. - Active tab: Animated icon + label + accent color highlight.
  128. - Inactive: Muted icon, no label.
  129. - Smooth tab-switch animation.
  130.  
  131. ### Clear Visual Difference Between Modes:
  132. - ๐Ÿ”’ **Staff Mode** โ€” Locked features greyed out with lock icon overlay + "Owner Only" badge.
  133. - ๐Ÿ”“ **Owner Mode** โ€” Full access, all features unlocked, gold/premium badge shown.
  134.  
  135. ### Product Images:
  136. - Shown in item list (grid view + list view toggle).
  137.  
  138. ### Bill Animation:
  139. - Professional, smooth Lottie animation when a bill is generated.
  140. - Examples: receipt printing effect, checkmark burst, confetti for big sales.
  141.  
  142. ### Quick Edit Bill:
  143. - Swipe on recent bill โ†’ Edit option.
  144. - Owner can set time limit for edits (e.g., within 30 min / 1 hour / same day).
  145.  
  146. ### Multi-language Support:
  147. - ๐Ÿ‡ฌ๐Ÿ‡ง ENGLISH
  148. - ๐Ÿ‡ฎ๐Ÿ‡ณ HINGLISH
  149. - ๐Ÿ‡ฎ๐Ÿ‡ณ HINDI (เคนเคฟเค‚เคฆเฅ€)
  150. - ๐Ÿ‡ฎ๐Ÿ‡ณ MARATHI (เคฎเคฐเคพเค เฅ€)
  151. - Language selector in settings + first-time setup.
  152. - All labels, buttons, messages, notifications, AI responses change accordingly.
  153.  
  154. ### Advanced Localization Infrastructure: // NEW
  155. - All texts via localization files (ARB/JSON).
  156. - Ability to push updated translations without full app update.
  157. - Structure ready for adding more languages later.
  158.  
  159. ### Home Screen Widget: [PHASE 2]
  160. - Small widget: Today's Sale + Today's Profit + Quick Bill button.
  161. - Medium widget: Top 3 selling items + sales graph mini preview.
  162.  
  163. ### Notification Center (In-App):
  164. - Dedicated notification screen (bell icon tap).
  165. - Categories: Stock Alerts, Udhar Reminders, Staff Activity, Payment Received, AI Alerts, System.
  166. - Mark as read / Clear all.
  167.  
  168. ### Quick Actions from App Icon (Long Press):
  169. - New Bill, Search Item, Today's Sales, Open AI Assistant.
  170.  
  171. ### System-Wide Search (Command Palette): // NEW [PHASE 2]
  172. - Global search bar (or voice command).
  173. - Search across: Items, Customers, Udhar, Bills, Settings, Help Articles.
  174. - Keyboard shortcut support (for tablets with keyboards).
  175. - Recent searches history.
  176. - AI-powered fuzzy search.
  177.  
  178. ---
  179.  
  180. ## ๐Ÿค– AI Assistant (Left Side โ€” Persistent) [PHASE 1 - MVP]
  181.  
  182. ### Placement & Appearance:
  183. - Persistent floating icon/handle on every screen (left side).
  184. - Tap โ†’ Opens AI chat/command panel (slide-in from left).
  185. - Long press (3 seconds) on Dashboard โ†’ Opens **Camera for Barcode Billing**.
  186. - Drag handle up/down to reposition.
  187.  
  188. ### AI Visual Design:
  189. - Well-designed, BIG, visually premium AI panel.
  190. - Animated AI avatar/mascot (e.g., friendly robot or shop assistant character).
  191. - Chat-style interface with speech bubbles.
  192. - Microphone button (hold to speak / tap to toggle).
  193. - Text input option for typing commands.
  194.  
  195. ### AI Voice System:
  196. - Communicates through **voice output** (Text-to-Speech with natural voice).
  197. - Supports multiple languages: ENGLISH, HINGLISH, HINDI, MARATHI.
  198. - When user says a language name (e.g., "Hindi"), AI switches to that language.
  199. - Voice speed adjustable (Slow / Normal / Fast).
  200. - Male/Female voice option.
  201.  
  202. ### Central AI Settings Panel (Owner Control): // NEW
  203. One centralized place to control:
  204. - Which AI features are enabled (camera, voice, fraud detection).
  205. - Data used by AI (e.g., allow/not allow customer text analysis).
  206. - Language, tone, and level of automation.
  207. - Voice preferences (speed, gender).
  208. - **Staff cannot change these settings.**
  209.  
  210. ---
  211.  
  212. ### ๐ŸŽ™๏ธ AI Core Capabilities [PHASE 1 - MVP]
  213.  
  214. #### Voice-Controlled Full App:
  215. Complete app navigation via voice commands:
  216. - "Open Billing" โ†’ navigates to Billing tab.
  217. - "Go to Dashboard" โ†’ switches to Dashboard.
  218. - "Show Analytics" โ†’ opens Analytics.
  219. - "Open Settings" โ†’ opens Settings.
  220. - "Search [item name]" โ†’ searches item.
  221. - "Open Udhar" โ†’ opens Ledger.
  222. - "Show today's sales" โ†’ displays today's summary.
  223. - "Show notifications" โ†’ opens notification center.
  224.  
  225. #### Voice Billing (Full Flow):
  226. Create complete bills by speaking:
  227. - "New Bill" โ†’ starts fresh bill.
  228. - "Add [Product Name] [Quantity]" โ†’ adds item (e.g., "Add Maggi 5").
  229. - "Remove [Product Name]" โ†’ removes item from bill.
  230. - "Change quantity of [Product Name] to [number]" โ†’ edits quantity.
  231. - "Apply 10% discount" โ†’ applies discount.
  232. - "Total kitna hai?" (Hinglish) โ†’ AI speaks total amount.
  233. - "Bill save karo" โ†’ saves bill.
  234. - "Print karo" โ†’ generates PDF/print.
  235. - "Customer name [Name], number [Number]" โ†’ adds customer details.
  236. - "Udhar mein daalo" โ†’ converts to credit bill.
  237. - "Payment mode cash/online/UPI" โ†’ sets payment method.
  238.  
  239. #### Voice Item Creation:
  240. Add new inventory items entirely via voice:
  241. - "Add new item" โ†’ starts item creation.
  242. - "Name: Parle G" โ†’ sets name.
  243. - "Price: 10 rupees" โ†’ sets price.
  244. - "Stock: 50" โ†’ sets quantity.
  245. - "Category: Biscuits" โ†’ sets category.
  246. - "GST: 5 percent" โ†’ sets tax.
  247. - "Save item" โ†’ saves to inventory.
  248.  
  249. #### AI Camera Billing:
  250. - Take photo of items on counter โ†’ AI detects items using image recognition โ†’ auto-creates bill.
  251. - Works with common retail products (packaged goods with visible labels).
  252. - If item not recognized: AI asks "Yeh kya item hai?" and lets user confirm/correct.
  253. - Batch scan: Take photo of multiple items at once.
  254.  
  255. #### AI Camera Stock Count:
  256. - Take photo of shelf โ†’ AI counts visible items โ†’ compares with inventory records โ†’ flags mismatches.
  257.  
  258. #### Barcode Billing (Long Press AI Button):
  259. - Opens camera in barcode scanning mode.
  260. - Scan product barcode โ†’ item auto-added to bill.
  261. - Continuous scan mode: Scan multiple items one after another.
  262. - Beep sound + vibration on successful scan.
  263. - If barcode not in inventory โ†’ AI asks "Add new item with this barcode?"
  264.  
  265. ---
  266.  
  267. ### ๐ŸŽฏ Custom Voice Commands / Macros (Owner-Defined) // NEW [PHASE 2]
  268.  
  269. Owner can define custom shortcuts:
  270.  
  271. | Voice Command | Action |
  272. |---------------|--------|
  273. | "Evening report" | Opens analytics, reads short summary, shows Udhar due |
  274. | "Check staff today" | Opens staff analytics + attendance |
  275. | "Open shop checklist" / "Dukaan kholne ka checklist chalu karo" | Starts Opening Checklist (shutters, fridges, cash count, cleaning) โ†’ Mark tasks done โ†’ Save log |
  276. | "Start festival mode [festival name]" / "Festival mode Diwali on karo" | Enable Festival Mode โ†’ Load last year's data โ†’ Show suggestions |
  277. | "Aaj ka staff report dikhao" | Opens Staff Analytics โ†’ Shows presence, bills, revenue, refunds, leaderboard |
  278. | "Udhar follow-ups" / "Aaj kiska udhar vasool karna hai?" | Opens Udhar filtered to "Due today + Overdue" โ†’ Reads names + amounts โ†’ Offers batch WhatsApp reminders |
  279. | "Supplier summary" / "Supplier ka hisaab batao" | Opens Supplier overview โ†’ Shows outstanding dues, pending orders |
  280. | "Big spenders list" / "Is mahine ke top customers dikhao" | Opens Customer Analytics โ†’ Filters last 30 days โ†’ Shows top customers โ†’ Option to send offer |
  281. | "Quiet hours mode" / "DND mode on karo" | Enables DND for non-critical notifications until specified time |
  282. | "Owner away mode" / "Main bahar jaa raha hoon, manager mode on karo" | Elevates chosen staff to delegated rights temporarily |
  283. | "Safety lock" / "Stealth mode on karo" | Triggers Panic/Stealth Lock โ†’ Hides sensitive data |
  284. | "Backup now" / "Abhi full backup lo" | Starts immediate full cloud backup โ†’ Shows progress โ†’ Confirms |
  285. | "Send daily WhatsApp report" / "Aaj ka WhatsApp report bhejo" | Generates summary โ†’ Opens WhatsApp with pre-filled report |
  286. | "Training mode for new staff" / "Naye staff ke liye training shuru karo" | Opens Training Center โ†’ Starts beginner module |
  287. | "Today's target progress" / "Aaj ka target kitna hua?" | Speaks % achieved, remaining amount, pattern, tips |
  288. | "Reorder essentials" / "Essential items reorder karo" | Filters low stock essentials โ†’ Creates purchase order suggestions |
  289. | "Billing speed check" / "Billing speed ka analysis dikhao" | Analyzes avg time per bill per staff โ†’ Highlights slow vs fast |
  290.  
  291. ---
  292.  
  293. ### ๐Ÿง  AI Deep Analytics & Insights // NEW
  294.  
  295. #### Top Selling Items:
  296. - "Top selling items this week" โ†’ shows ranked list + speaks summary.
  297. - "Sabse zyada kya bikta hai?" โ†’ AI responds in chosen language.
  298.  
  299. #### Low Stock Prediction:
  300. - Predicts which items will go out of stock based on sales velocity.
  301. - Warns 2-3 days before stock finishes.
  302. - "Kal tak kya khatam hoga?" โ†’ AI lists items at risk.
  303. - Suggests reorder quantities based on average daily sales.
  304.  
  305. #### Theft / Loss Detection:
  306. - Monitors: "Stock reduced but no sale recorded."
  307. - Flags possible theft/loss with item name, quantity mismatch, timestamp.
  308. - Weekly theft/loss summary report.
  309.  
  310. #### Staff Fraud Alert Detection:
  311. AI analyzes patterns:
  312. - Excessive refunds by a single staff member.
  313. - Bills deleted or edited suspiciously.
  314. - Discounts given without authorization.
  315. - Billing during non-shift hours.
  316. - Stock adjustments without sales.
  317.  
  318. Flags suspicious activity with severity level (Low / Medium / High / Critical).
  319. Owner gets instant push notification for High/Critical alerts.
  320.  
  321. #### Root Cause Analysis for Sales Drops/Spikes: // NEW [PHASE 2]
  322. - If sales suddenly fall/rise, AI analyzes: weather, day of week, category performance, staff shifts, returns.
  323. - Suggests likely reasons and fixes.
  324.  
  325. #### Business Health Score & Alerts: // NEW [PHASE 2]
  326. - AI creates simple "Shop Health Score" (0โ€“100).
  327. - Based on: Sales, Profit, Expenses, Udhar, Stock health, Theft risk, Trends.
  328. - Gives tips to improve it.
  329. - Daily/weekly health report.
  330.  
  331. #### Customer Sentiment Dashboard: // NEW [PHASE 3]
  332. - AI analyzes ratings, feedback messages, Udhar behavior.
  333. - Shows mood trends: "This month, complaints about 'billing speed' increased."
  334. - Suggests improvements.
  335.  
  336. #### AI Predicts Customer Arrival:
  337. - Predicts busy times / expected customer volume based on historical data.
  338. - "Aaj kitne customers aayenge?" โ†’ AI gives estimate.
  339. - Predicts what returning customers are likely to purchase.
  340. - Suggests staffing needs based on predicted traffic.
  341.  
  342. #### Local Events & Holiday Awareness: // NEW [PHASE 2]
  343. - AI considers local festivals, holidays, sports events (owner inputs calendar).
  344. - Adjusts predictions and suggests special stocking or offers.
  345.  
  346. ---
  347.  
  348. ### ๐ŸŽ“ AI Coaching & Training // NEW
  349.  
  350. #### AI-Guided Store Opening & Closing Checklists: [PHASE 2]
  351. - Morning/evening, AI walks staff through voice-driven checklist.
  352. - Items: Shutter, cash drawer count, fridge temperature, expiry checks, cleaning.
  353. - Marks items as done with timestamp and staff name.
  354.  
  355. #### Staff Onboarding Coach: [PHASE 2]
  356. - New staff can use special training mode.
  357. - AI gives guided practice sessions: Billing, Returns, Udhar.
  358. - Quizzes staff and tracks progress.
  359. - Owner sees training completion status per staff.
  360.  
  361. #### In-App 'How Do I Do This?' Guide: [PHASE 1]
  362. - Staff can ask: "Bill ko Udhar mein kaise daalu?"
  363. - AI replies with step-by-step instructions.
  364. - Can highlight correct buttons/screens.
  365.  
  366. #### AI Daily Briefing:
  367. - Every morning (configurable time), AI gives voice briefing:
  368. - Yesterday's summary (sales, profit, top items).
  369. - Today's predictions (expected sales, busy hours).
  370. - Low stock warnings.
  371. - Udhar reminders due today.
  372. - Staff schedule for today.
  373. - Any pending actions.
  374.  
  375. #### Midday Performance Nudges: // NEW [PHASE 2]
  376. - At configurable times, AI gives quick progress updates.
  377. - "By 2 PM, you've achieved 40% of today's target. Evening usually brings 60%โ€”consider pushing cold drinks."
  378.  
  379. #### AI Goal Coach:
  380. - Tracks daily/weekly/monthly goals.
  381. - Motivational messages when ahead of target.
  382. - Suggestions when falling behind.
  383. - "Aaj ka target complete hoga?" โ†’ AI predicts based on current pace.
  384.  
  385. #### Owner Stress & Time Management Coach: // NEW [PHASE 3]
  386. - Based on late-night usage, frequent manual work, pending tasks.
  387. - Suggests delegation ideas, simplifying routines, using more automation.
  388.  
  389. ---
  390.  
  391. ### ๐Ÿ“ˆ AI Marketing & Growth // NEW
  392.  
  393. #### AI Festival Preparation Mode:
  394. Activate for upcoming festivals (Diwali, Holi, Eid, Christmas, Navratri, etc.):
  395. - AI suggests which items to stock more (based on last year's festival data).
  396. - Expected demand increase percentage.
  397. - Recommended discounts to attract customers.
  398. - Festival-specific product bundles.
  399. - Predicted revenue for festival period.
  400.  
  401. #### Social Media Post Assistant: // NEW [PHASE 2]
  402. - AI drafts promotional posts for WhatsApp Status / Instagram / Facebook.
  403. - In chosen language.
  404. - Short, medium, and long versions.
  405. - With hashtags and call-to-action.
  406.  
  407. #### AI WhatsApp Message Generator:
  408. AI generates professional WhatsApp messages for:
  409. - Udhar reminders (polite, firm, or final warning tone).
  410. - Festival greetings to customers.
  411. - New product announcements.
  412. - Special offer notifications.
  413. - Thank you messages after purchase.
  414.  
  415. #### AI Customer Service Phrases:
  416. - Suggests phrases for staff to use with customers.
  417. - "Customer ko kya bolu?" โ†’ AI gives polite responses for common situations:
  418. - Out of stock items.
  419. - Price negotiations.
  420. - Return/refund requests.
  421. - Loyalty point explanations.
  422.  
  423. #### AI Business Tips:
  424. - Daily business tip notification (retail-specific).
  425. - Tips on: Display arrangement, upselling, cross-selling, customer retention.
  426. - "Mujhe ek business tip do" โ†’ AI provides actionable tip.
  427.  
  428. #### What-If Pricing Simulator: // NEW [PHASE 3]
  429. - Owner asks: "If I increase Maggi price by โ‚น2, what happens?"
  430. - AI predicts change in sales volume, profit, risk of losing customers.
  431.  
  432. #### AI Smart Pricing:
  433. Suggests optimal pricing based on:
  434. - Competitor awareness (manual input of competitor prices).
  435. - Demand patterns.
  436. - Profit margin targets.
  437. - Slow-moving items (suggests markdowns).
  438. - "Yeh item ki price sahi hai?" โ†’ AI analyzes and suggests.
  439.  
  440. ---
  441.  
  442. ### โšก AI Automation & Workflows // NEW
  443.  
  444. #### AI Shop Brain (Memory System):
  445. AI remembers EVERYTHING about the shop:
  446. - Which item sells more on which day of the week.
  447. - Seasonal trends (winter vs summer products).
  448. - Customer purchase patterns and preferences.
  449. - Price change history and impact on sales.
  450. - Peak business hours.
  451. - Weather-based sales patterns.
  452.  
  453. Ask anything: "Monday ko sabse zyada kya bikta hai?" โ†’ AI answers from memory.
  454.  
  455. #### AI Task Automation Suggestions: // NEW [PHASE 2]
  456. - AI notices repetitive manual actions (e.g., sending same summary every night).
  457. - Offers: "Do you want me to automate this as a daily 9 PM WhatsApp summary?"
  458.  
  459. #### Owner Voice Notes โ†’ Action Items: // NEW [PHASE 2]
  460. - Owner speaks: "Reminder: increase cold drink prices next week and talk to Pepsi supplier."
  461. - AI converts to tasks with dates and categories.
  462. - Links to relevant items/suppliers.
  463.  
  464. #### AI-Guided Physical Stock Take: // NEW [PHASE 2]
  465. - During stock audit, AI guides item by item (voice).
  466. - "Now count Parle G 50g."
  467. - Staff reads counts, AI auto-compares with system.
  468. - Flags discrepancies live.
  469.  
  470. #### Supplier Negotiation Helper: // NEW [PHASE 3]
  471. - Before calling a supplier, AI prepares talking points:
  472. - Average orders
  473. - Payment history
  474. - Competitor prices (if entered)
  475. - Suggested target price/credit terms
  476.  
  477. #### AI Profit Optimizer:
  478. Analyzes all products and suggests:
  479. - Which items to push more (high margin).
  480. - Which items are losing money (low margin / high waste).
  481. - Bundle suggestions for better profits.
  482. - "Profit kaise badhau?" โ†’ AI gives specific action plan.
  483.  
  484. #### AI Expiry Tracker:
  485. - For perishable goods: Track expiry dates.
  486. - AI warns before items expire.
  487. - Suggests discounting near-expiry items.
  488. - "Kya expire hone wala hai?" โ†’ AI lists items.
  489.  
  490. #### Multi-Language Translator for Customer Talks: // NEW [PHASE 2]
  491. - Staff speaks in Hindi; AI instantly shows same phrase in English/Marathi.
  492. - Helps with tourists or out-of-state customers.
  493.  
  494. #### Fine-Tuning to Owner Preferences: // NEW [PHASE 3]
  495. - AI learns from owner's repeated corrections.
  496. - Preferred profit margins, discount style, customer tone.
  497. - Over time, all suggestions align with those preferences.
  498.  
  499. ---
  500.  
  501. ### ๐Ÿ”Š AI Voice Responses (Trained Keywords):
  502.  
  503. AI is trained with ALL business-related keywords and phrases:
  504.  
  505. | Category | Keywords |
  506. |----------|----------|
  507. | **Billing** | bill, receipt, invoice, total, amount, subtotal, grand total, payment, cash, online, UPI, card, change, balance |
  508. | **Inventory** | stock, item, product, quantity, piece, packet, box, carton, dozen, kg, gram, liter, add, remove, update, edit, delete |
  509. | **Financial** | profit, loss, revenue, expense, margin, cost, sale, purchase, earning, income, payment, due, credit, debit |
  510. | **Customer** | customer, buyer, regular, new, loyal, contact, number, name, address |
  511. | **Operations** | open, close, start, stop, show, hide, search, find, create, make, save, print, share, send, cancel, reset, undo, redo |
  512. | **Analytics** | report, graph, chart, analysis, trend, comparison, daily, weekly, monthly, yearly, today, yesterday, this week, this month |
  513. | **Hindi/Hinglish** | "kitna", "dikhao", "banao", "nikalo", "jodna", "hatao", "bachao", "bhejo", "bolo", "batao", "khareedna", "bechna" |
  514. | **Marathi** | "เค•เคฟเคคเฅ€", "เคฆเคพเค–เคตเคพ", "เคฌเคจเคตเคพ", "เค•เคพเคขเคพ", "เคœเฅ‹เคกเคพ", "เคชเคพเค เคตเคพ", "เคธเคพเค‚เค—เคพ" |
  515.  
  516. ---
  517.  
  518. ## ๐Ÿ  Dashboard [PHASE 1 - MVP]
  519.  
  520. ### Welcome Banner:
  521. - "Good Morning/Afternoon/Evening, [Owner/Staff Name]" with animated greeting.
  522. - Shows current date, time, day.
  523. - Weather indicator (optional, location-based).
  524.  
  525. ### Quick Stats Cards (Animated counters):
  526. - ๐Ÿ’ฐ Today's Sale (total revenue).
  527. - ๐Ÿ“ˆ Today's Profit (Sales โˆ’ Cost โˆ’ Expenses).
  528. - ๐Ÿงพ Bills Created Today (count).
  529. - ๐Ÿ‘ฅ Customers Served Today.
  530. - ๐Ÿ“ฆ Items in Stock (total count).
  531. - โš ๏ธ Low Stock Items (count with red badge).
  532. - ๐Ÿ“’ Pending Udhar (total amount).
  533.  
  534. ### Daily Goal Tracker:
  535. - Set daily sales/profit goals.
  536. - Visual circular progress bar showing current progress.
  537. - Color changes: Red (0-30%) โ†’ Yellow (30-70%) โ†’ Green (70-100%) โ†’ Gold animation (100%+).
  538. - AI motivational messages based on progress.
  539.  
  540. ### Mini Sales Graph:
  541. - Last 7 days sales trend (sparkline chart).
  542. - Tap to expand to full analytics.
  543.  
  544. ### Inventory Section:
  545. - Toggle: Grid View (cards with images) / List View (compact rows).
  546. - Each item shows: Image, Name, Category, Price (MRP + Selling), Stock quantity, Low stock badge.
  547. - Add / Edit / Remove items.
  548. - GST & Discount fields per item.
  549. - Category tags with color coding.
  550. - Sort by: Name, Price (High/Low), Stock (High/Low), Category, Recently Added, Most Sold.
  551. - Filter by: Category, Price Range, Stock Status, GST Slab.
  552.  
  553. ### Multiple Barcodes / Aliases per Item: // NEW [PHASE 2]
  554. - Allow multiple barcodes for the same product.
  555. - Different packaging, supplier codes all resolve to correct inventory item.
  556. - "Alias" names for searching (e.g., "Maggi" and "Noodles").
  557.  
  558. ### Search Bar (Prominent):
  559. - Text search with auto-suggestions.
  560. - Voice search button (microphone icon).
  561. - Barcode scan button.
  562. - Recent searches history.
  563. - AI Smart Search: Fuzzy search finds items even with misspellings.
  564.  
  565. ### Low Stock Section:
  566. - Dedicated section/card showing items below threshold.
  567. - Red/Orange highlight.
  568. - AI predictions integrated ("Will run out in ~2 days").
  569. - Quick restock button (update quantity directly).
  570.  
  571. ### Recent Activity Feed:
  572. - Last 5-10 activities (bills, stock updates, new customers).
  573. - Scrollable, with timestamps and actor (who did it).
  574.  
  575. ### Quick Action Buttons:
  576. - New Bill, Add Item, Add Expense, Scan Barcode.
  577.  
  578. ---
  579.  
  580. ## ๐Ÿงพ Billing Module [PHASE 1 - MVP]
  581.  
  582. ### Fast Billing Interface:
  583. - Item search: Text + Voice + Barcode Scan.
  584. - Recently billed items (quick-add chips at top).
  585. - Frequently billed items section.
  586. - Manual item input (for items not in inventory): Name, Price, Qty.
  587. - Quantity adjuster: โˆ’ / + buttons with manual number input.
  588. - Real-time running total displayed prominently.
  589.  
  590. ### Customer Section (Top of Bill):
  591. - Optional customer name field.
  592. - WhatsApp number with +91 prefix (auto-formatted).
  593. - Auto-suggest existing customers as you type.
  594. - "New Customer" badge for first-time buyers.
  595. - Loyalty points display (if customer is registered).
  596.  
  597. ### Bill Items List:
  598. - Each item row: Image (small), Name, Qty, Rate, GST, Discount, Subtotal.
  599. - Swipe left to remove item.
  600. - Tap to edit quantity/discount.
  601. - Drag to reorder (optional).
  602.  
  603. ### Tax & Discount:
  604. - GST per item (auto-calculated based on item settings).
  605. - GST on total bill (configurable).
  606. - Discount per item OR per bill (percentage or flat amount).
  607. - "MRP vs Selling Price" support.
  608. - Tax breakdown display (CGST + SGST or IGST).
  609.  
  610. ### Payment Mode Selector:
  611. - ๐Ÿ’ต Cash
  612. - ๐Ÿ“ฑ UPI / Online
  613. - ๐Ÿ’ณ Card
  614. - ๐Ÿ”„ Split Payment (part cash + part online) with amount splitter.
  615. - ๐Ÿ“’ Udhar (Credit) โ€” auto-redirects to Udhar module.
  616.  
  617. ### Return / Refund Toggle:
  618. - Switch bill to "Return Mode."
  619. - Select items being returned.
  620. - Refund amount auto-calculated.
  621. - Inventory auto-restocked.
  622. - Profit auto-adjusted.
  623. - Refund method: Cash Back / Store Credit / Adjustment in next bill.
  624. - Reason for return (dropdown: Defective, Wrong Item, Customer Changed Mind, Expired, Other).
  625.  
  626. ### Action Buttons:
  627. - โœ… **Paid & Save:**
  628. - Save bill to database.
  629. - Tag staff ID (who created the bill).
  630. - Auto-save customer name & WhatsApp number.
  631. - Auto-update inventory (reduce stock).
  632. - Auto-update analytics.
  633. - Bill completion animation plays.
  634. - Success sound effect.
  635.  
  636. - ๐Ÿ–จ๏ธ **Print & Share:**
  637. - Generate professional receipt with:
  638. - Shop logo, name, address, GST number.
  639. - Bill number (auto-generated sequential).
  640. - Date & Time.
  641. - Items with details.
  642. - Tax breakdown.
  643. - Total amount.
  644. - Payment mode.
  645. - QR code for digital payment.
  646. - "Thank You" message (customizable).
  647. - Loyalty points earned.
  648. - Share via: WhatsApp, PDF download, Bluetooth Thermal Printer, Email.
  649. - Receipt templates: Classic, Modern, Minimal (owner can choose).
  650.  
  651. - ๐Ÿ”„ **Reset:**
  652. - Clear current bill form.
  653. - Confirmation popup: "Are you sure?"
  654. - Auto-save draft before clearing (recoverable).
  655.  
  656. - ๐Ÿ“‹ **Save as Draft:**
  657. - Save incomplete bill for later completion.
  658. - Draft bills visible in a separate section.
  659. - Resume billing from draft.
  660.  
  661. ### Bill History (Sub-section):
  662. - All bills listed with: Bill #, Date, Time, Customer, Amount, Staff, Payment Mode.
  663. - Search bills by: Customer name, bill number, date range, amount range.
  664. - Filter by: Payment mode, Staff member, Refund/Sale.
  665. - Quick Edit: Tap on recent bill โ†’ Edit (within time limit set by owner).
  666. - Duplicate Bill: Copy items from previous bill to create new one.
  667.  
  668. ### Lock-Screen Billing: [PHASE 3]
  669. - Quick bill creation from lock screen or notification quick tile.
  670. - Simplified interface for fast billing.
  671. - Requires PIN/biometric to access.
  672.  
  673. ### Customer Loyalty Points System: [PHASE 2]
  674. - Configurable: Points per โ‚น spent (e.g., 1 point per โ‚น100).
  675. - Track points per customer.
  676. - Redeem points on future bills (configurable: โ‚น value per point).
  677. - Point expiry (optional: after 6 months / 1 year / never).
  678. - Tier system (optional): Bronze โ†’ Silver โ†’ Gold โ†’ Platinum based on total spend.
  679. - Tier benefits: Extra points multiplier, special discounts.
  680.  
  681. ### Bill Animation:
  682. - On bill save: Smooth animation (receipt flying into folder / checkmark burst / confetti for bills above โ‚นX).
  683. - Sound effect (cash register "cha-ching" or subtle chime โ€” toggle on/off).
  684.  
  685. ### Auto Date & Time:
  686. - Each bill auto-saves accurate date, time, timezone.
  687. - Cannot be manually changed by staff (only owner can edit timestamp in special cases).
  688.  
  689. ### Detect Received Online Payment (via SMS): [PHASE 2]
  690. - App reads payment SMS (UPI/Bank) with user permission.
  691. - Detects successful incoming payments (amount, sender, UPI ID).
  692. - Shows green confirmation badge in notification bar.
  693. - Auto-links payment to current/recent bill where amount matches.
  694. - Notification: "โ‚น500 received from [Name] โ€” Link to Bill #1234?"
  695.  
  696. ### Held Bills / Parked Bills:
  697. - While billing, if customer says "wait" or needs to get something:
  698. - Park current bill โ†’ Start new bill โ†’ Come back to parked bill later.
  699. - Multiple bills can be parked simultaneously.
  700. - Visual indicator showing number of parked bills.
  701.  
  702. ### Bill Narration / Notes:
  703. - Add custom notes to any bill (e.g., "Customer will pick up tomorrow", "Birthday order").
  704. - Notes visible in bill history.
  705.  
  706. ### Combo / Bundle Billing: [PHASE 2]
  707. - Create product bundles (e.g., "Festival Pack" = Item A + B + C at special price).
  708. - Bundles appear as single item in billing.
  709. - Auto-applies bundle discount.
  710.  
  711. ---
  712.  
  713. ## ๐Ÿ’ณ Payment Reconciliation Dashboard // NEW [PHASE 2]
  714.  
  715. ### Auto-Match Payments:
  716. - Auto-match online/UPI/card settlements against bills (beyond SMS detection).
  717. - Import bank statements (CSV/Excel) for reconciliation.
  718.  
  719. ### Dashboard View:
  720. - Total payments received today/week/month.
  721. - Matched payments (green).
  722. - Unmatched payments (yellow) โ€” need manual linking.
  723. - Partial settlements (orange).
  724. - Reconciliation status overview.
  725.  
  726. ### Manual Linking:
  727. - Tap unmatched payment โ†’ Select bill to link.
  728. - Search bills by amount, date, customer.
  729.  
  730. ### Settlement Reports:
  731. - Payment gateway-wise breakdown.
  732. - Bank-wise breakdown.
  733. - Daily/weekly settlement summary.
  734. - Export for accounting.
  735.  
  736. ---
  737.  
  738. ## ๐Ÿ“’ Udhar Ledger (Credit Module) [PHASE 1 - MVP]
  739.  
  740. ### Credit Billing Interface:
  741. - Same as main billing interface for creating credit bills.
  742. - Mandatory: Customer Name + Phone Number.
  743. - Optional: Customer Photo, Address, Aadhaar/ID (for high-value credits).
  744.  
  745. ### Udhar Dashboard:
  746. - Total Udhar Outstanding (big number, red accent).
  747. - Total Customers with Dues.
  748. - Overdue amount (past promise date).
  749. - Today's collections expected.
  750. - This week/month credit given vs collected.
  751.  
  752. ### Customer Udhar Profile:
  753. - Customer photo / avatar.
  754. - Name, Phone, WhatsApp number.
  755. - **Total Due** (prominently displayed).
  756. - **Credit Score / Trust Rating** (AI-calculated): โญโญโญโญโญ
  757. - Credit Limit (owner-set maximum Udhar allowed per customer).
  758. - All Udhar bills listed (date, amount, items, status).
  759. - Payment history (when they paid, how much).
  760. - Copy phone number button.
  761.  
  762. ### Paid Now vs Remaining:
  763. - During Udhar bill: Enter amount paid now.
  764. - Auto-calculates remaining balance.
  765. - Partial payment tracking.
  766.  
  767. ### Promise Date:
  768. - Calendar-based date picker for expected repayment.
  769. - Color coding: Green (future), Yellow (today), Red (overdue).
  770. - Snooze/Extend promise date with reason.
  771.  
  772. ### Action Buttons per Customer:
  773. - โœ… **Paid** button:
  774. - Full payment โ†’ clears all dues.
  775. - Partial payment โ†’ enter amount โ†’ updates remaining.
  776. - Payment mode selection (Cash / Online / Adjustment).
  777. - Auto-updates analytics.
  778.  
  779. - ๐Ÿ“ฒ **Remind** button:
  780. - Auto-generates WhatsApp reminder message with:
  781. - Customer name, total due, bill details, promise date.
  782. - Tone selector: Polite / Firm / Final Warning.
  783. - AI-generated message in selected language.
  784. - Opens WhatsApp with pre-filled message.
  785.  
  786. - ๐Ÿ“ž **Call** button:
  787. - Direct call to customer.
  788.  
  789. - ๐Ÿšซ **Block Credit** button:
  790. - Block further Udhar for this customer.
  791. - Staff sees warning when trying to create Udhar bill for blocked customer.
  792.  
  793. ### Udhar Reminders & Notifications:
  794. - Promise date due today โ†’ Push notification + in-app badge + AI voice alert.
  795. - Overdue (past promise date) โ†’ Escalated notification daily.
  796. - Auto-reminder: Send WhatsApp reminder on promise date morning (configurable).
  797. - Weekly Udhar summary notification to owner.
  798.  
  799. ### Udhar Analytics:
  800. - Top debtors (highest amount due).
  801. - Longest overdue customers.
  802. - Monthly credit given vs collected trends.
  803. - Bad debt prediction (AI identifies customers unlikely to pay).
  804.  
  805. ### Udhar Interest Calculator (Optional): [PHASE 3]
  806. - Owner can enable interest on overdue Udhar.
  807. - Configurable interest rate.
  808. - Auto-calculates accumulated interest.
  809. - Displayed separately in customer profile.
  810.  
  811. ### Customer Group / Category:
  812. - Group customers: Regular, VIP, Risky, Blacklisted.
  813. - Different credit limits per group.
  814. - Visual badges on customer profiles.
  815.  
  816. ---
  817.  
  818. ## ๐ŸŒ Public Digital Catalog / Rate List // NEW [PHASE 2]
  819.  
  820. ### Auto-Generated Catalog:
  821. - Shareable catalog link generated from inventory.
  822. - Updates in real-time when inventory changes.
  823.  
  824. ### Catalog Features:
  825. - Search functionality.
  826. - Category filters.
  827. - Product images.
  828. - Prices (MRP and selling price).
  829. - Stock availability indicator (In Stock / Limited / Out of Stock).
  830. - Shop branding (logo, name, contact).
  831.  
  832. ### Sharing Options:
  833. - Shareable URL link.
  834. - QR Code generation (print for shop display).
  835. - WhatsApp share button.
  836. - Embed code for website.
  837.  
  838. ### Customization (Owner):
  839. - Choose which items to show/hide.
  840. - Choose which categories to include.
  841. - Hide prices (show "Call for price").
  842. - Custom banner/message at top.
  843. - Theme matching shop branding.
  844.  
  845. ### Customer View:
  846. - Mobile-optimized web page.
  847. - No app download required.
  848. - Can browse prices from home.
  849. - WhatsApp inquiry button per item.
  850.  
  851. ---
  852.  
  853. ## ๐Ÿ“Š Analytics & Reports [PHASE 1 - MVP]
  854.  
  855. ### Overview Cards:
  856. - Total Inventory Value (at cost price).
  857. - Total Sales (day / week / month / year / custom range).
  858. - Total Profit (day / week / month / year / custom range).
  859. - Total Expenses.
  860. - Net Profit (Profit โˆ’ Expenses).
  861. - Growth percentage compared to previous period.
  862.  
  863. ### Interactive Charts & Graphs:
  864. - ๐Ÿ“ˆ **Sales vs Profit Graph** (daily/weekly/monthly) โ€” Line chart with gradient fill.
  865. - ๐Ÿ“Š **Category-wise Sales** (pie chart / donut chart).
  866. - ๐Ÿ“‰ **Sales Trend** (sparkline for quick view, expandable).
  867. - ๐Ÿ“Š **Hourly Sales Heatmap** (which hours are busiest).
  868. - ๐Ÿ“Š **Day-of-Week Performance** (which day sells most).
  869. - ๐Ÿ“Š **Month-over-Month Comparison** (bar chart).
  870. - ๐Ÿ“Š **Year-over-Year Growth** (line chart).
  871.  
  872. All graphs: Animated on load, smooth transitions when changing date range, tap on data point shows exact values.
  873.  
  874. ### Date Range Selector:
  875. - Today, Yesterday, This Week, Last Week, This Month, Last Month, This Year, Custom Range.
  876. - Compare two periods side by side.
  877.  
  878. ### Top 10 Selling Items:
  879. - Ranked list with quantity sold, revenue generated, profit contributed.
  880. - Date range filterable.
  881. - Visual bar chart.
  882.  
  883. ### Bottom 10 Items (Slow Moving):
  884. - Items with lowest sales.
  885. - AI suggests: Discount, remove from inventory, or rearrange display.
  886.  
  887. ### Profit Margin Analysis:
  888. - Per item profit margin.
  889. - Overall average margin.
  890. - Items with highest and lowest margins.
  891.  
  892. ### Expense Tracking:
  893. - Add expenses with: Category, Amount, Date, Notes, Receipt photo.
  894. - Categories: Rent, Electricity, Salary, Transport, Purchase, Maintenance, Marketing, Other.
  895. - Monthly expense breakdown (category-wise).
  896. - Expense vs Revenue comparison.
  897.  
  898. ### Staff-wise Analytics:
  899. - Bills created per staff member.
  900. - Revenue generated per staff.
  901. - Profit contribution per staff.
  902. - Refunds processed per staff.
  903. - Average bill value per staff.
  904. - Staff leaderboard (ranked by configurable metric).
  905. - Leaderboard badge: ๐Ÿฅ‡๐Ÿฅˆ๐Ÿฅ‰ for top 3.
  906.  
  907. ### Staff Attendance:
  908. - Daily attendance marking (Check-in / Check-out with timestamp).
  909. - Attendance method: Manual / Location-based / QR scan at shop.
  910. - Late arrivals tracking.
  911. - Monthly attendance summary.
  912. - Connect attendance with bills: Show bills made per shift.
  913. - Salary calculation helper (based on attendance + working hours).
  914.  
  915. ### Customer Analytics:
  916. - Total unique customers.
  917. - New vs returning customers.
  918. - Top 10 customers by spend.
  919. - Customer visit frequency.
  920. - Average bill value per customer.
  921. - Customer retention rate.
  922.  
  923. ### Smart Holiday Mode: [PHASE 2]
  924. - AI predicts low/high sales days (festivals, holidays, weekends, local events).
  925. - Visual calendar with color-coded predictions.
  926. - Suggestions for holiday-specific inventory.
  927.  
  928. ### Inventory Analytics:
  929. - Stock turnover rate per item.
  930. - Dead stock identification (items not sold in X days).
  931. - Inventory aging report.
  932. - Reorder suggestions with quantities.
  933.  
  934. ### Live Screen View (Owner Only): [PHASE 3]
  935. - Owner can view staff's billing screen in real-time remotely.
  936. - Thumbnail view of all active staff screens.
  937. - Tap to expand full screen view.
  938. - View-only (owner cannot interact).
  939. - Indicator on staff device: "Owner is viewing" (optional toggle).
  940.  
  941. ### Activity Log (Audit Trail):
  942. - Complete log of who did what, when:
  943. - Item additions / edits / deletions.
  944. - Bill creation / edits / refunds / deletions.
  945. - Udhar additions / payments / edits.
  946. - Settings changes.
  947. - Login / logout events.
  948. - Inventory adjustments.
  949. - Price changes.
  950. - Staff additions / removals.
  951. - Filter by: User, Action Type, Date Range.
  952. - Cannot be deleted (even by owner โ€” integrity guarantee).
  953.  
  954. ### Report Export:
  955. - Export reports as: PDF, Excel (CSV), image.
  956. - Auto-email daily/weekly/monthly report to owner (configurable).
  957. - Share reports via WhatsApp.
  958.  
  959. ### Comparison Mode:
  960. - Compare any two periods side by side:
  961. - This Diwali vs Last Diwali.
  962. - This month vs Same month last year.
  963. - Staff A vs Staff B performance.
  964.  
  965. ---
  966.  
  967. ## ๐Ÿ’ผ Daily Cash Count & Reconciliation Module // NEW [PHASE 2]
  968.  
  969. ### Shift Close Cash Count:
  970. - At shift end, staff enters physical cash count.
  971. - System shows expected cash (based on cash bills - cash refunds).
  972. - Auto-calculates difference.
  973.  
  974. ### Difference Handling:
  975. - If difference exists:
  976. - Staff must enter reason (dropdown: Counting error, Change given wrong, Theft suspected, Other).
  977. - Optional: Photo proof.
  978. - Notes field.
  979.  
  980. ### Cash Count History:
  981. - Daily cash count log.
  982. - Difference trend over time.
  983. - Staff-wise cash handling accuracy.
  984.  
  985. ### Alerts:
  986. - Repeated differences by same staff โ†’ Flag for owner.
  987. - Large differences โ†’ Immediate notification.
  988.  
  989. ---
  990.  
  991. ## ๐Ÿ‘ฅ Owner-Staff Management (Dedicated Section) // NEW [PHASE 1/2]
  992.  
  993. ### ๐Ÿ’ฌ In-App Ownerโ€“Staff Chat & Broadcasts: [PHASE 2]
  994.  
  995. #### 1:1 Chat:
  996. - Secure chat between owner and individual staff.
  997. - Text messages.
  998. - Photo sharing.
  999. - Voice notes.
  1000. - Message timestamps.
  1001.  
  1002. #### Group Chat:
  1003. - Owner can create group with all/selected staff.
  1004. - Group announcements.
  1005.  
  1006. #### Broadcasts:
  1007. - Owner sends broadcast announcements.
  1008. - Topics: Policy changes, offers, targets, schedule changes.
  1009. - Read receipts per staff (who has seen the message).
  1010. - Pin important messages.
  1011.  
  1012. ### ๐Ÿ“… Staff Leave & Off-Day Management: [PHASE 2]
  1013.  
  1014. #### Staff Side:
  1015. - Request leave from app.
  1016. - Select dates (single day / range).
  1017. - Leave type: Sick, Personal, Emergency, Festival, Other.
  1018. - Add reason/notes.
  1019. - See request status: Pending / Approved / Rejected.
  1020.  
  1021. #### Owner Side:
  1022. - View all leave requests.
  1023. - Approve / Reject with optional notes.
  1024. - Monthly leave calendar per staff.
  1025. - Leave balance tracking (if applicable).
  1026. - Auto-update shift schedules on approval.
  1027.  
  1028. ### ๐Ÿšจ Staff Incident & Issue Reporting: [PHASE 2]
  1029.  
  1030. #### Staff Can Report:
  1031. - Abusive customer (with details).
  1032. - Product issue (damage, quality).
  1033. - Device/equipment issue.
  1034. - Safety concern.
  1035. - Other incidents.
  1036.  
  1037. #### Report Includes:
  1038. - Category selection.
  1039. - Description text.
  1040. - Photo attachments.
  1041. - Timestamp (auto).
  1042. - Urgency level.
  1043.  
  1044. #### Owner View:
  1045. - Categorized incident log.
  1046. - Filter by: Staff, Category, Date, Urgency.
  1047. - Mark as: Reviewed / In Progress / Resolved.
  1048. - Add response/action taken.
  1049.  
  1050. ### โœ… Escalation & Approval Workflows: [PHASE 2]
  1051.  
  1052. For risky actions, staff must get owner approval:
  1053. - Refund above โ‚นX amount.
  1054. - Discount above X%.
  1055. - Delete bill.
  1056. - Edit old bill.
  1057. - Manual stock adjustment.
  1058. - Credit above limit to customer.
  1059.  
  1060. #### Workflow:
  1061. 1. Staff initiates action โ†’ System shows "Requires Owner Approval".
  1062. 2. Staff adds reason/notes.
  1063. 3. Push notification sent to owner.
  1064. 4. Owner reviews in app โ†’ Approve / Deny with notes.
  1065. 5. Staff gets notification of decision.
  1066. 6. If approved, action is executed.
  1067. 7. Full audit trail maintained.
  1068.  
  1069. ### โฐ Break & Idle Time Tracking: [PHASE 2]
  1070.  
  1071. #### Staff Side:
  1072. - Simple Start/End break buttons.
  1073. - Break types: Lunch, Tea, Personal, Prayer.
  1074. - Timer shows break duration.
  1075.  
  1076. #### Owner View:
  1077. - Total break time per staff per day.
  1078. - Idle gaps (time when no billing activity AND not on break).
  1079. - Break time vs billing activity correlation.
  1080. - Alerts for excessive breaks.
  1081.  
  1082. ### ๐Ÿ“ฑ Staff Device Management & Trusted Devices: [PHASE 2]
  1083.  
  1084. #### Owner Can See:
  1085. - Which devices each staff account is logged into.
  1086. - Device info: Model, OS, last active time.
  1087. - Login history per device.
  1088.  
  1089. #### Actions:
  1090. - Mark device as "Trusted" (no re-verification needed).
  1091. - Revoke device access (force logout).
  1092. - Require re-verification on new devices.
  1093. - Set max devices per staff account.
  1094.  
  1095. #### Security:
  1096. - New device login โ†’ Owner notification.
  1097. - Untrusted device โ†’ Limited features until verified.
  1098.  
  1099. ### ๐Ÿ‘‘ Owner Delegation Mode (Acting Manager): [PHASE 2]
  1100.  
  1101. #### Setup:
  1102. - Owner selects trusted staff member.
  1103. - Sets delegation period (start date/time to end date/time).
  1104. - Selects powers to grant:
  1105. - โ˜ Approve refunds
  1106. - โ˜ View analytics
  1107. - โ˜ View profit
  1108. - โ˜ Manage shifts
  1109. - โ˜ Approve leave requests
  1110. - โ˜ Add/edit inventory
  1111. - โ˜ View Udhar details
  1112. - โ˜ Send broadcast messages
  1113.  
  1114. #### During Delegation:
  1115. - Staff sees "Acting Manager" badge.
  1116. - Access to granted features.
  1117. - All actions logged with "Acting Manager" tag.
  1118.  
  1119. #### Auto-Expiry:
  1120. - Delegation automatically ends at set time.
  1121. - Owner can revoke early.
  1122. - Notification to both parties.
  1123.  
  1124. ### ๐Ÿ’ก Anonymous Staff Feedback / Suggestion Box: [PHASE 2]
  1125.  
  1126. #### Staff Can Submit:
  1127. - Anonymous suggestions.
  1128. - Anonymous complaints.
  1129. - Process improvement ideas.
  1130. - Morale/culture feedback.
  1131.  
  1132. #### Features:
  1133. - Truly anonymous (no way to trace back).
  1134. - Categories: Process, Equipment, Schedule, Colleagues, Management, Other.
  1135. - Owner sees aggregated feedback.
  1136. - Cannot see who submitted what.
  1137.  
  1138. #### Owner Actions:
  1139. - Mark as: Noted / Will Consider / Implemented / Not Feasible.
  1140. - Post public response (staff see response without knowing who asked).
  1141.  
  1142. ### ๐Ÿ“Š Per-Staff KPI Dashboard (Mini View for Staff): [PHASE 1]
  1143.  
  1144. Each staff member sees their own key numbers:
  1145. - Today's bills created.
  1146. - Today's revenue generated.
  1147. - Average bill value.
  1148. - Refunds processed.
  1149. - Current leaderboard rank.
  1150. - Week/Month performance trend.
  1151. - Streak (consecutive days with bills).
  1152. - Badges earned.
  1153.  
  1154. **Note:** Does NOT show full shop profit or sensitive owner data.
  1155. *Motivates self-improvement without exposing full business details.*
  1156.  
  1157. ---
  1158.  
  1159. ## โœ… Staff Task Management & Checklists // NEW [PHASE 2]
  1160.  
  1161. ### Task Creation (Owner):
  1162. - Create daily/weekly tasks.
  1163. - Examples: "Clean shelves", "Update prices", "Check expiry", "Arrange display".
  1164. - Set frequency: Daily, Weekly, One-time.
  1165. - Set due time.
  1166. - Assign to specific staff or "Any available".
  1167. - Priority: Low, Medium, High.
  1168. - Add instructions/notes.
  1169. - Require photo proof on completion.
  1170.  
  1171. ### Task View (Staff):
  1172. - See assigned tasks.
  1173. - Filter: Today, This Week, Pending, Completed.
  1174. - Check off completed tasks.
  1175. - Upload photo proof (if required).
  1176. - Add completion notes.
  1177. - Mark as "Need Help" if stuck.
  1178.  
  1179. ### AI Reminders:
  1180. - AI reminds staff of pending tasks.
  1181. - Voice: "You have 2 pending tasks for today."
  1182. - Push notifications before due time.
  1183.  
  1184. ### Task Dashboard (Owner):
  1185. - Overview of all tasks.
  1186. - Completion rate by staff.
  1187. - Overdue tasks highlighted.
  1188. - Task history and patterns.
  1189.  
  1190. ---
  1191.  
  1192. ## โš™๏ธ Settings (Tabbed โ€” 5 Tabs) [PHASE 1 - MVP]
  1193.  
  1194. ### Tab 1: ๐Ÿช Shop Identity
  1195. - Shop Name (editable).
  1196. - Shop Logo (upload / crop / resize).
  1197. - Shop Address.
  1198. - Shop Phone & WhatsApp Number.
  1199. - GST Number (GSTIN).
  1200. - Shop QR Code upload (for payments) with + button to update.
  1201. - Theme Selector (visual preview of each theme).
  1202. - Live preview before applying.
  1203. - Font Size (Small / Medium / Large โ€” for accessibility).
  1204. - Bill Header/Footer customization.
  1205.  
  1206. ### Tab 2: ๐Ÿ’พ Data & Backup
  1207. - **History View:** All transactions, inventory changes, login history, activity log.
  1208. - **Reset History** (Owner only): Selective reset with PIN confirmation.
  1209. - **One-Tap Full Shop Backup:** Backup all data to cloud. Auto-backup options.
  1210. - **One-Tap Shop Transfer:** Transfer entire shop data to new phone.
  1211. - **Export Data:** Export all data as Excel/CSV.
  1212. - **Import Data:** Import inventory from Excel/CSV file.
  1213.  
  1214. ### Sandbox / Test Mode for Owners: // NEW [PHASE 3]
  1215. - Separate "Test Space" where owner can:
  1216. - Try price changes, discounts, AI suggestions.
  1217. - Test staff permissions.
  1218. - Practice features.
  1219. - Without impacting real data and analytics.
  1220. - Clear "TEST MODE" banner.
  1221.  
  1222. ### Tab 3: โšก Operations
  1223. - **Inventory Settings:** Low stock threshold, auto-reorder alerts, product images, category management, unit management, barcode settings.
  1224. - **Multiple Barcodes per Item:** // NEW โ€” Enable scanning multiple barcodes for same item.
  1225. - **Billing Settings:** Bill number prefix/sequence, default tax, discount permissions, refund permissions, max edit time, receipt template, sound effects, held bills, quick billing items.
  1226. - **Loyalty Points Settings:** Enable/disable, points per โ‚น, redemption value, expiry, tiers.
  1227. - **Share Item List:** Export inventory as PDF/Excel/WhatsApp.
  1228. - **Daily WhatsApp Summary:** Enable/disable, time to send, contents.
  1229. - **Auto Price Update Reminder:** Remind every X days.
  1230. - **Printer Settings:** Bluetooth connection, paper size, test print, auto-print.
  1231.  
  1232. ### Tab 4: ๐Ÿ‘ค Staff Management
  1233. - **Staff List:** All staff with photo, name, role, status, join date.
  1234. - **Add Staff:** Generate invite code/QR, set role.
  1235. - **Staff Permissions (Granular):**
  1236. - โ˜ Create Bills
  1237. - โ˜ Edit Bills
  1238. - โ˜ Delete Bills
  1239. - โ˜ Process Refunds
  1240. - โ˜ Apply Discounts
  1241. - โ˜ View Profit/Analytics
  1242. - โ˜ Add/Edit Inventory
  1243. - โ˜ Delete Inventory Items
  1244. - โ˜ View Udhar
  1245. - โ˜ Create Udhar
  1246. - โ˜ Mark Udhar Paid
  1247. - โ˜ View Activity Log
  1248. - โ˜ Access Settings
  1249. - โ˜ Export Data
  1250. - **Remove Staff:** Deactivate or permanently remove.
  1251. - **Staff Performance:** Quick view of each staff's KPIs.
  1252. - **Shift Management:** Define and assign shifts, track adherence.
  1253.  
  1254. ### Tab 5: โ“ Help & Support
  1255. - **Help Center:** Searchable FAQs, feature tutorials, video guides.
  1256. - **Contact Support:** WhatsApp, Email, Phone, In-app feedback.
  1257. - **Report a Bug:** With automatic device info.
  1258. - **Feature Request:** Suggest new features.
  1259. - **Demo Mode:** Demo login with sample data.
  1260. - **App Info:** Version, Terms, Privacy Policy, Licenses.
  1261. - **Rate the App:** Link to store rating.
  1262. - **What's New:** Changelog.
  1263.  
  1264. ### Language Selection:
  1265. - ๐Ÿ‡ฌ๐Ÿ‡ง ENGLISH | ๐Ÿ‡ฎ๐Ÿ‡ณ HINGLISH | ๐Ÿ‡ฎ๐Ÿ‡ณ HINDI | ๐Ÿ‡ฎ๐Ÿ‡ณ MARATHI
  1266. - Changes ALL app text, labels, notifications, AI responses.
  1267.  
  1268. ---
  1269.  
  1270. ## ๐Ÿ”” Automation & Notifications System [PHASE 1 - MVP]
  1271.  
  1272. ### Push Notifications:
  1273. - ๐Ÿ“ฆ Low stock alert.
  1274. - ๐Ÿ“’ Udhar promise date due.
  1275. - ๐Ÿ’ฐ Online payment received.
  1276. - ๐Ÿงพ Daily sales summary.
  1277. - ๐Ÿ•ต๏ธ Theft/Loss detection alert.
  1278. - ๐Ÿ‘ค Staff fraud alert.
  1279. - ๐ŸŽฏ Daily goal achieved.
  1280. - ๐Ÿ“Š Weekly business report ready.
  1281. - ๐Ÿ’ก AI business tip.
  1282. - ๐ŸŽ‰ Festival preparation reminder.
  1283. - ๐Ÿ“… Auto price update reminder.
  1284. - ๐Ÿ‘ค New staff join request.
  1285. - ๐Ÿ” Login from new device alert.
  1286. - ๐Ÿ“ฆ Item expiry warning.
  1287. - ๐Ÿ† Staff leaderboard updates.
  1288. - โœ… Approval request (for escalations). // NEW
  1289.  
  1290. ### In-App Notification Center:
  1291. - All notifications in one place.
  1292. - Categorized tabs: All, Stock, Billing, Udhar, Staff, AI, System.
  1293. - Read/Unread status.
  1294. - Tap notification โ†’ Navigate to relevant screen.
  1295.  
  1296. ### Smart Notifications:
  1297. - DND mode (quiet hours).
  1298. - Priority levels: Critical (always alert), Important (normal), Info (silent).
  1299. - Notification sound customization.
  1300.  
  1301. ### Automated Actions:
  1302. - Low stock โ†’ Auto-generate reorder list.
  1303. - Udhar overdue โ†’ Auto-send WhatsApp reminder.
  1304. - Daily summary โ†’ Auto-send to owner WhatsApp.
  1305. - Bill saved โ†’ Auto-reduce inventory.
  1306. - Refund โ†’ Auto-restock + adjust profit.
  1307. - Online payment detected โ†’ Auto-link to bill.
  1308. - Offline โ†’ Show banner, queue changes.
  1309. - Back online โ†’ Show sync status.
  1310.  
  1311. ### Scheduled Reports:
  1312. - Daily report: End of day.
  1313. - Weekly report: Monday morning.
  1314. - Monthly report: 1st of month.
  1315. - Delivery: Push + WhatsApp + Email (configurable).
  1316.  
  1317. ---
  1318.  
  1319. ## ๐Ÿ’ฐ Expense Manager [PHASE 1 - MVP]
  1320.  
  1321. ### Add Expense:
  1322. - Amount, Category, Date, Payment mode, Notes, Receipt photo.
  1323. - Categories: Rent, Electricity, Water, Salary, Transport, Purchase, Maintenance, Marketing, Packaging, Miscellaneous, Custom.
  1324. - Recurring expense toggle (daily / weekly / monthly).
  1325.  
  1326. ### Expense Dashboard:
  1327. - Total expenses by period.
  1328. - Category-wise breakdown (pie chart).
  1329. - Monthly trend (bar chart).
  1330. - Budget vs Actual comparison.
  1331. - True net profit: Revenue - COGS - Expenses.
  1332.  
  1333. ### Budget Setting: [PHASE 2]
  1334. - Set monthly budget per category.
  1335. - Alert at 80% and 100% utilization.
  1336. - Visual budget bar per category.
  1337.  
  1338. ### Recurring Expenses:
  1339. - Auto-add on schedule.
  1340. - Reminder before due date.
  1341.  
  1342. ---
  1343.  
  1344. ## ๐Ÿ“ฆ Supplier / Vendor Management [PHASE 2]
  1345.  
  1346. ### Supplier Profiles:
  1347. - Name, Company, Phone, WhatsApp, Email, Address.
  1348. - Items supplied (linked to inventory).
  1349. - Payment terms.
  1350. - Rating (owner rates suppliers).
  1351.  
  1352. ### Purchase Orders:
  1353. - Create purchase orders for suppliers.
  1354. - Track status: Ordered โ†’ Shipped โ†’ Received.
  1355. - Auto-update inventory on "Received."
  1356. - Purchase history per supplier.
  1357.  
  1358. ### Supplier Payment Tracking:
  1359. - Track payments made.
  1360. - Outstanding dues to suppliers.
  1361. - Payment reminders.
  1362.  
  1363. ### Quick Reorder:
  1364. - From low stock alert โ†’ Tap "Reorder" โ†’ Auto-generates order.
  1365. - Send order via WhatsApp to supplier.
  1366.  
  1367. ---
  1368.  
  1369. ## ๐Ÿ‘ฅ Customer Relationship Management (CRM) [PHASE 2]
  1370.  
  1371. ### Customer Database:
  1372. - Auto-saved from bills.
  1373. - Manual add with: Name, Phone, WhatsApp, Email, Address, Birthday, Anniversary, Notes.
  1374. - Customer photo (optional).
  1375. - Tags: Regular, VIP, Wholesale, Retail, Risky.
  1376.  
  1377. ### Customer Profile View:
  1378. - Total spend (lifetime).
  1379. - Total bills.
  1380. - Last visit date.
  1381. - Favorite items (most purchased).
  1382. - Loyalty points balance.
  1383. - Udhar status.
  1384. - Visit frequency.
  1385. - AI-predicted next visit.
  1386.  
  1387. ### Customer Communication:
  1388. - WhatsApp message (individual or bulk).
  1389. - Birthday/Anniversary auto-greetings.
  1390. - Festival greetings.
  1391. - New product announcements.
  1392. - Special offer notifications.
  1393.  
  1394. ### Customer Segmentation:
  1395. - AI auto-segments: Loyal, At-Risk, Lost, New.
  1396. - Target specific segments with messages/offers.
  1397.  
  1398. ---
  1399.  
  1400. ## ๐Ÿ”„ Offline-First Architecture [PHASE 1 - MVP]
  1401.  
  1402. ### Full Offline Operation:
  1403. - Create bills offline.
  1404. - Add/edit inventory offline.
  1405. - Create Udhar entries offline.
  1406. - Add expenses offline.
  1407. - All data saved to local database (SQLite / Hive).
  1408.  
  1409. ### Auto-Sync:
  1410. - Internet restored โ†’ automatic background sync.
  1411. - Conflict resolution: Last-write-wins with owner override.
  1412. - Sync status indicator: ๐ŸŸข Synced | ๐ŸŸก Syncing... | ๐Ÿ”ด Offline.
  1413.  
  1414. ### Offline Indicators:
  1415. - Top banner: "๐Ÿ“ก No internet. Bills will sync automatically."
  1416. - Pending items show "โณ Pending sync" badge.
  1417. - On reconnect: "โœ… Back online! All data synced."
  1418.  
  1419. ---
  1420.  
  1421. ## ๐Ÿ“ฑ Responsive Design & Performance [PHASE 1 - MVP]
  1422.  
  1423. ### Screen Compatibility:
  1424. - All screen sizes: 5" to 10"+.
  1425. - Adaptive layouts.
  1426. - Landscape mode support for tablets.
  1427.  
  1428. ### Performance:
  1429. - App opens in under 2 seconds.
  1430. - Smooth 60fps animations.
  1431. - Lazy loading for long lists.
  1432. - Image compression.
  1433. - Cache management.
  1434. - Memory-efficient for low-end devices.
  1435.  
  1436. ### Accessibility:
  1437. - Font size options.
  1438. - High contrast mode.
  1439. - Screen reader compatible.
  1440. - Touch targets minimum 48x48dp.
  1441.  
  1442. ---
  1443.  
  1444. ## ๐Ÿ›ก๏ธ Data Security & Privacy [PHASE 1 - MVP]
  1445.  
  1446. ### Data Encryption:
  1447. - All data encrypted in transit (HTTPS/SSL).
  1448. - Sensitive data encrypted at rest.
  1449. - Firebase security rules.
  1450.  
  1451. ### Privacy:
  1452. - SMS permission only for payment detection.
  1453. - Camera permission only for barcode/AI.
  1454. - Microphone permission only for voice commands.
  1455. - No third-party data sharing.
  1456. - GDPR-aware handling.
  1457.  
  1458. ### Data Ownership:
  1459. - Owner owns all data.
  1460. - Owner can export anytime.
  1461. - Owner can delete permanently.
  1462. - Staff removal doesn't delete historical data.
  1463.  
  1464. ---
  1465.  
  1466. ## ๐ŸŽฎ Gamification & Engagement [PHASE 2]
  1467.  
  1468. ### Staff Gamification:
  1469. - Daily/Weekly/Monthly challenges.
  1470. - XP (experience points) system.
  1471. - Level badges: Beginner โ†’ Pro โ†’ Expert โ†’ Master Seller.
  1472. - Leaderboard with animated rankings.
  1473. - Owner can set prizes.
  1474.  
  1475. ### Owner Achievements:
  1476. - Milestone badges.
  1477. - Monthly progress report cards.
  1478.  
  1479. ### Daily Streaks:
  1480. - Consecutive days with bills.
  1481. - Special badges for 30-day, 100-day, 365-day streaks.
  1482.  
  1483. ---
  1484.  
  1485. ## ๐ŸŒ Multi-Store Support (Future-Ready) [PHASE 3]
  1486.  
  1487. ### Architecture Ready For:
  1488. - Multiple store locations.
  1489. - Switch between stores.
  1490. - Combined analytics.
  1491. - Staff assigned per store.
  1492. - Inventory transfer between stores.
  1493.  
  1494. *(Can be locked as "Coming Soon" for initial release.)*
  1495.  
  1496. ---
  1497.  
  1498. ## ๐Ÿงช Demo Mode [PHASE 1 - MVP]
  1499.  
  1500. ### Demo Login:
  1501. - Password: demo1234
  1502.  
  1503. ### Pre-filled Data:
  1504. - 50+ sample products with images.
  1505. - 30+ sample bills.
  1506. - 10+ sample customers with Udhar.
  1507. - Sample expenses.
  1508. - Sample staff members.
  1509. - 3 months of analytics data.
  1510.  
  1511. ### Demo Features:
  1512. - Banner: "๐ŸŸก DEMO MODE โ€” Data will not be saved permanently."
  1513. - All features fully functional.
  1514. - "Exit Demo" โ†’ Redirects to real signup.
  1515.  
  1516. ---
  1517.  
  1518. ## ๐Ÿ“ฑ Android Runtime Permission System [PHASE 1 - MVP]
  1519.  
  1520. ### Permissions Required:
  1521. - ๐Ÿ“ท Camera (barcode, AI camera billing).
  1522. - ๐Ÿ“ฑ SMS (payment detection).
  1523. - ๐ŸŽค Microphone (voice commands).
  1524. - ๐Ÿ”” Notifications (push alerts).
  1525.  
  1526. ### Permission Flow:
  1527. 1. **Pre-permission explanation screen:**
  1528. - Clear explanation of why permission is needed.
  1529. - What feature requires it.
  1530. - Privacy assurance.
  1531.  
  1532. 2. **Request Options:**
  1533. - Allow
  1534. - Deny
  1535. - Don't ask again
  1536.  
  1537. 3. **If Denied:**
  1538. - Show which features won't work.
  1539. - Retry button.
  1540. - "Open Settings" option for manual enable.
  1541.  
  1542. 4. **Permission Manager Class:**
  1543. - Clean, modular code.
  1544. - Check permission status.
  1545. - Request permission.
  1546. - Handle results.
  1547. - Guide to settings if permanently denied.
  1548.  
  1549. 5. **UI Requirements:**
  1550. - Premium, friendly UI.
  1551. - Icons representing each permission.
  1552. - Not intrusive or scary.
  1553.  
  1554. 6. **Compatibility:**
  1555. - Latest Android versions (Android 13+).
  1556. - Backward compatible to Android 8.
  1557.  
  1558. ---
  1559.  
  1560. ## ๐Ÿš€ Deployment & Technical Stack
  1561.  
  1562. - **Frontend:** Flutter (cross-platform โ€” Android + iOS).
  1563. - **Backend:** Firebase (Firestore + Auth + Storage + Cloud Functions + Cloud Messaging + Remote Config).
  1564. - **Local DB:** Hive or SQLite (offline-first).
  1565. - **AI/ML:** TensorFlow Lite (on-device) + Cloud AI APIs.
  1566. - **Voice:** Google Speech-to-Text + Text-to-Speech APIs.
  1567. - **Notifications:** Firebase Cloud Messaging (FCM).
  1568. - **Payments Detection:** SMS Read API.
  1569. - **Printing:** ESC/POS Bluetooth thermal printer library.
  1570. - **Charts:** fl_chart or syncfusion_flutter_charts.
  1571. - **Animations:** Lottie + Flutter animations + Rive.
  1572. - **State Management:** Riverpod or BLoC.
  1573. - **Image Recognition:** Google ML Kit / TensorFlow Lite.
  1574. - **Barcode:** Google ML Kit Barcode Scanning.
  1575. - **Remote Config:** Firebase Remote Config (feature flags).
  1576. - **Localization:** Flutter intl / ARB files.
  1577.  
  1578. ---
  1579.  
  1580. ## โœ… FINAL GOAL & RULES
  1581.  
  1582. ### Goal:
  1583. Build a **professional, fast, production-ready, owner-controlled retail business management app** with:
  1584.  
  1585. - โœ… Strong real-time analytics and reporting.
  1586. - โœ… Powerful, fully functional AI assistant (voice + camera + intelligence).
  1587. - โœ… Complete staff tracking, permissions, attendance & fraud detection.
  1588. - โœ… Comprehensive owner-staff management (chat, leave, escalations, delegation).
  1589. - โœ… WhatsApp automation (reminders, summaries, receipts, greetings).
  1590. - โœ… Voice and camera-based billing (barcode + AI image detection).
  1591. - โœ… Premium, modern multi-theme UI with smooth animations.
  1592. - โœ… Robust offline-first architecture with seamless sync.
  1593. - โœ… Complete financial management (sales, profit, expenses, Udhar).
  1594. - โœ… Customer CRM with loyalty system.
  1595. - โœ… Supplier management.
  1596. - โœ… Public digital catalog for customers.
  1597. - โœ… Payment reconciliation dashboard.
  1598. - โœ… Staff task management & checklists.
  1599. - โœ… Gamification for staff engagement.
  1600. - โœ… Multi-language support (English, Hinglish, Hindi, Marathi).
  1601. - โœ… Bank-level security and data privacy.
  1602. - โœ… Feature flags for gradual rollout.
  1603. - โœ… Phased development approach (MVP โ†’ Phase 2 โ†’ Phase 3).
  1604.  
  1605. ---
  1606.  
  1607. ### DEVELOPMENT RULES:
  1608.  
  1609. 1. **Every button & feature must be FULLY WORKING** (not dummy/placeholder).
  1610.  
  1611. 2. **AI must be FULLY FUNCTIONAL** with real voice input/output, real camera detection, real predictions.
  1612.  
  1613. 3. **Train AI with ALL business keywords**, phrases, and commands in all 4 languages.
  1614.  
  1615. 4. **Show animations & effects** while tapping, closing, opening, at EACH interaction.
  1616.  
  1617. 5. **Provide demo login** with rich sample data to test everything.
  1618.  
  1619. 6. **App must work OFFLINE FIRST** โ€” never lose data.
  1620.  
  1621. 7. **All timestamps must be AUTO-GENERATED** (date, time, timezone).
  1622.  
  1623. 8. **Bottom navigation must ALWAYS be visible**.
  1624.  
  1625. 9. **App must be FAST** โ€” no lag, no jank, smooth 60fps.
  1626.  
  1627. 10. **Code must be CLEAN, MODULAR, WELL-COMMENTED** and production-ready.
  1628.  
  1629. 11. **Add YOUR OWN CREATIVE IDEAS** wherever you see fit.
  1630.  
  1631. 12. **AI should work externally** โ€” add real AI integration, not mock responses.
  1632.  
  1633. 13. **Mark code changes with // NEW or // UPDATED** comments.
  1634.  
  1635. 14. **Do not start a new project or rewrite big parts** โ€” only add/modify necessary code.
  1636.  
  1637. 15. **Keep all existing screens, flows, models, and data working exactly as before**.
  1638.  
  1639. 16. **Do not rename or delete any classes, files, functions, or fields** unless clearly instructed.
  1640.  
  1641. 17. **Follow MVP vs Phase tagging** โ€” don't build everything at once.
  1642.  
  1643. 18. **Implement feature flags** for gradual feature rollout per shop.
  1644.  
  1645. ---
  1646.  
  1647. ## ๐Ÿ“‹ PHASE SUMMARY
  1648.  
  1649. ### PHASE 1 - MVP (Launch First):
  1650. - Authentication & Security (basic)
  1651. - UI & Layout (all themes)
  1652. - Owner Onboarding Wizard
  1653. - Dashboard
  1654. - Billing Module (core features)
  1655. - Udhar Ledger
  1656. - Basic Analytics
  1657. - Settings (all 5 tabs)
  1658. - Expense Manager (basic)
  1659. - Notifications (core)
  1660. - Offline-First Architecture
  1661. - AI Assistant (core voice commands, billing, navigation)
  1662. - Staff KPI Mini Dashboard
  1663. - Demo Mode
  1664. - Android Permissions System
  1665.  
  1666. ### PHASE 2 (Second Release):
  1667. - 2FA Authentication
  1668. - Home Screen Widgets
  1669. - System-Wide Search
  1670. - AI Advanced Features (coaching, marketing, automation)
  1671. - Payment Reconciliation Dashboard
  1672. - Public Digital Catalog
  1673. - Owner-Staff Management (chat, leave, incidents, escalations, breaks, devices, delegation, feedback)
  1674. - Staff Task Management
  1675. - Customer Loyalty Points
  1676. - Combo/Bundle Billing
  1677. - SMS Payment Detection
  1678. - Cash Count & Reconciliation
  1679. - Multiple Barcodes per Item
  1680. - Smart Holiday Mode
  1681. - Supplier Management
  1682. - CRM
  1683. - Budget Setting
  1684. - Gamification
  1685. - Local Events Awareness
  1686. - Contextual Tooltips
  1687.  
  1688. ### PHASE 3 (Advanced/Premium):
  1689. - Lock-Screen Billing
  1690. - Udhar Interest Calculator
  1691. - Live Screen View
  1692. - What-If Pricing Simulator
  1693. - Supplier Negotiation Helper
  1694. - Customer Sentiment Dashboard
  1695. - Owner Stress Coach
  1696. - AI Fine-Tuning to Owner Preferences
  1697. - Sandbox/Test Mode
  1698. - Multi-Store Support
  1699.  
  1700. ---
  1701.  
  1702. **END OF MERGED PROMPT**
RAW Gist Data Copied