VAT Statement Line

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

Table Number: 256

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 NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Statement Template Name SearchStatement Template NameNormalCode10Statement Template Namenvarchar(20)
Key to join to the VAT Statement Template table.

Show/hide example query

SELECT
	       [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]
2Statement Name Primary Key SearchStatement NameNormalCode10Statement Namenvarchar(20)
3Line No. Primary Key SearchLine No.NormalInteger4Line No_int
4Row No. Primary Key SearchRow No.NormalCode10Row No_nvarchar(20)
5Description SearchDescriptionNormalText100Descriptionnvarchar(200)
6Type SearchTypeNormalOption4Typeint
Available options are:
  • “Account Totaling”
  • “VAT Entry Totaling”
  • “Row Totaling”
  • “Description”
7Account Totaling SearchAccount TotalingNormalText30Account Totalingnvarchar(60)
Key to join to the G/L Account table.

Show/hide example query

SELECT
	       [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_]
8Gen. Posting Type SearchGen. Posting TypeNormalOption4Gen_ Posting Typeint
Available options are:
  • ” “
  • “Purchase”
  • “Sale”
  • “Settlement”
9VAT Bus. Posting Group SearchVAT Bus. Posting GroupNormalCode20VAT Bus_ Posting Groupnvarchar(40)
Key to join to the VAT Business Posting Group table.

Show/hide example query

SELECT
	       [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]
10VAT 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 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]
11Row Totaling SearchRow TotalingNormalText50Row Totalingnvarchar(100)
12Amount Type SearchAmount TypeNormalOption4Amount Typeint
Available options are:
  • ” “
  • “Amount”
  • “Base”
  • “Unrealized Amount”
  • “Unrealized Base”
  • “Non-Deductible Amount”
  • “Non-Deductible Base”
  • “Full Amount”
  • “Full Base”
13Calculate with SearchCalculate withNormalOption4Calculate withint
Available options are:
  • “Sign”
  • “Opposite Sign”
14Print SearchPrintNormalBoolean4Printtinyint
15Print with SearchPrint withNormalOption4Print withint
Available options are:
  • “Sign”
  • “Opposite Sign”
16Date Filter SearchDate FilterFlowFilterDate4
17New Page SearchNew PageNormalBoolean4New Pagetinyint
18Tax Jurisdiction Code SearchTax Jurisdiction CodeNormalCode10Tax Jurisdiction Codenvarchar(20)
Key to join to the Tax Jurisdiction table.

Show/hide example query

SELECT
	       [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]
19Use Tax SearchUse TaxNormalBoolean4Use Taxtinyint
20Box No. SearchBox No.NormalText30Box No_nvarchar(60)
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [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]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

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