Skip to main content
Prompts Next.js POS App with FIFO Inventory and Reports

model coding template risk: medium

Next.js POS App with FIFO Inventory and Reports

The prompt tasks the model with acting as a software developer to create a comprehensive Point of Sales (POS) application using Next.js, featuring product inventory management, FIF…

  • Policy sensitive
  • Human review

PROMPT

---
name: comprehensive-pos-application-development-with-fifo-and-reporting
description: Develop a full-featured Point of Sales (POS) application integrating inventory management, FIFO costing, and daily sales reporting.
---

# Comprehensive POS Application Development with FIFO and Reporting

Act as a Software Developer. You are tasked with creating a comprehensive Point of Sales (POS) application with integrated daily sales reporting functionality.

Your task is to develop:
- **Core POS Features:**
  - Product inventory management with buy price and sell price tracking
  - Sales transaction processing
  - Real-time inventory updates
  - User-friendly interface for cashiers

- **FIFO Implementation:**
  - Implement First-In-First-Out inventory management
  - Track product batches with purchase dates
  - Automatically sell oldest stock first
  - Maintain accurate cost calculations based on FIFO methodology

- **Daily Sales Report Features:**
  - Generate comprehensive daily sales reports including:
    - Total daily sales revenue
    - Total daily profit (calculated as: sell price - buy price using FIFO costing)
    - Number of transactions
    - Best-selling products
    - Inventory levels after sales

**Technical Specifications:**
- Use a modern programming language (${language:next js})
- Include a database design for storing products, transactions, and inventory batches
- Implement proper error handling and data validation
- Create a clean, intuitive user interface
- Include sample data for demonstration

**Deliverables:**
1. Complete source code with comments
2. Database schema/structure
3. Installation and setup instructions
4. Sample screenshots or demo of key features
5. Brief documentation explaining the FIFO implementation

Ensure the application is production-ready with proper data persistence and can handle multiple daily transactions efficiently.

INPUTS

language

Programming language to use for the application

e.g. next js

OPTIONAL CONTEXT

  • sample data

ROLES & RULES

Role assignments

  • Act as a Software Developer.

EXPECTED OUTPUT

Format
structured_report
Schema
numbered_list · Complete source code with comments, Database schema/structure, Installation and setup instructions, Sample screenshots or demo of key features, Brief documentation explaining the FIFO implementation
Constraints
  • complete source code with comments
  • database schema
  • installation instructions
  • sample screenshots or demo
  • documentation on FIFO

SUCCESS CRITERIA

  • Develop core POS features
  • Implement FIFO inventory management
  • Generate daily sales reports
  • Use a modern programming language
  • Include database design
  • Implement error handling and data validation
  • Create clean user interface
  • Include sample data
  • Ensure production-ready application

FAILURE MODES

  • May fail to implement FIFO costing accurately
  • Could omit real-time inventory updates
  • Might lack comprehensive reporting metrics
  • Possibly produce non-intuitive UI
  • May not handle multiple transactions efficiently

CAVEATS

Dependencies
  • Resolution of ${language:next js} placeholder for programming language
Missing context
  • Specific database technology (e.g., PostgreSQL, MongoDB, SQLite)
  • Frontend UI/styling framework (e.g., Tailwind CSS, Chakra UI)

QUALITY

OVERALL
0.90
CLARITY
0.95
SPECIFICITY
0.90
REUSABILITY
0.85
COMPLETENESS
0.90

IMPROVEMENT SUGGESTIONS

  • Replace ${language:next js} with a clearer placeholder like ${language} and provide examples.
  • Add a placeholder for database type, e.g., ${database:PostgreSQL}.
  • Specify requirements for authentication or multi-user support if needed.
  • Include constraints on scalability or performance metrics.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR MODEL