Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/254
Table Type: Company
Table Name: VAT Entry
Database Table Name: CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972
Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how VAT Entry can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Entry No_]
,[Gen_ Bus_ Posting Group]
,[Gen_ Prod_ Posting Group]
,[Posting Date]
,[Document No_]
,[Document Type]
,[Type]
,[Base]
,[Amount]
,[VAT Calculation Type]
,[Bill-to_Pay-to No_]
,[EU 3-Party Trade]
,[User ID]
,[Source Code]
,[Reason Code]
,[Closed by Entry No_]
,[Closed]
,[Country_Region Code]
,[Internal Ref_ No_]
,[Transaction No_]
,[Unrealized Amount]
,[Unrealized Base]
,[Remaining Unrealized Amount]
,[Remaining Unrealized Base]
,[External Document No_]
,[No_ Series]
,[Tax Area Code]
,[Tax Liable]
,[Tax Group Code]
,[Use Tax]
,[Tax Jurisdiction Code]
,[Tax Group Used]
,[Tax Type]
,[Tax on Tax]
,[Sales Tax Connection No_]
,[Unrealized VAT Entry No_]
,[VAT Bus_ Posting Group]
,[VAT Prod_ Posting Group]
,[Additional-Currency Amount]
,[Additional-Currency Base]
,[Add_-Currency Unrealized Amt_]
,[Add_-Currency Unrealized Base]
,[VAT Base Discount _]
,[Add_-Curr_ Rem_ Unreal_ Amount]
,[Add_-Curr_ Rem_ Unreal_ Base]
,[VAT Difference]
,[Add_-Curr_ VAT Difference]
,[Ship-to_Order Address Code]
,[Document Date]
,[VAT Registration No_]
,[Reversed]
,[Reversed by Entry No_]
,[Reversed Entry No_]
,[EU Service]
,[Base Before Pmt_ Disc_]
,[Journal Templ_ Name]
,[Journal Batch Name]
,[Realized Amount]
,[Realized Base]
,[Add_-Curr_ Realized Amount]
,[Add_-Curr_ Realized Base]
,[G_L Acc_ No_]
,[VAT Reporting Date]
,[Non-Deductible VAT _]
,[Non-Deductible VAT Base]
,[Non-Deductible VAT Amount]
,[Non-Deductible VAT Base ACY]
,[Non-Deductible VAT Amount ACY]
,[Non-Deductible VAT Diff_]
,[Non-Deductible VAT Diff_ ACY]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[VAT Entry].[Document Type] = [Sales Header].[Document Type]
AND
[VAT Entry].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[VAT Entry].[Document Type] = [Sales Header Archive].[Document Type]
AND
[VAT Entry].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code]
ON
[VAT Entry].[Source Code] = [Source Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code]
ON
[VAT Entry].[Reason Code] = [Reason Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Tax Area$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Area]
ON
[VAT Entry].[Tax Area Code] = [Tax Area].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group]
ON
[VAT Entry].[Tax Group Code] = [Tax Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Tax Jurisdiction$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Jurisdiction]
ON
[VAT Entry].[Tax Jurisdiction Code] = [Tax Jurisdiction].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group]
ON
[VAT Entry].[Tax Group Used] = [Tax Group].[Code]
LEFT JOIN
[User] AS [User]
ON
[VAT Entry].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Entry].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Entry table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Entry No. | Entry No. | Normal | Integer | 4 | Entry No_ | int |
2 | Gen. Bus. Posting Group | Gen. Bus. Posting Group | Normal | Code | 20 | Gen_ Bus_ Posting Group | nvarchar(40) |
Key to join to the Gen. Business Posting Group table.Show/hide example querySELECT [VAT Entry].[Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [VAT Entry].[Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
3 | Gen. Prod. Posting Group | Gen. Prod. Posting Group | Normal | Code | 20 | Gen_ Prod_ Posting Group | nvarchar(40) |
Key to join to the Gen. Product Posting Group table.Show/hide example querySELECT [VAT Entry].[Gen_ Prod_ Posting Group] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [VAT Entry].[Gen_ Prod_ Posting Group] = [Gen. Product Posting Group].[Code] | |||||||
4 | Posting Date | Posting Date | Normal | Date | 4 | Posting Date | datetime |
5 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
6 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
7 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
8 | Base | Base | Normal | Decimal | 12 | Base | decimal(38,38) |
9 | Amount | Amount | Normal | Decimal | 12 | Amount | decimal(38,38) |
10 | VAT Calculation Type | VAT Calculation Type | Normal | Option | 4 | VAT Calculation Type | int |
Available options are:
| |||||||
12 | Bill-to/Pay-to No. | Bill-to/Pay-to No. | Normal | Code | 20 | Bill-to_Pay-to No_ | nvarchar(40) |
13 | EU 3-Party Trade | EU 3-Party Trade | Normal | Boolean | 4 | EU 3-Party Trade | tinyint |
14 | User ID | User ID | Normal | Code | 50 | User ID | nvarchar(100) |
15 | Source Code | Source Code | Normal | Code | 10 | Source Code | nvarchar(20) |
Key to join to the Source Code table.Show/hide example querySELECT [VAT Entry].[Source Code] ,[Source Code].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code] ON [VAT Entry].[Source Code] = [Source Code].[Code] | |||||||
16 | Reason Code | Reason Code | Normal | Code | 10 | Reason Code | nvarchar(20) |
Key to join to the Reason Code table.Show/hide example querySELECT [VAT Entry].[Reason Code] ,[Reason Code].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code] ON [VAT Entry].[Reason Code] = [Reason Code].[Code] | |||||||
17 | Closed by Entry No. | Closed by Entry No. | Normal | Integer | 4 | Closed by Entry No_ | int |
18 | Closed | Closed | Normal | Boolean | 4 | Closed | tinyint |
19 | Country/Region Code | Country/Region Code | Normal | Code | 10 | Country_Region Code | nvarchar(20) |
20 | Internal Ref. No. | Internal Ref. No. | Normal | Text | 30 | Internal Ref_ No_ | nvarchar(60) |
21 | Transaction No. | Transaction No. | Normal | Integer | 4 | Transaction No_ | int |
22 | Unrealized Amount | Unrealized Amount | Normal | Decimal | 12 | Unrealized Amount | decimal(38,38) |
23 | Unrealized Base | Unrealized Base | Normal | Decimal | 12 | Unrealized Base | decimal(38,38) |
24 | Remaining Unrealized Amount | Remaining Unrealized Amount | Normal | Decimal | 12 | Remaining Unrealized Amount | decimal(38,38) |
25 | Remaining Unrealized Base | Remaining Unrealized Base | Normal | Decimal | 12 | Remaining Unrealized Base | decimal(38,38) |
26 | External Document No. | External Document No. | Normal | Code | 35 | External Document No_ | nvarchar(70) |
28 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [VAT Entry].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [VAT Entry].[No_ Series] = [No. Series].[Code] | |||||||
29 | Tax Area Code | Tax Area Code | Normal | Code | 20 | Tax Area Code | nvarchar(40) |
Key to join to the Tax Area table.Show/hide example querySELECT [VAT Entry].[Tax Area Code] ,[Tax Area].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Tax Area$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Area] ON [VAT Entry].[Tax Area Code] = [Tax Area].[Code] | |||||||
30 | Tax Liable | Tax Liable | Normal | Boolean | 4 | Tax Liable | tinyint |
31 | Tax Group Code | Tax Group Code | Normal | Code | 20 | Tax Group Code | nvarchar(40) |
Key to join to the Tax Group table.Show/hide example querySELECT [VAT Entry].[Tax Group Code] ,[Tax Group].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group] ON [VAT Entry].[Tax Group Code] = [Tax Group].[Code] | |||||||
32 | Use Tax | Use Tax | Normal | Boolean | 4 | Use Tax | tinyint |
33 | Tax Jurisdiction Code | Tax Jurisdiction Code | Normal | Code | 10 | Tax Jurisdiction Code | nvarchar(20) |
Key to join to the Tax Jurisdiction table.Show/hide example querySELECT [VAT Entry].[Tax Jurisdiction Code] ,[Tax Jurisdiction].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Tax Jurisdiction$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Jurisdiction] ON [VAT Entry].[Tax Jurisdiction Code] = [Tax Jurisdiction].[Code] | |||||||
34 | Tax Group Used | Tax Group Used | Normal | Code | 20 | Tax Group Used | nvarchar(40) |
Key to join to the Tax Group table.Show/hide example querySELECT [VAT Entry].[Tax Group Used] ,[Tax Group].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group] ON [VAT Entry].[Tax Group Used] = [Tax Group].[Code] | |||||||
35 | Tax Type | Tax Type | Normal | Option | 4 | Tax Type | int |
Available options are:
| |||||||
36 | Tax on Tax | Tax on Tax | Normal | Boolean | 4 | Tax on Tax | tinyint |
37 | Sales Tax Connection No. | Sales Tax Connection No. | Normal | Integer | 4 | Sales Tax Connection No_ | int |
38 | Unrealized VAT Entry No. | Unrealized Tax Entry No. | Normal | Integer | 4 | Unrealized VAT Entry No_ | int |
39 | VAT Bus. Posting Group | VAT Bus. Posting Group | Normal | Code | 20 | VAT Bus_ Posting Group | nvarchar(40) |
Key to join to the VAT Business Posting Group table.Show/hide example querySELECT [VAT Entry].[VAT Bus_ Posting Group] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [VAT Entry].[VAT Bus_ Posting Group] = [VAT Business Posting Group].[Code] | |||||||
40 | VAT Prod. Posting Group | VAT Prod. Posting Group | Normal | Code | 20 | VAT Prod_ Posting Group | nvarchar(40) |
Key to join to the VAT Product Posting Group table.Show/hide example querySELECT [VAT Entry].[VAT Prod_ Posting Group] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [VAT Entry].[VAT Prod_ Posting Group] = [VAT Product Posting Group].[Code] | |||||||
43 | Additional-Currency Amount | Additional-Currency Amount | Normal | Decimal | 12 | Additional-Currency Amount | decimal(38,38) |
44 | Additional-Currency Base | Additional-Currency Base | Normal | Decimal | 12 | Additional-Currency Base | decimal(38,38) |
45 | Add.-Currency Unrealized Amt. | Add.-Currency Unrealized Amt. | Normal | Decimal | 12 | Add_-Currency Unrealized Amt_ | decimal(38,38) |
46 | Add.-Currency Unrealized Base | Add.-Currency Unrealized Base | Normal | Decimal | 12 | Add_-Currency Unrealized Base | decimal(38,38) |
48 | VAT Base Discount % | VAT Base Discount % | Normal | Decimal | 12 | VAT Base Discount _ | decimal(38,38) |
49 | Add.-Curr. Rem. Unreal. Amount | Add.-Curr. Rem. Unreal. Amount | Normal | Decimal | 12 | Add_-Curr_ Rem_ Unreal_ Amount | decimal(38,38) |
50 | Add.-Curr. Rem. Unreal. Base | Add.-Curr. Rem. Unreal. Base | Normal | Decimal | 12 | Add_-Curr_ Rem_ Unreal_ Base | decimal(38,38) |
51 | VAT Difference | Tax Difference | Normal | Decimal | 12 | VAT Difference | decimal(38,38) |
52 | Add.-Curr. VAT Difference | Add.-Curr. Tax Difference | Normal | Decimal | 12 | Add_-Curr_ VAT Difference | decimal(38,38) |
53 | Ship-to/Order Address Code | Ship-to/Order Address Code | Normal | Code | 10 | Ship-to_Order Address Code | nvarchar(20) |
54 | Document Date | Document Date | Normal | Date | 4 | Document Date | datetime |
55 | VAT Registration No. | Tax Registration No. | Normal | Text | 20 | VAT Registration No_ | nvarchar(40) |
56 | Reversed | Reversed | Normal | Boolean | 4 | Reversed | tinyint |
57 | Reversed by Entry No. | Reversed by Entry No. | Normal | Integer | 4 | Reversed by Entry No_ | int |
58 | Reversed Entry No. | Reversed Entry No. | Normal | Integer | 4 | Reversed Entry No_ | int |
59 | EU Service | EU Service | Normal | Boolean | 4 | EU Service | tinyint |
60 | Base Before Pmt. Disc. | Base Before Pmt. Disc. | Normal | Decimal | 12 | Base Before Pmt_ Disc_ | decimal(38,38) |
78 | Journal Templ. Name | Journal Template Name | Normal | Code | 10 | Journal Templ_ Name | nvarchar(20) |
79 | Journal Batch Name | Journal Batch Name | Normal | Code | 10 | Journal Batch Name | nvarchar(20) |
81 | Realized Amount | Realized Amount | Normal | Decimal | 12 | Realized Amount | decimal(38,38) |
82 | Realized Base | Realized Base | Normal | Decimal | 12 | Realized Base | decimal(38,38) |
83 | Add.-Curr. Realized Amount | Add.-Curr. Realized Amount | Normal | Decimal | 12 | Add_-Curr_ Realized Amount | decimal(38,38) |
84 | Add.-Curr. Realized Base | Add.-Curr. Realized Base | Normal | Decimal | 12 | Add_-Curr_ Realized Base | decimal(38,38) |
85 | G/L Acc. No. | G/L Account No. | Normal | Code | 20 | G_L Acc_ No_ | nvarchar(40) |
86 | VAT Reporting Date | Tax Date | Normal | Date | 4 | VAT Reporting Date | datetime |
6200 | Non-Deductible VAT % | Non-Deductible Tax % | Normal | Decimal | 12 | Non-Deductible VAT _ | decimal(38,38) |
6201 | Non-Deductible VAT Base | Non-Deductible Tax Base | Normal | Decimal | 12 | Non-Deductible VAT Base | decimal(38,38) |
6202 | Non-Deductible VAT Amount | Non-Deductible Tax Amount | Normal | Decimal | 12 | Non-Deductible VAT Amount | decimal(38,38) |
6203 | Non-Deductible VAT Base ACY | Non-Deductible Tax Base ACY | Normal | Decimal | 12 | Non-Deductible VAT Base ACY | decimal(38,38) |
6204 | Non-Deductible VAT Amount ACY | Non-Deductible Tax Amount ACY | Normal | Decimal | 12 | Non-Deductible VAT Amount ACY | decimal(38,38) |
6205 | Non-Deductible VAT Diff. | Non-Deductible Tax Difference | Normal | Decimal | 12 | Non-Deductible VAT Diff_ | decimal(38,38) |
6206 | Non-Deductible VAT Diff. ACY | Non-Deductible Tax Difference ACY | Normal | Decimal | 12 | Non-Deductible VAT Diff_ ACY | decimal(38,38) |
10015 | Tax Exemption No. | Tax Exemption No. | Normal | Text | 30 | ||
10018 | STE Transaction ID | STE Transaction ID | Normal | Text | 20 | ||
10019 | GST/HST | GST/HST | Normal | Option | 4 | ||
27030 | DIOT Type of Operation | DIOT Type of Operation | Normal | Option | 4 | ||
27040 | DIOT-Type of Operation | DIOT Type of Operation | Normal | Option | 4 | ||
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
Key to join to the User table.Show/hide example querySELECT [VAT Entry].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry] LEFT JOIN [User] AS [User] ON [VAT Entry].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |