E R P System V.1.2 - Copy this React, Tailwind Component to your project
Please add the following functionality to the Ventas menu without altering or deleting any existing functionality. Only implement the requested changes: Requested Functionality: Registro de Ventas: - Add the following features: - Allow users to select a product, input the quantity to be sold, and calculate the total price based on the current stock prices listed in the inventory. - Include a Finalizar Venta button. Upon clicking this button, display a detailed Boleta (receipt) with the following information: - List of purchased products with quantities and prices. - Vendedor: "Carmy Berzatto". - Fecha: Current date. - ID de Compra: Generate a random purchase ID. - Total: Total cost of the purchase. - Nombre del Negocio: "Botillería Aquí Copetes.cl". - Automatically update the stock of the products after a sale is finalized. 2. Tabla con Ventas Realizadas: - Add a table to display all completed sales with the following columns: - Producto: Name of the sold product. - Cantidad Vendida: Quantity sold. - Fecha de Venta: Date when the sale was made. Additional Notes: - Ensure the Boleta (receipt) design is clear and user-friendly. - Integrate the new features seamlessly with the existing system. - Maintain consistency with the current design and structure of the application.
