Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/15aozzz/Lab-Nova-Salud/llms.txt

Use this file to discover all available pages before exploring further.

The Productos page is your central inventory catalog. Every medicine available for sale must exist here first. From this page you can browse the full product list, search for specific items, register new products, and update details such as pricing, stock thresholds, and presentation information. Route: /productos

What you can do on this page

  • Browse the catalog — all products are listed in a paginated table showing the commercial name, active ingredient, laboratory, presentation, current stock, and minimum stock threshold.
  • Filter and search — narrow the list by product name, active ingredient, category, or laboratory using the filter bar at the top. Searches use the sp_buscar_productos stored procedure, which returns results as soon as you type at least 2 characters.
  • Add a new product — open the Nuevo Producto modal to register a medicine not yet in the system.
  • Edit an existing product — click the edit icon on any row to open the product drawer, where you can update all fields including pricing tiers and stock levels.
The search field queries products by commercial name or active ingredient simultaneously. Results are grouped by product — each result includes the product’s details along with all of its configured pricing units.
The search requires at least 2 characters before results are returned. Shorter inputs are ignored to avoid overloading the query.

Pricing tiers

Each product can have one or more pricing tiers, allowing you to sell the same medicine in different units at different prices. Common examples:
Pricing unitEquivalenceSale price
Unidad (tablet)1 base unitS/. 0.50
Blíster x1010 base unitsS/. 4.50
Caja x100100 base unitsS/. 40.00
When a cashier adds a product to a sale on the Nueva Venta page, they choose the pricing tier that matches what the customer is purchasing. Stock is deducted in base units using the equivalence factor (cantidad_equivalente) of the selected tier.
Always configure at least one pricing tier when creating a product — a product without prices cannot be added to a sale.

Adding a new product

When you click Nuevo Producto, a modal form opens with the following required fields:
  • Nombre comercial — the brand name of the medicine.
  • Categoría — the therapeutic category (e.g., analgesic, antibiotic).
  • Laboratorio — the manufacturer.
  • Precios — at least one pricing tier with unit name, equivalence factor, and sale price.
Optional fields include active ingredient (principio_activo), presentation (presentacion), initial stock, and minimum stock threshold.

Editing a product

Click the edit icon on any row to open the product drawer. You can modify all fields, including adjusting existing pricing tiers or adding new ones. Changes are saved atomically — if the update fails, no partial changes are applied.

Build docs developers (and LLMs) love