VAT Setup Posting Groups

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1877

Table Type: Company

Table Name: VAT Setup Posting Groups
Database Table Name: CRONUS UK Ltd_$VAT Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 1877

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 Setup Posting Groups can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$VAT Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [VAT Prod_ Posting Group]
   ,[VAT _]
   ,[Sales VAT Account]
   ,[Purchase VAT Account]
   ,[Reverse Chrg_ VAT Acc_]
   ,[VAT Prod_ Posting Grp Desc_]
   ,[VAT Clause Desc]
   ,[Selected]
   ,[Application Type]
   ,[Default]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$VAT Setup Posting Groups$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 Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Setup Posting Groups]
LEFT JOIN
   [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
      ON
         [VAT Setup Posting Groups].[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 Setup Posting Groups].[Purchase VAT Account] = [G/L Account].[No_]
LEFT JOIN
   [User] AS [User]
      ON
         [VAT Setup Posting Groups].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [VAT Setup Posting Groups].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in VAT Setup Posting Groups table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
2VAT Prod. Posting Group SearchVAT Prod. Posting GroupNormalCode20VAT Prod_ Posting Groupnvarchar(40)
Key to join to the VAT Product Posting Group table.

Show/hide example query

SELECT
	       [VAT Setup Posting Groups].[VAT Prod_ Posting Group]
	       ,[VAT Product Posting Group].[Code]
	FROM
	       [CRONUS UK Ltd_$VAT Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Setup Posting Groups]
	LEFT JOIN
	       [CRONUS UK Ltd_$VAT Product Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Product Posting Group]
	              ON
	                     [VAT Setup Posting Groups].[VAT Prod_ Posting Group] = [VAT Product Posting Group].[Code]
4VAT % Primary Key SearchTax %NormalDecimal12VAT _decimal(38,38)
7Sales VAT Account SearchSales Tax AccountNormalCode20Sales VAT Accountnvarchar(40)
Key to join to the G/L Account table.

Show/hide example query

SELECT
	       [VAT Setup Posting Groups].[Sales VAT Account]
	       ,[G/L Account].[No_]
	FROM
	       [CRONUS UK Ltd_$VAT Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Setup Posting Groups]
	LEFT JOIN
	       [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
	              ON
	                     [VAT Setup Posting Groups].[Sales VAT Account] = [G/L Account].[No_]
9Purchase VAT Account SearchPurchase Tax AccountNormalCode20Purchase VAT Accountnvarchar(40)
Key to join to the G/L Account table.

Show/hide example query

SELECT
	       [VAT Setup Posting Groups].[Purchase VAT Account]
	       ,[G/L Account].[No_]
	FROM
	       [CRONUS UK Ltd_$VAT Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Setup Posting Groups]
	LEFT JOIN
	       [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
	              ON
	                     [VAT Setup Posting Groups].[Purchase VAT Account] = [G/L Account].[No_]
11Reverse Chrg. VAT Acc. SearchReverse Chrg. Tax Acc.NormalCode20Reverse Chrg_ VAT Acc_nvarchar(40)
Key to join to the G/L Account table.

Show/hide example query

SELECT
	       [VAT Setup Posting Groups].[Reverse Chrg_ VAT Acc_]
	       ,[G/L Account].[No_]
	FROM
	       [CRONUS UK Ltd_$VAT Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Setup Posting Groups]
	LEFT JOIN
	       [CRONUS UK Ltd_$G_L Account$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [G/L Account]
	              ON
	                     [VAT Setup Posting Groups].[Reverse Chrg_ VAT Acc_] = [G/L Account].[No_]
18VAT Prod. Posting Grp Desc. SearchTax Prod. Posting Grp Desc.NormalText100VAT Prod_ Posting Grp Desc_nvarchar(200)
19VAT Clause Desc SearchTax Clause DescNormalText250VAT Clause Descnvarchar(500)
22Selected SearchSelectedNormalBoolean4Selectedtinyint
23Application Type SearchApplication TypeNormalOption4Application Typeint
Available options are:
  • “”
  • “Items”
  • “Services”
24Default SearchDefaultNormalBoolean4Defaulttinyint
2000000000$systemId Primary Key SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [VAT Setup Posting Groups].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [CRONUS UK Ltd_$VAT Setup Posting Groups$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Setup Posting Groups]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [VAT Setup Posting Groups].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

Your email address will not be published. Required fields are marked *