> For the complete documentation index, see [llms.txt](https://doc.velneo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.velneo.com/27/velneo-vdevelop/analisis-de-bases-de-datos-para-aplicaciones-de-velneo/facturas-de-un-cliente.md).

# Facturas de un cliente

## Facturas de un cliente

### Conceptos a tratar

* Enlaces [singular](/27/velneo-vdevelop/proyectos-objetos-y-editores/proyecto-de-datos/tabla/enlace.md#maestro) y [plural](/27/velneo-vdevelop/proyectos-objetos-y-editores/proyecto-de-datos/tabla/plural.md).&#x20;
* Tabla de tipo [maestro normal con clave numérica](https://doc.velneo.com/27/velneo-vdevelop/analisis-de-bases-de-datos-para-aplicaciones-de-velneo/pages/-M7D76ml9ceGyVOhCei4#maestro-normal-con-clave-numérica).

### Descripción

Realizaremos el análisis de una base de datos que permitirá gestionar las facturas y los clientes a los que facturamos.

### Esquema de la aplicación

![](/files/-M7D7EQZOcV4J4tJcmum)

Este caso se resuelve creando dos [tablas](/27/velneo-vdevelop/proyectos-objetos-y-editores/proyecto-de-datos/tabla.md): FACTURAS y CLIENTES, ambas de tipo maestro normal con clave numérica. Ahora bien: ¿Cómo las enlazamos? Para verlo hemos de enunciar las siguientes frases:

* "Varias facturas pueden ser emitidas al mismo cliente".
* "Una factura sólo puede ser emitida a un cliente".

Está claro que FACTURAS (plural) va a ser un plural de CLIENTES (singular), de modo que enlazaremos ambas tablas mediante un enlace singular-plural.

Al establecer el enlace, se crea automáticamente el campo CLIENTES y el índice CLIENTES en la tabla de FACTURAS, mientras que la tabla CLIENTES crea el plural FACTURAS\_CLIENTES.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.velneo.com/27/velneo-vdevelop/analisis-de-bases-de-datos-para-aplicaciones-de-velneo/facturas-de-un-cliente.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
