> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# invoice table

> This table contains invoice entries, normally created when an invoice is sent to a customer, and we want to update the balance.

## invoice Table (265)

This table contains invoice entries, normally created when an invoice is sent to a customer, and we want to update the balance.

## Fields

| Name           | Description                                                                                  | Type                        | Nullable |
| -------------- | -------------------------------------------------------------------------------------------- | --------------------------- | :------: |
| id             | The primary key (auto-incremented)                                                           | PK                          |    No    |
| time\_charged  | The amount of time (minutes) charged. From version 2.8 this field is no longer in use        | Int                         |    Yes   |
| price\_charged | The amount (money) charged.                                                                  | Double                      |    Yes   |
| customer\_id   | The reference to the customer entry this entry is connected to. NULL or -1 if not connected. | FK [person](./person.mdx)   |    No    |
| company\_id    | The reference to the company entry this entry is connected to. NULL or -1 if not connected.  | FK [contact](./contact.mdx) |    No    |
| created\_at    | When the invoice entry was created.                                                          | DateTime                    |    Yes   |
| description    | A string describing the invoice entry.                                                       | String(255)                 |    Yes   |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/invoice.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=51609ac20577856bfb29abf80b99b0ed" alt="invoice table relationship diagram" width="551" height="59" data-path="media/loc/en/database/tables/invoice.png" />

## Indexes

| Fields       | Types | Description |
| ------------ | ----- | ----------- |
| customer\_id | FK    | Index       |
| company\_id  | FK    | Index       |

## Relationships

| Table                | Description                  |
| -------------------- | ---------------------------- |
| [contact](./contact) | Companies and Organizations. |
| [person](./person)   | Persons                      |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [invoice_entry table](/en/database/tables/invoice-entry.md)
- [invoice_sum table](/en/database/tables/invoice-sum.md)
- [invoice_type table](/en/database/tables/invoice-type.md)
- [login table](/en/database/tables/login.md)
- [InvoiceEntry](/en/automation/crmscript/reference/CRMScript.Native.InvoiceEntry.md)
- [contact table](/en/database/tables/contact.md)
