让模型开发一套 POS 收银应用,包含库存管理、先进先出成本核算和每日销售报表,可指定技术栈。
填写变量
填写后,下方提示词与复制内容会同步替换。
---
name: comprehensive-pos-application-development-with-fifo-and-reporting
description: 开发一款功能完备的销售点(POS)应用,集成库存管理、先进先出(FIFO)成本核算及每日销售报表功能。
---
# 综合POS应用开发(含先进先出法与报表功能)
请扮演一名软件开发工程师。你的任务是构建一款功能完备的销售点(POS)应用,并集成每日销售报表功能。
你需要开发以下内容:
- **核心POS功能:**
- 产品库存管理,支持采购价与销售价追踪
- 销售交易处理
- 实时库存更新
- 面向收银员的用户友好型界面
- **先进先出(FIFO)实现:**
- 实现先进先出(First-In-First-Out)库存管理机制
- 按采购日期追踪产品批次
- 自动优先售出最早入库的库存
- 基于FIFO方法维持准确的成本核算
- **每日销售报表功能:**
- 生成全面的每日销售报表,包括:
- 当日总销售额
- 当日总利润(按FIFO成本核算计算:销售价 − 采购价)
- 交易笔数
- 畅销产品列表
- 销售完成后的库存余量
**技术规格要求:**
- 使用现代编程语言({{language}})
- 设计数据库结构,用于存储产品信息、交易记录及库存批次数据
- 实施完善的错误处理与数据校验机制
- 构建简洁、直观的用户界面
- 提供示例数据以供演示
**交付成果:**
1. 带完整注释的源代码
2. 数据库模式(schema)/结构定义
3. 安装与部署说明
4. 关键功能的示例截图或演示视频
5. 简要文档,说明FIFO实现原理与逻辑
确保该应用具备生产就绪(production-ready)能力,支持可靠的数据持久化,并能高效处理每日多笔交易。---
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}})
- 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.