Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/741
Table Type: Company
Table Name: VAT Report Line
Database Table Name: CRONUS UK Ltd_$VAT Report Line$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 Report Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[VAT Report No_]
,[Line No_]
,[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]
,[Source Code]
,[Reason Code]
,[Country_Region Code]
,[Internal Ref_ No_]
,[Unrealized Amount]
,[Unrealized Base]
,[External Document No_]
,[VAT Bus_ Posting Group]
,[VAT Prod_ Posting Group]
,[VAT Registration No_]
,[Gen_ Bus_ Posting Group]
,[Record Identifier]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Report Line$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 Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[VAT Report Line].[Document Type] = [Sales Header Archive].[Document Type]
AND
[VAT Report Line].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[VAT Report Line].[Document Type] = [Sales Header].[Document Type]
AND
[VAT Report Line].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code]
ON
[VAT Report Line].[Source Code] = [Source Code].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code]
ON
[VAT Report Line].[Reason Code] = [Reason Code].[Code]
LEFT JOIN
[User] AS [User]
ON
[VAT Report Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Report Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Report Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Report Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | VAT Report No. | Tax Report No. | Normal | Code | 20 | VAT Report No_ | nvarchar(40) |
Key to join to the VAT Report Header table.Show/hide example querySELECT [VAT Report Line].[VAT Report No_] ,[VAT Report Header].[No_] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [CRONUS UK Ltd_$VAT Report Header$437dbf0e-84ff-417a-965d-ed2bb9650972$ext] AS [VAT Report Header] ON [VAT Report Line].[VAT Report No_] = [VAT Report Header].[No_] | |||||||
2 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
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 Report Line].[Gen_ Prod_ Posting Group] ,[Gen. Product Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [CRONUS UK Ltd_$Gen_ Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Product Posting Group] ON [VAT Report Line].[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 |
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 Report Line].[Source Code] ,[Source Code].[Code] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [CRONUS UK Ltd_$Source Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Source Code] ON [VAT Report Line].[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 Report Line].[Reason Code] ,[Reason Code].[Code] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [CRONUS UK Ltd_$Reason Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Reason Code] ON [VAT Report Line].[Reason Code] = [Reason Code].[Code] | |||||||
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) |
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) |
26 | External Document No. | External Document No. | Normal | Code | 35 | External Document No_ | nvarchar(70) |
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 Report Line].[VAT Bus_ Posting Group] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [VAT Report Line].[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 Report Line].[VAT Prod_ Posting Group] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [VAT Report Line].[VAT Prod_ Posting Group] = [VAT Product Posting Group].[Code] | |||||||
55 | VAT Registration No. | Tax Registration No. | Normal | Text | 20 | VAT Registration No_ | nvarchar(40) |
56 | 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 Report Line].[Gen_ Bus_ Posting Group] ,[Gen. Business Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [CRONUS UK Ltd_$Gen_ Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Gen. Business Posting Group] ON [VAT Report Line].[Gen_ Bus_ Posting Group] = [Gen. Business Posting Group].[Code] | |||||||
100 | Record Identifier | Record Identifier | Normal | Code | 30 | Record Identifier | nvarchar(60) |
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 Report Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Report Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Line] LEFT JOIN [User] AS [User] ON [VAT Report Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |