Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/743
Table Type: Company
Table Name: VAT Report Setup
Database Table Name: CRONUS UK Ltd_$VAT Report 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 Report Setup can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$VAT Report Setup$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Primary key]
,[No_ Series]
,[Modify Submitted Reports]
,[VAT Return No_ Series]
,[VAT Return Period No_ Series]
,[Report Version]
,[Period Reminder Time]
,[Update Period Job Frequency]
,[Manual Receive Period CU ID]
,[Auto Receive Period CU ID]
,[Receive Submitted Return CU ID]
,[Period Reminder Calculation]
,[Report VAT Base]
,[Report VAT Note]
,[VATGroup Role]
,[ApprovedMembers]
,[GroupMember ID]
,[GroupRepresentative API URL]
,[AuthenticationType]
,[UserName Key]
,[WebService Access Key Key]
,[GroupRepresentative Company]
,[ClientID Key]
,[ClientSecret Key]
,[AuthorityURL]
,[ResourceURL]
,[RedirectURL]
,[GroupSettlement Account]
,[VATSettlement Account]
,[VATDue Box No_]
,[GroupSettle_ Gen_ Jnl_ Templ_]
,[VATGroup BC Version]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$VAT Report 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 Report Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Setup]
LEFT JOIN
[User] AS [User]
ON
[VAT Report Setup].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[VAT Report Setup].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in VAT Report Setup table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary key | Primary key | Normal | Code | 10 | Primary key | nvarchar(20) |
2 | No. Series | No. Series | Normal | Code | 20 | No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [VAT Report Setup].[No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$VAT Report Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [VAT Report Setup].[No_ Series] = [No. Series].[Code] | |||||||
3 | Modify Submitted Reports | Allow Modification | Normal | Boolean | 4 | Modify Submitted Reports | tinyint |
4 | VAT Return No. Series | Tax Return No. Series | Normal | Code | 20 | VAT Return No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [VAT Report Setup].[VAT Return No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$VAT Report Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [VAT Report Setup].[VAT Return No_ Series] = [No. Series].[Code] | |||||||
20 | VAT Return Period No. Series | Tax Return Period No. Series | Normal | Code | 20 | VAT Return Period No_ Series | nvarchar(40) |
Key to join to the No. Series table.Show/hide example querySELECT [VAT Report Setup].[VAT Return Period No_ Series] ,[No. Series].[Code] FROM [CRONUS UK Ltd_$VAT Report Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Setup] LEFT JOIN [CRONUS UK Ltd_$No_ Series$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [No. Series] ON [VAT Report Setup].[VAT Return Period No_ Series] = [No. Series].[Code] | |||||||
21 | Report Version | Report Version | Normal | Code | 10 | Report Version | nvarchar(20) |
22 | Period Reminder Time | Period Reminder Time | Normal | Integer | 4 | Period Reminder Time | int |
23 | Update Period Job Frequency | Update Period Job Frequency | Normal | Option | 4 | Update Period Job Frequency | int |
Available options are:
| |||||||
24 | Manual Receive Period CU ID | Manual Receive Period CU ID | Normal | Integer | 4 | Manual Receive Period CU ID | int |
25 | Manual Receive Period CU Cap | Manual Receive Period CU Cap | FlowField | Text | 250 | ||
26 | Auto Receive Period CU ID | Auto Receive Period CU ID | Normal | Integer | 4 | Auto Receive Period CU ID | int |
27 | Auto Receive Period CU Cap | Auto Receive Period CU Cap | FlowField | Text | 250 | ||
28 | Receive Submitted Return CU ID | Receive Submitted Return CU ID | Normal | Integer | 4 | Receive Submitted Return CU ID | int |
29 | Receive Submitted Return CUCap | Receive Submitted Return CUCap | FlowField | Text | 250 | ||
30 | Period Reminder Calculation | Period Reminder Calculation | Normal | DateFormula | 32 | Period Reminder Calculation | varchar(32) |
31 | Report VAT Base | Report Tax Base | Normal | Boolean | 4 | Report VAT Base | tinyint |
32 | Report VAT Note | Report Tax Note | Normal | Boolean | 4 | Report VAT Note | tinyint |
4800 | VATGroup Role | VATGroup Role | Normal | Option | 4 | VATGroup Role | int |
Available options are:
| |||||||
4801 | ApprovedMembers | ApprovedMembers | Normal | Integer | 4 | ApprovedMembers | int |
4802 | GroupMember ID | GroupMember ID | Normal | GUID | 16 | GroupMember ID | uniqueidentifier |
4803 | GroupRepresentative API URL | GroupRepresentative API URL | Normal | Text | 250 | GroupRepresentative API URL | nvarchar(500) |
4804 | AuthenticationType | AuthenticationType | Normal | Option | 4 | AuthenticationType | int |
Available options are:
| |||||||
4805 | UserName Key | UserName Key | Normal | GUID | 16 | UserName Key | uniqueidentifier |
4806 | WebService Access Key Key | WebService Access Key Key | Normal | GUID | 16 | WebService Access Key Key | uniqueidentifier |
4807 | GroupRepresentative Company | GroupRepresentative Company | Normal | Text | 30 | GroupRepresentative Company | nvarchar(60) |
4808 | ClientID Key | ClientID Key | Normal | GUID | 16 | ClientID Key | uniqueidentifier |
4809 | ClientSecret Key | ClientSecret Key | Normal | GUID | 16 | ClientSecret Key | uniqueidentifier |
4810 | AuthorityURL | AuthorityURL | Normal | Text | 250 | AuthorityURL | nvarchar(500) |
4811 | ResourceURL | ResourceURL | Normal | Text | 250 | ResourceURL | nvarchar(500) |
4812 | RedirectURL | RedirectURL | Normal | Text | 250 | RedirectURL | nvarchar(500) |
4814 | GroupSettlement Account | GroupSettlement Account | Normal | Code | 20 | GroupSettlement Account | nvarchar(40) |
4815 | VATSettlement Account | VATSettlement Account | Normal | Code | 20 | VATSettlement Account | nvarchar(40) |
4816 | VATDue Box No. | VATDue Box No. | Normal | Text | 30 | VATDue Box No_ | nvarchar(60) |
4817 | GroupSettle. Gen. Jnl. Templ. | GroupSettle. Gen. Jnl. Templ. | Normal | Code | 10 | GroupSettle_ Gen_ Jnl_ Templ_ | nvarchar(20) |
4818 | VATGroup BC Version | VATGroup BC Version | Normal | Option | 4 | VATGroup BC Version | int |
Available options are:
| |||||||
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 Setup].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$VAT Report Setup$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Report Setup] LEFT JOIN [User] AS [User] ON [VAT Report Setup].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |