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
[timestamp]
,[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_]
,[$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_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[VAT Entry].[Country_Region Code] = [Country_Region].[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]
Show/hide columns in VAT Entry table
Column ID | Column Name | Data Type | ||||
---|---|---|---|---|---|---|
1 | timestamp ![]() | timestamp | ||||
2 | Entry No_ ![]() ![]() | int | ||||
3 | Gen_ Bus_ Posting Group ![]() | nvarchar(40) | ||||
4 | Gen_ Prod_ Posting Group ![]() | nvarchar(40) | ||||
5 | Posting Date ![]() | datetime | ||||
6 | Document No_ ![]() | nvarchar(40) | ||||
7 | Document Type ![]() | int | ||||
8 | Type ![]() | int | ||||
9 | Base ![]() | decimal(38,38) | ||||
10 | Amount ![]() | decimal(38,38) | ||||
11 | VAT Calculation Type ![]() | int | ||||
12 | Bill-to_Pay-to No_ ![]() | nvarchar(40) | ||||
13 | EU 3-Party Trade ![]() | tinyint | ||||
14 | User ID ![]() | nvarchar(100) | ||||
15 | Source Code ![]() | nvarchar(20) | ||||
16 | Reason Code ![]() | nvarchar(20) | ||||
17 | Closed by Entry No_ ![]() | int | ||||
18 | Closed ![]() | tinyint | ||||
19 | Country_Region Code ![]() | nvarchar(20) | ||||
Key to join to the Country_Region table.Show/hide example querySELECT
[VAT Entry].[Country_Region Code]
,[Country_Region].[Code]
FROM
[CRONUS UK Ltd_$VAT Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Entry]
LEFT JOIN
[CRONUS UK Ltd_$Country_Region$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Country_Region]
ON
[VAT Entry].[Country_Region Code] = [Country_Region].[Code] | ||||||
20 | Internal Ref_ No_ ![]() | nvarchar(60) | ||||
21 | Transaction No_ ![]() | int | ||||
22 | Unrealized Amount ![]() | decimal(38,38) | ||||
23 | Unrealized Base ![]() | decimal(38,38) | ||||
24 | Remaining Unrealized Amount ![]() | decimal(38,38) | ||||
25 | Remaining Unrealized Base ![]() | decimal(38,38) | ||||
26 | External Document No_ ![]() | nvarchar(70) | ||||
27 | No_ Series ![]() | nvarchar(40) | ||||
28 | 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] | ||||||
29 | Tax Liable ![]() | tinyint | ||||
30 | 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] | ||||||
31 | Use Tax ![]() | tinyint | ||||
32 | Tax Jurisdiction Code ![]() | nvarchar(20) | ||||
33 | Tax Group Used ![]() | nvarchar(40) | ||||
34 | Tax Type ![]() | int | ||||
35 | Tax on Tax ![]() | tinyint | ||||
36 | Sales Tax Connection No_ ![]() | int | ||||
37 | Unrealized VAT Entry No_ ![]() | int | ||||
38 | VAT Bus_ Posting Group ![]() | nvarchar(40) | ||||
39 | VAT Prod_ Posting Group ![]() | nvarchar(40) | ||||
40 | Additional-Currency Amount ![]() | decimal(38,38) | ||||
41 | Additional-Currency Base ![]() | decimal(38,38) | ||||
42 | Add_-Currency Unrealized Amt_ ![]() | decimal(38,38) | ||||
43 | Add_-Currency Unrealized Base ![]() | decimal(38,38) | ||||
44 | VAT Base Discount _ ![]() | decimal(38,38) | ||||
45 | Add_-Curr_ Rem_ Unreal_ Amount ![]() | decimal(38,38) | ||||
46 | Add_-Curr_ Rem_ Unreal_ Base ![]() | decimal(38,38) | ||||
47 | VAT Difference ![]() | decimal(38,38) | ||||
48 | Add_-Curr_ VAT Difference ![]() | decimal(38,38) | ||||
49 | Ship-to_Order Address Code ![]() | nvarchar(20) | ||||
50 | Document Date ![]() | datetime | ||||
51 | VAT Registration No_ ![]() | nvarchar(40) | ||||
52 | Reversed ![]() | tinyint | ||||
53 | Reversed by Entry No_ ![]() | int | ||||
54 | Reversed Entry No_ ![]() | int | ||||
55 | EU Service ![]() | tinyint | ||||
56 | Base Before Pmt_ Disc_ ![]() | decimal(38,38) | ||||
57 | Journal Templ_ Name ![]() | nvarchar(20) | ||||
58 | Journal Batch Name ![]() | nvarchar(20) | ||||
59 | Realized Amount ![]() | decimal(38,38) | ||||
60 | Realized Base ![]() | decimal(38,38) | ||||
61 | Add_-Curr_ Realized Amount ![]() | decimal(38,38) | ||||
62 | Add_-Curr_ Realized Base ![]() | decimal(38,38) | ||||
63 | G_L Acc_ No_ ![]() | nvarchar(40) | ||||
64 | $systemId ![]() | uniqueidentifier | ||||
65 | $systemCreatedAt ![]() | datetime | ||||
66 | $systemCreatedBy ![]() | uniqueidentifier | ||||
67 | $systemModifiedAt ![]() | datetime | ||||
68 | $systemModifiedBy ![]() | uniqueidentifier |