Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/290
Table Type: Company
Table Name: VAT Amount Line
Database Table Name: CRONUS UK Ltd_$VAT Amount 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 Amount Line can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Amount Line$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[VAT _]
,[VAT Base]
,[VAT Amount]
,[Amount Including VAT]
,[VAT Identifier]
,[Line Amount]
,[Inv_ Disc_ Base Amount]
,[Invoice Discount Amount]
,[VAT Calculation Type]
,[Tax Group Code]
,[Quantity]
,[Modified]
,[Use Tax]
,[Calculated VAT Amount]
,[VAT Difference]
,[Positive]
,[Includes Prepayment]
,[VAT Clause Code]
,[Tax Category]
,[Pmt_ Discount Amount]
,[Non-Deductible VAT _]
,[Non-Deductible VAT Base]
,[Non-Deductible VAT Amount]
,[Calc_ Non-Ded_ VAT Amount]
,[Deductible VAT Base]
,[Deductible VAT Amount]
,[Non-Deductible VAT Diff_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Amount 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 Amount Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Amount Line]
LEFT JOIN
[CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group]
ON
[VAT Amount Line].[Tax Group Code] = [Tax Group].[Code]
LEFT JOIN
[CRONUS UK Ltd_$VAT Clause$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Clause]
ON
[VAT Amount Line].[VAT Clause Code] = [VAT Clause].[Code]
LEFT JOIN
[CRONUS UK Ltd_$Tax Area$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Area]
ON
[VAT Amount Line].[Tax Area Code] = [Tax Area].[Code]
LEFT JOIN
[User] AS [User]
ON
[VAT Amount Line].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Amount Line].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Amount Line table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | VAT % | Tax % | Normal | Decimal | 12 | VAT _ | decimal(38,38) |
2 | VAT Base | Tax Base | Normal | Decimal | 12 | VAT Base | decimal(38,38) |
3 | VAT Amount | Tax Amount | Normal | Decimal | 12 | VAT Amount | decimal(38,38) |
4 | Amount Including VAT | Amount Including Tax | Normal | Decimal | 12 | Amount Including VAT | decimal(38,38) |
5 | VAT Identifier | Tax Identifier | Normal | Code | 20 | VAT Identifier | nvarchar(40) |
6 | Line Amount | Line Amount | Normal | Decimal | 12 | Line Amount | decimal(38,38) |
7 | Inv. Disc. Base Amount | Inv. Disc. Base Amount | Normal | Decimal | 12 | Inv_ Disc_ Base Amount | decimal(38,38) |
8 | Invoice Discount Amount | Invoice Discount Amount | Normal | Decimal | 12 | Invoice Discount Amount | decimal(38,38) |
9 | VAT Calculation Type | VAT Calculation Type | Normal | Option | 4 | VAT Calculation Type | int |
Available options are:
| |||||||
10 | 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 Amount Line].[Tax Group Code] ,[Tax Group].[Code] FROM [CRONUS UK Ltd_$VAT Amount Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Amount Line] LEFT JOIN [CRONUS UK Ltd_$Tax Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Group] ON [VAT Amount Line].[Tax Group Code] = [Tax Group].[Code] | |||||||
11 | Quantity | Quantity | Normal | Decimal | 12 | Quantity | decimal(38,38) |
12 | Modified | Modified | Normal | Boolean | 4 | Modified | tinyint |
13 | Use Tax | Use Tax | Normal | Boolean | 4 | Use Tax | tinyint |
14 | Calculated VAT Amount | Calculated Tax Amount | Normal | Decimal | 12 | Calculated VAT Amount | decimal(38,38) |
15 | VAT Difference | Tax Difference | Normal | Decimal | 12 | VAT Difference | decimal(38,38) |
16 | Positive | Positive | Normal | Boolean | 4 | Positive | tinyint |
17 | Includes Prepayment | Includes Prepayment | Normal | Boolean | 4 | Includes Prepayment | tinyint |
18 | VAT Clause Code | Tax Clause Code | Normal | Code | 20 | VAT Clause Code | nvarchar(40) |
Key to join to the VAT Clause table.Show/hide example querySELECT [VAT Amount Line].[VAT Clause Code] ,[VAT Clause].[Code] FROM [CRONUS UK Ltd_$VAT Amount Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Amount Line] LEFT JOIN [CRONUS UK Ltd_$VAT Clause$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Clause] ON [VAT Amount Line].[VAT Clause Code] = [VAT Clause].[Code] | |||||||
19 | Tax Category | Tax Category | Normal | Code | 10 | Tax Category | nvarchar(20) |
20 | Pmt. Discount Amount | Pmt. Discount Amount | Normal | Decimal | 12 | Pmt_ Discount Amount | decimal(38,38) |
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 | Calc. Non-Ded. VAT Amount | Calculated Non-Deductible Tax Amount | Normal | Decimal | 12 | Calc_ Non-Ded_ VAT Amount | decimal(38,38) |
6204 | Deductible VAT Base | Deductible Tax Base | Normal | Decimal | 12 | Deductible VAT Base | decimal(38,38) |
6205 | Deductible VAT Amount | Deductible Tax Amount | Normal | Decimal | 12 | Deductible VAT Amount | decimal(38,38) |
6206 | Non-Deductible VAT Diff. | Non-Deductible Tax Difference | Normal | Decimal | 12 | Non-Deductible VAT Diff_ | decimal(38,38) |
10001 | Tax Area Code | Tax Area Code | Normal | Code | 20 | ||
Key to join to the Tax Area table.Show/hide example querySELECT [VAT Amount Line].[] ,[Tax Area].[Code] FROM [CRONUS UK Ltd_$VAT Amount Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Amount Line] LEFT JOIN [CRONUS UK Ltd_$Tax Area$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Tax Area] ON [VAT Amount Line].[] = [Tax Area].[Code] | |||||||
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 Amount Line].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Amount Line$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Amount Line] LEFT JOIN [User] AS [User] ON [VAT Amount Line].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |