Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/325
Table Type: Company
Table Name: VAT Posting Setup
Database Table Name: CRONUS UK Ltd_$VAT Posting Setup$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 Posting Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[VAT Bus_ Posting Group]
,[VAT Prod_ Posting Group]
,[VAT Calculation Type]
,[VAT _]
,[Unrealized VAT Type]
,[Adjust for Payment Discount]
,[Sales VAT Account]
,[Sales VAT Unreal_ Account]
,[Purchase VAT Account]
,[Purch_ VAT Unreal_ Account]
,[Reverse Chrg_ VAT Acc_]
,[Reverse Chrg_ VAT Unreal_ Acc_]
,[VAT Identifier]
,[EU Service]
,[VAT Clause Code]
,[Certificate of Supply Required]
,[Tax Category]
,[Description]
,[Blocked]
,[Sale VAT Reporting Code]
,[Purch_ VAT Reporting Code]
,[Non-Deductible VAT _]
,[Non-Ded_ Purchase VAT Account]
,[Allow Non-Deductible VAT]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Posting Setup$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 Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup]
LEFT JOIN
[CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
ON
[VAT Posting Setup].[Sales VAT Account] = [G/L Account].[No_]
LEFT JOIN
[CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
ON
[VAT Posting Setup].[Purchase VAT Account] = [G/L Account].[No_]
LEFT JOIN
[CRONUS UK Ltd_$VAT Clause$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Clause]
ON
[VAT Posting Setup].[VAT Clause Code] = [VAT Clause].[Code]
LEFT JOIN
[CRONUS UK Ltd_$VAT Reporting Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reporting Code]
ON
[VAT Posting Setup].[Sale VAT Reporting Code] = [VAT Reporting Code].[Code]
LEFT JOIN
[User] AS [User]
ON
[VAT Posting Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Posting Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Posting Setup table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | 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 Posting Setup].[VAT Bus_ Posting Group] ,[VAT Business Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group] ON [VAT Posting Setup].[VAT Bus_ Posting Group] = [VAT Business Posting Group].[Code] | |||||||
2 | 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 Posting Setup].[VAT Prod_ Posting Group] ,[VAT Product Posting Group].[Code] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group] ON [VAT Posting Setup].[VAT Prod_ Posting Group] = [VAT Product Posting Group].[Code] | |||||||
3 | VAT Calculation Type | VAT Calculation Type | Normal | Option | 4 | VAT Calculation Type | int |
Available options are:
| |||||||
4 | VAT % | Tax % | Normal | Decimal | 12 | VAT _ | decimal(38,38) |
5 | Unrealized VAT Type | Unrealized Tax Type | Normal | Option | 4 | Unrealized VAT Type | int |
Available options are:
| |||||||
6 | Adjust for Payment Discount | Adjust for Payment Discount | Normal | Boolean | 4 | Adjust for Payment Discount | tinyint |
7 | Sales VAT Account | Sales Tax Account | Normal | Code | 20 | Sales VAT Account | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[Sales VAT Account] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[Sales VAT Account] = [G/L Account].[No_] | |||||||
8 | Sales VAT Unreal. Account | Sales Tax Unreal. Account | Normal | Code | 20 | Sales VAT Unreal_ Account | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[Sales VAT Unreal_ Account] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[Sales VAT Unreal_ Account] = [G/L Account].[No_] | |||||||
9 | Purchase VAT Account | Purchase Tax Account | Normal | Code | 20 | Purchase VAT Account | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[Purchase VAT Account] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[Purchase VAT Account] = [G/L Account].[No_] | |||||||
10 | Purch. VAT Unreal. Account | Purch. Tax Unreal. Account | Normal | Code | 20 | Purch_ VAT Unreal_ Account | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[Purch_ VAT Unreal_ Account] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[Purch_ VAT Unreal_ Account] = [G/L Account].[No_] | |||||||
11 | Reverse Chrg. VAT Acc. | Reverse Chrg. Tax Acc. | Normal | Code | 20 | Reverse Chrg_ VAT Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[Reverse Chrg_ VAT Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[Reverse Chrg_ VAT Acc_] = [G/L Account].[No_] | |||||||
12 | Reverse Chrg. VAT Unreal. Acc. | Reverse Chrg. Tax Unreal. Acc. | Normal | Code | 20 | Reverse Chrg_ VAT Unreal_ Acc_ | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[Reverse Chrg_ VAT Unreal_ Acc_] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[Reverse Chrg_ VAT Unreal_ Acc_] = [G/L Account].[No_] | |||||||
13 | VAT Identifier | Tax Identifier | Normal | Code | 20 | VAT Identifier | nvarchar(40) |
14 | EU Service | EU Service | Normal | Boolean | 4 | EU Service | tinyint |
15 | 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 Posting Setup].[VAT Clause Code] ,[VAT Clause].[Code] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Clause$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Clause] ON [VAT Posting Setup].[VAT Clause Code] = [VAT Clause].[Code] | |||||||
16 | Certificate of Supply Required | Certificate of Supply Required | Normal | Boolean | 4 | Certificate of Supply Required | tinyint |
17 | Tax Category | Tax Category | Normal | Code | 10 | Tax Category | nvarchar(20) |
20 | Description | Description | Normal | Text | 100 | Description | nvarchar(200) |
21 | Blocked | Blocked | Normal | Boolean | 4 | Blocked | tinyint |
25 | Sale VAT Reporting Code | Sale Tax Reporting Code | Normal | Code | 20 | Sale VAT Reporting Code | nvarchar(40) |
Key to join to the VAT Reporting Code table.Show/hide example querySELECT [VAT Posting Setup].[Sale VAT Reporting Code] ,[VAT Reporting Code].[Code] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Reporting Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reporting Code] ON [VAT Posting Setup].[Sale VAT Reporting Code] = [VAT Reporting Code].[Code] | |||||||
26 | Purch. VAT Reporting Code | Purchase Tax Reporting Code | Normal | Code | 20 | Purch_ VAT Reporting Code | nvarchar(40) |
Key to join to the VAT Reporting Code table.Show/hide example querySELECT [VAT Posting Setup].[Purch_ VAT Reporting Code] ,[VAT Reporting Code].[Code] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$VAT Reporting Code$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Reporting Code] ON [VAT Posting Setup].[Purch_ VAT Reporting Code] = [VAT Reporting Code].[Code] | |||||||
6200 | Non-Deductible VAT % | Non-Deductible Tax % | Normal | Decimal | 12 | Non-Deductible VAT _ | decimal(38,38) |
6201 | Non-Ded. Sales VAT Account | Non-Deductible Sales Tax Account | Normal | Code | 20 | ||
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[] = [G/L Account].[No_] | |||||||
6202 | Non-Ded. Purchase VAT Account | Non-Deductible Purchase Tax Account | Normal | Code | 20 | Non-Ded_ Purchase VAT Account | nvarchar(40) |
Key to join to the G/L Account table.Show/hide example querySELECT [VAT Posting Setup].[Non-Ded_ Purchase VAT Account] ,[G/L Account].[No_] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account] ON [VAT Posting Setup].[Non-Ded_ Purchase VAT Account] = [G/L Account].[No_] | |||||||
6203 | Allow Non-Deductible VAT | Allow Non-Deductible Tax | Normal | Option | 4 | Allow Non-Deductible VAT | int |
Available options are:
| |||||||
10001 | CFDI VAT Exemption | CFDI Tax Exemption | Normal | Boolean | 4 | ||
10002 | CFDI Non-Taxable | CFDI Non-Taxable | Normal | Boolean | 4 | ||
10003 | CFDI Subject to Tax | CFDI Subject to Tax | Normal | Code | 10 | ||
27000 | DIOT WHT % | DIOT WHT Percent | Normal | Decimal | 12 | ||
27010 | DIOT-WHT % | DIOT WHT Percent | Normal | Decimal | 12 | ||
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 Posting Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Posting Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Posting Setup] LEFT JOIN [User] AS [User] ON [VAT Posting Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |