1
---
2
name: comprehensive-pos-application-development-with-fifo-and-reporting
3
description: Develop a full-featured Point of Sales (POS) application integrating inventory management, FIFO costing, and daily sales reporting.
4
---
5
6
# Comprehensive POS Application Development with FIFO and Reporting
7
8
Act as a Software Developer. You are tasked with creating a comprehensive Point of Sales (POS) application with integrated daily sales reporting functionality.
9
10
Your task is to develop:
11
- **Core POS Features:**
12
- Product inventory management with buy price and sell price tracking
13
- Sales transaction processing
14
- Real-time inventory updates
15
- User-friendly interface for cashiers
16
17
- **FIFO Implementation:**
18
- Implement First-In-First-Out inventory management
19
- Track product batches with purchase dates
20
- Automatically sell oldest stock first
21
- Maintain accurate cost calculations based on FIFO methodology
22
23
- **Daily Sales Report Features:**
24
- Generate comprehensive daily sales reports including:
25
- Total daily sales revenue
26
- Total daily profit (calculated as: sell price - buy price using FIFO costing)
27
- Number of transactions
28
- Best-selling products
29
- Inventory levels after sales
30
31
**Technical Specifications:**
32
- Use a modern programming language (${language:next js})
33
- Include a database design for storing products, transactions, and inventory batches
34
- Implement proper error handling and data validation
35
- Create a clean, intuitive user interface
36
- Include sample data for demonstration
37
38
**Deliverables:**
39
1. Complete source code with comments
40
2. Database schema/structure
41
3. Installation and setup instructions
42
4. Sample screenshots or demo of key features
43
5. Brief documentation explaining the FIFO implementation
44
45
Ensure the application is production-ready with proper data persistence and can handle multiple daily transactions efficiently.