Sales Price and Line Disc Buff

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

Table Type: Company

Table Name: Sales Price and Line Disc Buff
Database Table Name: CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972

Table Number: 1304

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 Sales Price and Line Disc Buff can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns by name

SELECT
   [Code]
   ,[Sales Code]
   ,[Currency Code]
   ,[Starting Date]
   ,[Line Discount _]
   ,[Unit Price]
   ,[Price Includes VAT]
   ,[Allow Invoice Disc_]
   ,[VAT Bus_ Posting Gr_ (Price)]
   ,[Sales Type]
   ,[Minimum Quantity]
   ,[Ending Date]
   ,[Type]
   ,[Line Type]
   ,[Loaded Item No_]
   ,[Loaded Disc_ Group]
   ,[Loaded Customer No_]
   ,[Loaded Price Group]
   ,[Unit of Measure Code]
   ,[Variant Code]
   ,[Allow Line Disc_]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Price and Line Disc Buff]
LEFT JOIN
   [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
      ON
         [Sales Price and Line Disc Buff].[Currency Code] = [Currency].[Code]
LEFT JOIN
   [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
      ON
         [Sales Price and Line Disc Buff].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
   [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
      ON
         [Sales Price and Line Disc Buff].[Variant Code] = [Item Variant].[Code]
LEFT JOIN
   [User] AS [User]
      ON
         [Sales Price and Line Disc Buff].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Sales Price and Line Disc Buff].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Sales Price and Line Disc Buff table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1Code Primary Key SearchCodeNormalCode20Codenvarchar(40)
2Sales Code Primary Key SearchSales CodeNormalCode20Sales Codenvarchar(40)
3Currency Code Primary Key SearchCurrency CodeNormalCode10Currency Codenvarchar(20)
Key to join to the Currency table.

Show/hide example query

SELECT
       [Sales Price and Line Disc Buff].[Currency Code]
       ,[Currency].[Code]
FROM
       [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Price and Line Disc Buff]
LEFT JOIN
       [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
              ON
                     [Sales Price and Line Disc Buff].[Currency Code] = [Currency].[Code]
4Starting Date Primary Key SearchStarting DateNormalDate4Starting Datedatetime
5Line Discount % SearchLine Discount %NormalDecimal12Line Discount _decimal(38,38)
6Unit Price SearchUnit PriceNormalDecimal12Unit Pricedecimal(38,38)
7Price Includes VAT SearchPrice Includes TaxNormalBoolean4Price Includes VATtinyint
10Allow Invoice Disc. SearchAllow Invoice Disc.NormalBoolean4Allow Invoice Disc_tinyint
11VAT Bus. Posting Gr. (Price) SearchTax Bus. Posting Gr. (Price)NormalCode20VAT Bus_ Posting Gr_ (Price)nvarchar(40)
Key to join to the VAT Business Posting Group table.

Show/hide example query

SELECT
       [Sales Price and Line Disc Buff].[VAT Bus_ Posting Gr_ (Price)]
       ,[VAT Business Posting Group].[Code]
FROM
       [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Price and Line Disc Buff]
LEFT JOIN
       [CRONUS UK Ltd_$VAT Business Posting Group$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [VAT Business Posting Group]
              ON
                     [Sales Price and Line Disc Buff].[VAT Bus_ Posting Gr_ (Price)] = [VAT Business Posting Group].[Code]
13Sales Type Primary Key SearchSales TypeNormalOption4Sales Typeint
Available options are:
  • “Customer”
  • “Customer Price/Disc. Group”
  • “All Customers”
  • “Campaign”
14Minimum Quantity Primary Key SearchMinimum QuantityNormalDecimal12Minimum Quantitydecimal(38,38)
15Ending Date SearchEnding DateNormalDate4Ending Datedatetime
Key to join to the Inventory Period table.

Show/hide example query

SELECT
       [Sales Price and Line Disc Buff].[Ending Date]
       ,[Inventory Period].[Ending Date]
FROM
       [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Price and Line Disc Buff]
LEFT JOIN
       [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
              ON
                     [Sales Price and Line Disc Buff].[Ending Date] = [Inventory Period].[Ending Date]
21Type Primary Key SearchTypeNormalOption4Typeint
Available options are:
  • “Item”
  • “Item Disc. Group”
1300Line Type Primary Key SearchLine TypeNormalOption4Line Typeint
Available options are:
  • ” “
  • “Sales Line Discount”
  • “Sales Price”
1301Loaded Item No. Primary Key SearchLoaded Item No.NormalCode20Loaded Item No_nvarchar(40)
1302Loaded Disc. Group Primary Key SearchLoaded Disc. GroupNormalCode20Loaded Disc_ Groupnvarchar(40)
1303Loaded Customer No. Primary Key SearchLoaded Customer No.NormalCode20Loaded Customer No_nvarchar(40)
1304Loaded Price Group Primary Key SearchLoaded Price GroupNormalCode20Loaded Price Groupnvarchar(40)
5400Unit of Measure Code Primary Key SearchUnit of Measure CodeNormalCode10Unit of Measure Codenvarchar(20)
5700Variant Code Primary Key SearchVariant CodeNormalCode10Variant Codenvarchar(20)
Key to join to the Item Variant table.

Show/hide example query

SELECT
       [Sales Price and Line Disc Buff].[Variant Code]
       ,[Item Variant].[Code]
FROM
       [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Price and Line Disc Buff]
LEFT JOIN
       [CRONUS UK Ltd_$Item Variant$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Item Variant]
              ON
                     [Sales Price and Line Disc Buff].[Variant Code] = [Item Variant].[Code]
7001Allow Line Disc. SearchAllow Line Disc.NormalBoolean4Allow Line Disc_tinyint
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
       [Sales Price and Line Disc Buff].[$systemCreatedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Price and Line Disc Buff]
LEFT JOIN
       [User] AS [User]
              ON
                     [Sales Price and Line Disc Buff].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
       [Sales Price and Line Disc Buff].[$systemModifiedBy]
       ,[User].[User Security ID]
FROM
       [CRONUS UK Ltd_$Sales Price and Line Disc Buff$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Price and Line Disc Buff]
LEFT JOIN
       [User] AS [User]
              ON
                     [Sales Price and Line Disc Buff].[$systemModifiedBy] = [User].[User Security ID]

Show/hide tables related from Sales Price and Line Disc Buff table

Leave a Reply

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