E R P System - Copy this React, Tailwind Component to your project
### Prompt for PureCode.ai **Build a comprehensive ERP system for a liquor store named "Botillería Mal Portados" that includes the following functionalities and features:** #### **1. General Structure and Main Menu** **Main Menu Tabs:** **Inicio (Home):** Displays the application name, a welcome message, and an overview of functionalities. **Inventario (Inventory):** Manage products with detailed information and interactions. **Productos Inactivos (Inactive Products):** Display and manage inactive products. **Ventas (Sales):** Track and register product sales. **Alertas (Alerts):** Notifications for low stock or inactivity. **Estadísticas (Statistics):** Generate graphs and analytics for sales and stock. **Predicciones (Predictions):** Provide insights based on historical data. **Mensajes (Messages):** Communication platform between admin and suppliers. **Recordatorios (Reminders):** Add and display key tasks and alerts. #### **2. Functionalities for Each Section** ##### **Inicio (Home)** Display the app name: `"Botillería Mal Portados"`. Welcome message: `"Bienvenidos al sistema de gestión ERP de la Botillería"`. Overview of system features: Inventory management. Sales tracking. Analytics and reporting. Messaging and reminders. ##### **Gestión de Inventario (Inventory Management)** Display a table with active products: **Columns:** Name, Category, Stock Quantity, Price, Last Sale Date. Provide buttons for: Moving products to **Inactive**. Deleting a product permanently. Include a form to add new products: **Fields:** Name, Category, Initial Stock, Price. Ensure interactivity and real time updates to the product list. ##### **Productos Inactivos (Inactive Products)** List products that have: No sales for over 60 days. Been marked inactive manually. Provide options to: **Reactivate** products back to the inventory. **Delete** inactive products permanently. ##### **Ventas (Sales)** Provide a sales registration form: **Fields:** Select Product, Quantity Sold, Date of Sale. Automatically update the stock of the product upon registering a sale. Display a sales log table: **Columns:** Product Name, Quantity Sold, Date of Sale. ##### **Alertas (Alerts)** Notify when: Stock is below 20 units for a product. Products have been inactive for over 60 days. Provide resolution options: Move to Inactive. Delete product permanently. ##### **Estadísticas (Statistics)** Generate interactive graphs: **Line Chart:** Monthly sales by category. **Pie Chart:** Sales distribution by category. **Bar Chart:** Current stock levels by category. Display formulas used: **Stock Remaining:** `Stock Actual = Stock Inicial Cantidad Vendida`. **ROI Calculation:** `ROI = (Ganancia Neta / Costo de Inversión) x 100`. **Sales Average:** `Promedio = Σ(Ventas) / Número de Meses`. Provide explanations for each formula. ##### **Predicciones (Predictions)** Use historical sales data to predict trends: Example: `"Se aproxima Navidad: Recomendación de stockar 200 unidades de aguardiente."` Example: `"Semana Santa: Sugerencia de 100 unidades adicionales de vino tinto."` Offer related advice: Increase stock in high demand periods. Maintain active supplier communication. ##### **Mensajes (Messages)** Include a communication platform: **Form:** Text area to compose and send messages. **Log:** Display sent and received messages. Examples: `"Proveedor A: Entrega retrasada para el lote de cervezas."` `"Administrador: Solicitar nuevo lote de vinos premium."` ##### **Recordatorios (Reminders)** Allow users to add and view reminders: Example: `"Cambiar focos malos de la tienda."` Example: `"Reponer stock de cigarros."` Example: `"Contactar a proveedor de cervezas Austral."` #### **3. Example Data** ##### **Product Examples:** **Cervezas (Beers):** Cristal, Escudo, Heineken, Corona, Budweiser, Becker, Austral, Kunstmann, Baltica. **Vinos (Wines):** Gato Negro, Casillero del Diablo, Santa Rita, Montes, Tarapacá, Cousiño Macul. **Licores (Liquors):** Pisco Capel, Ron Bacardí, Vodka Absolut, Whisky Johnnie Walker. **Snacks y Cigarros (Snacks and Cigarettes):** Papas fritas Lays, Marlboro, Lucky Strike. **Bebidas No Alcohólicas (Non Alcoholic Drinks):** Coca Cola, Sprite, Red Bull, Cachantún. ##### **Sales Example:** Monthly sales values: January: $15,000 February: $25,000 March: $35,000 April: $45,000 May: $55,000 June: $65,000 ##### **Messages Example:** `"Proveedor A: Ajuste en la entrega del lote de cerveza."` `"Administrador: Solicitud de aumento en el lote de vinos premium."` #### **4. Design and Interactivity** Menus: **Tabs:** Clearly defined sections: Inicio, Inventario, Inactivos, Ventas, Alertas, Estadísticas, Predicciones, Mensajes, Recordatorios. Interactions: Functional buttons to add, delete, and move products between sections. Real time updates for sales and inventory. Graphs with dynamic data updates. Forms for user input in all relevant sections. **Objective:** Develop a user friendly and fully functional ERP system tailored for managing inventory, sales, and communications efficiently in the liquor store "Botillería Mal Portados."
