Every completed order in La Casa del Bordadito is saved to Firestore and can be reviewed at any time from the order history screen. The history gives you a timestamped receipt for each purchase, including all items, their sizes, quantities, the grand total, and how the order was paid.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/La-casa-del-bordadito/llms.txt
Use this file to discover all available pages before exploring further.
Accessing your order history
Tap the history icon in theMainActivity toolbar. This launches HistorialActivity, which immediately queries Firestore for your orders.
How orders are loaded
HistorialActivity.cargarHistorial() fetches all documents from the ordenes Firestore collection where the usuario field equals the current user’s email address:
fecha timestamp so your most recent purchase always appears at the top.
The Orden data model
Each document in theordenes collection maps to the Orden data class:
| Field | Type | Description |
|---|---|---|
id | String | Firestore document ID (assigned automatically) |
usuario | String | Account email used to look up this user’s orders |
total | String | Order grand total, e.g. "$185.00" |
fecha | Long | System.currentTimeMillis() at checkout time |
items | List<CarritoItem> | All products in the order |
metodoPago | String | Payment description, e.g. "Efectivo" or "Visa **** 4242" |
CarritoItem fields
Each item in theitems list is a CarritoItem:
| Field | Description |
|---|---|
carritoItemId | Product identifier |
nombre | Product name |
tamano | Size selected at the time of purchase |
precio | Unit price |
cantidad | Quantity ordered |
imagenUrl | Firebase Storage URL for the product thumbnail |
Viewing order details
Tap any row inHistorialActivity to open HistorialDetalleActivity. The order is passed as a serializable extra:
HistorialDetalleActivity.mostrarDatos() displays:
- Folio: last 8 characters of the Firestore document ID, uppercased.
- Date and time: formatted with
SimpleDateFormat("dd/MM/yyyy HH:mm", Locale.getDefault())applied toorden.fecha. - Payment method: the
metodoPagostring. - Total: the
totalstring. - Product list: rendered in a read-only
RecyclerViewusingCarritoAdapter(orden.items, isReadOnly = true).