Accessing Orders
Navigate to Admin Panel > Orders to view all orders in the system. Each order displays:- Order number and date
- Customer name and email
- Delivery address
- Order status badge
- Total amount in COP
- Shipping tracking number (if available)
Order Status Workflow
Orders follow a defined workflow with these states:- Pendiente (Pending): Order placed, awaiting payment confirmation
- Pagado (Paid): Payment received and confirmed
- En preparación (In Preparation): Order being prepared for shipment
- Enviado (Shipped): Order dispatched to customer
- Entregado (Delivered): Order successfully delivered
- Cancelado (Cancelled): Order cancelled at any stage
Order status can only transition in specific sequences. For example, you cannot change a “Pending” order directly to “Shipped” - it must go through “Paid” and “In Preparation” first.
Filtering Orders
Use the filter buttons at the top to view orders by status:- Todos (All): View all orders
- Pendientes (Pending): Orders awaiting payment
- Pagados (Paid): Confirmed payments
- En preparación: Orders being processed
- Enviados (Shipped): Orders in transit
- Entregados (Delivered): Completed orders
- Cancelados (Cancelled): Cancelled orders
Updating Order Status
Automatic Inventory Adjustments
When you change order status, inventory is automatically updated:Stock Deduction
- When status changes to Pagado (Paid) or Entregado (Delivered)
- Stock is decreased by the order quantities
- Movement is recorded as “Venta/Pedido #[order_id]“
Stock Restoration
- When a previously paid/delivered order is changed to Cancelado (Cancelled)
- Stock is increased by the original order quantities
- Movement is recorded as “Cancelación Pedido #[order_id]”
Creating a New Order
Add products
- Use the product search or dropdown to find items
- Click + Ítem to add the product
- Set quantity, price, and discount % for each item
- Stock levels are shown for each product (red warning for low stock)
Review totals
The form automatically calculates:
- Subtotal: Sum of all items before discounts
- Descuentos: Total discount amount
- IVA (19%): Tax on net amount
- Total Neto: Final amount
When creating orders manually, stock is shown in real-time. If a product has 2 or fewer units in stock, the quantity appears in red as a warning.
Editing an Existing Order
Modify order details
You can update:
- Customer
- Delivery address
- Order status
- Tracking number (Nº Guía) if available
Add or remove products
- Use the product selector to add new items
- Click the ✕ button to remove existing items
- Update quantities and prices as needed
Order Details
Each order card shows a complete breakdown:Customer Information
- 👤 Customer name and email
- 📍 Delivery address
- 🚚 Tracking number (when available)
Product Details
For each item in the order:- Product name and image
- Quantity (Cant.)
- Unit price (Precio Unit.)
- Discount percentage (Dcto.)
- IVA (19% tax)
- Subtotal
Generating Invoice PDFs
Click the 📄 PDF button on any order to download a printable invoice. The PDF opens in a new tab and includes:- Complete order details
- Customer information
- Itemized product list with pricing
- Tax calculations and totals
Deleting Orders
Order Status Badge Colors
- 🟡 Yellow: Pendiente (Pending)
- 🔵 Blue: Pagado (Paid) and Enviado (Shipped)
- 🟣 Purple: En preparación (In Preparation)
- 🟢 Green: Entregado (Delivered)
- 🔴 Red: Cancelado (Cancelled)