Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/256
Table Type: Company
Table Name: VAT Statement Line
Database Table Name: CRONUS UK Ltd_$VAT Statement 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 Statement Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Statement Template Name]
,[Statement Name]
,[Line No_]
,[Row No_]
,[Description]
,[Type]
,[Account Totaling]
,[Gen_ Posting Type]
,[VAT Bus_ Posting Group]
,[VAT Prod_ Posting Group]
,[Row Totaling]
,[Amount Type]
,[Calculate with]
,[Print]
,[Print with]
,[New Page]
,[Tax Jurisdiction Code]
,[Use Tax]
,[Box No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Statement 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 Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Line]
LEFT JOIN
[CRONUS UK Ltd_$VAT Statement Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Template]
ON
[VAT Statement Line].[Statement Template Name] = [VAT Statement Template].[Name]
LEFT JOIN
[CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
ON
[VAT Statement Line].[Account Totaling] = [G/L Account].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Tax Jurisdiction$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Jurisdiction]
ON
[VAT Statement Line].[Tax Jurisdiction Code] = [Tax Jurisdiction].[Code]
LEFT JOIN
[User] AS [User]
ON
[VAT Statement Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Statement Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Statement Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Statement Template Name | Statement Template Name | Normal | Code | 10 | Statement Template Name | nvarchar(20) |
Key to join to the VAT Statement Template table.Show/hide example querySELECT [VAT Statement Line].[Statement Template Name] ,[VAT Statement Template].[Name] FROM [CRONUS UK Ltd_$VAT Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Line] LEFT JOIN [CRONUS UK Ltd_$VAT Statement Template$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Template] ON [VAT Statement Line].[Statement Template Name] = [VAT Statement Template].[Name] | |||||||
2 | Statement Name | Statement Name | Normal | Code | 10 | Statement Name | nvarchar(20) |
3 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
4 | Row No. | Row No. | Normal | Code | 10 | Row No_ | nvarchar(20) |
5 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
6 | Type | Type | Normal | Option | 4 | Type | int |
Available options are:
| |||||||
7 | Account Totaling | Account Totaling | Normal | Text | 30 | Account Totaling | nvarchar(60) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Statement Line].[Account Totaling] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Line] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Statement Line].[Account Totaling] = [G/L Account].[No_] | |||||||
8 | Gen. Posting Type | Gen. Posting Type | Normal | Option | 4 | Gen_ Posting Type | int |
Available options are:
| |||||||
9 | 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 Statement Line].[VAT Bus_ Posting Group] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Line] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [VAT Statement Line].[VAT Bus_ Posting Group] = [VAT Business Posting Group].[Code] | |||||||
10 | 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 Statement Line].[VAT Prod_ Posting Group] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Line] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [VAT Statement Line].[VAT Prod_ Posting Group] = [VAT Product Posting Group].[Code] | |||||||
11 | Row Totaling | Row Totaling | Normal | Text | 50 | Row Totaling | nvarchar(100) |
12 | Amount Type | Amount Type | Normal | Option | 4 | Amount Type | int |
Available options are:
| |||||||
13 | Calculate with | Calculate with | Normal | Option | 4 | Calculate with | int |
Available options are:
| |||||||
14 | Normal | Boolean | 4 | tinyint | |||
15 | Print with | Print with | Normal | Option | 4 | Print with | int |
Available options are:
| |||||||
16 | Date Filter | Date Filter | FlowFilter | Date | 4 | ||
17 | New Page | New Page | Normal | Boolean | 4 | New Page | tinyint |
18 | 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 Statement Line].[Tax Jurisdiction Code] ,[Tax Jurisdiction].[Code] FROM [CRONUS UK Ltd_$VAT Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Line] LEFT JOIN [CRONUS UK Ltd_$Tax Jurisdiction$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Jurisdiction] ON [VAT Statement Line].[Tax Jurisdiction Code] = [Tax Jurisdiction].[Code] | |||||||
19 | Use Tax | Use Tax | Normal | Boolean | 4 | Use Tax | tinyint |
20 | Box No. | Box No. | Normal | Text | 30 | Box No_ | 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 Statement Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Statement Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Statement Line] LEFT JOIN [User] AS [User] ON [VAT Statement Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |