# Facturas de un cliente

## Facturas de un cliente

### Conceptos a tratar

* Enlaces [singular](/25/velneo-vdevelop/proyectos-objetos-y-editores/proyecto-de-datos/tabla/enlace.md#maestro) y [plural](/25/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/25/velneo-vdevelop/analisis-de-bases-de-datos-para-aplicaciones-de-velneo/pages/-M7D7XxiWpBME1g0Qnkv#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](/25/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: 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/25/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.
