# SalesEntries: Exact Online Sales Entries
- Catalog: `ExactOnlineREST`
- Schema: `SalesEntry`
- Primary Keys: `EntryID`
- Label: Sales Entries
The data in this table is partitioned per value of the `Division` column.
Can retrieve data and change data using insert, update and delete.
## Table Columns
The columns of the table `SalesEntries` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `AmountDC` | `double` | Amount Division Currency | ☑ | Amount in the default currency of the company. For the header lines (LineNumber = 0) of an entry this is the SUM(AmountDC) of all lines. |
| `AmountFC` | `double` | Amount Foreign Currency | ☑ | Amount in the currency of the transaction. For the header this is the sum of all lines, including VAT. |
| `BatchNumber` | `int32` | Batch Number | ☐ | The number of the batch of entries. Normally a batch consists of multiple entries. Batchnumbers are filled for invoices created by: - Fixed entries - Prolongation (only available with module hosting). |
| `Created` | `datetime` | Created | ☑ | Creation date. |
| `CreatedUtc` | `datetime` | Created (UTC) | ☐ | Creation date in UTC. |
| `Creator` | `guid` | Creator | ☐ | User ID of creator. |
| `CreatorFullName` | `varchar2`(240) | Creator Full Name | ☐ | Name of creator. |
| `Currency` | `varchar2`(30) | Currency | ☐ | Currency for the invoice. By default this is the currency of the administration. |
| `Customer` | `guid` | Customer | ☐ | Reference to customer (account). |
| `CustomerName` | `varchar2`(50) | Customer Name | ☐ | Name of customer. |
| `CustomField` | `varchar2` | Custom Field | ☐ | |
| `Description` | `varchar2` | Description | ☐ | Description. Can be different for header and lines. |
| `Division` | `int32` | Division | ☑ | Division code. |
| `DivisionCompanyCoCNumber` | `varchar2`(60) | Division Chamber of Commerce Number | ☐ | Chamber of commerce number of the Exact Online division. |
| `DivisionCompanyIBANNumber` | `varchar2`(50) | Division IBAN Number | ☐ | IBAN number of the Exact Online division. |
| `DivisionCompanyName` | `varchar2`(50) | Division Company Name | ☑ | Company name of the Exact Online division. |
| `DivisionCompanyRSINNumber` | `varchar2`(9) | Division RSIN Number | ☐ | RSIN number of the Exact Online division. |
| `DivisionCompanyVATNumber` | `varchar2`(35) | Division VAT Number | ☐ | VAT number of the Exact Online division. |
| `DivisionCompanyWageTaxNumber` | `varchar2`(60) | Division Wage Tax Number | ☐ | Wage tax number of the Exact Online division. |
| `DivisionLabel` | `varchar2`(128) | Division Label | ☑ | Label of the Exact Online division. |
| `DivisionName` | `varchar2`(50) | Administration Name | ☑ | Name of the Exact Online division. |
| `DivisionOwnerCompanyName` | `varchar2`(50) | Subscription Holder Name | ☑ | Name of the customer account in division 1 owning the Exact Online subscription to which this division belongs. |
| `DivisionOwnerCompanyNumber` | `varchar2`(18) | Subscription Holder Number | ☑ | Number of the customer account in division 1 owning the Exact Online subscription to which this division belongs. |
| `DivisionShortName` | `int64` | Division Short Name | ☑ | Short name of the Exact Online division. |
| `Document` | `guid` | Document | ☐ | Document that is manually linked to the invoice. |
| `DocumentNumber` | `int32` | Document Number | ☐ | Number of the document. |
| `DocumentSubject` | `varchar2`(256) | Document Subject | ☐ | Subject of the document. |
| `DueDate` | `datetime` | Due Date | ☐ | The due date for payments. This date is calculated based on the EntryDate and the Paymentcondition. |
| `EntryDate` | `datetime` | Entry Date | ☐ | The date when the invoice is entered. |
| `EntryID` | `guid` | Entry ID | ☑ | The unique ID of the entry. Via this ID all transaction lines of a single entry can be retrieved. |
| `EntryNumber` | `int32` | Entry Number | ☐ | Entry number. |
| `ExternalLinkDescription` | `varchar2` | External Link Description | ☐ | Description of ExternalLink. |
| `ExternalLinkReference` | `varchar2` | External Link Reference | ☐ | Reference of ExternalLink. |
| `GAccountAmountFC` | `double` | G-account Amount Foreign Currency | ☐ | A positive value of the amount indicates that the amount is to be paid by the customer to your G bank account.In case of a credit invoice the amount should have negative value when retrieved or posted to Exact. |
| `InvoiceNumber` | `int32` | Invoice Number | ☐ | Assigned at entry or at printing depending on setting. The number assigned is based on the freenumbers as defined for the Journal. When printing the field InvoiceNumber is copied to the fields EntryNumber and InvoiceNumber of the sales entry. |
| `IsExtraDuty` | `char` | Is Extra Duty | ☐ | Indicates whether the invoice has extra duty. |
| `Journal` | `varchar2`(20) | Journal | ☐ | The journal code. Every invoice should be linked to a sales journal. |
| `JournalDescription` | `varchar2`(60) | Journal Description | ☐ | Description of Journal. |
| `Modified` | `datetime` | Modified | ☑ | Last modified date. |
| `ModifiedUtc` | `datetime` | Modified (UTC) | ☐ | Last modified date in UTC. |
| `Modifier` | `guid` | Modifier | ☐ | User ID of modifier. |
| `ModifierFullName` | `varchar2`(240) | Modified Full Name | ☐ | Name of modifier. |
| `NetAmountDC` | `double` | Net Amount Division Currency | ☐ | Net amount in division currency of sales entry. |
| `NetAmountFC` | `double` | Net Amount Foreign Currency | ☐ | Net amount in foreign currency of sales entry. |
| `OrderNumber` | `int32` | Order Number | ☐ | Number to indentify the invoice. Order numbers are not unique. Default the number is based on a setting for the first free number. |
| `PaymentCondition` | `varchar2`(2) | Payment Condition | ☐ | The payment condition used for due date and discount calculation. |
| `PaymentConditionDescription` | `varchar2`(60) | Payment Condition Description | ☐ | Description of PaymentCondition. |
| `PaymentConditionPaymentMethod` | `varchar2` | | ☐ | |
| `PaymentReference` | `varchar2`(60) | Payment Reference | ☐ | The payment reference used for bank imports, VAT return and Tax reference. |
| `ProcessNumber` | `int32` | Process Number | ☐ | |
| `Rate` | `double` | Rate | ☐ | Foreign currency rate. |
| `ReportingPeriod` | `int16` | Reporting Period | ☐ | The period of the transaction lines. The period should exist in the period date table. |
| `ReportingYear` | `int16` | Reporting Year | ☐ | The financial year to which the entry belongs. The financial year should exist in the period date table. |
| `Reversal` | `char` | Reversal | ☑ | Indicates if amounts are reversed. |
| `Status` | `int16` | Status | ☐ | Status: 5 = Rejected, 20 = Open, 50 = Processed. |
| `StatusDescription` | `varchar2` | Status Description | ☐ | Description of Status. |
| `Type` | `int32` | Type | ☑ | Type: 20 = Sales entry, 21 = Sales credit note. |
| `TypeDescription` | `varchar2`(240) | Type Description | ☐ | Description of Type. |
| `VATAmountDC` | `double` | VAT Amount Division Currency | ☐ | Vat amount in the default currency of the company. |
| `VATAmountFC` | `double` | VAT Amount Foreign Currency | ☐ | Vat amount in the currency of the transaction. |
| `WithholdingTaxAmountDC` | `double` | | ☐ | Withholding tax amount. |
| `WithholdingTaxBaseAmount` | `double` | Withholding Tax Base Amount | ☐ | Withholding tax base amount to calculate withholding amount. |
| `WithholdingTaxPercentage` | `double` | Withholding Tax (%) | ☐ | Withholding tax percentage. |
| `YourRef` | `varchar2`(30) | Your Reference | ☐ | The invoice number of the customer. |