Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/40908
Table Type: Company
Table Name: Hist. Purchase Recv. Header
Database Table Name:
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 Hist. Purchase Recv. Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[]
Show/hide an example select of all columns by name
SELECT
FROM
[]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[] AS [Hist. Purchase Recv. Header]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Hist. Purchase Recv. Header].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Hist. Purchase Recv. Header].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Hist. Purchase Recv. Header].[Document Type] = [Sales Header].[Document Type]
AND
[Hist. Purchase Recv. Header].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms]
ON
[Hist. Purchase Recv. Header].[Payment Terms Id] = [Payment Terms].[$systemId]
LEFT JOIN
[CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency]
ON
[Hist. Purchase Recv. Header].[Currency Code] = [Currency].[Code]
LEFT JOIN
[User] AS [User]
ON
[Hist. Purchase Recv. Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Hist. Purchase Recv. Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Hist. Purchase Recv. Header table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Primary Key | Primary Key | Normal | Integer | 4 | ||
2 | Receipt No. | Receipt No. | Normal | Code | 35 | ||
3 | Document Type | Document Type | Normal | Option | 4 | ||
4 | Vendor Document No. | Vendor Document No. | Normal | Code | 35 | ||
5 | Receipt Date | Receipt Date | Normal | Date | 4 | ||
6 | Post Date | Post Date | Normal | Date | 4 | ||
7 | Actual Ship Date | Actual Ship Date | Normal | Date | 4 | ||
8 | Batch No. | Batch No. | Normal | Code | 35 | ||
9 | Vendor No. | Vendor No. | Normal | Code | 35 | ||
Key to join to the Vendor table.Show/hide example querySELECT [Hist. Purchase Recv. Header].[] ,[Vendor].[No_] FROM [] AS [Hist. Purchase Recv. Header] LEFT JOIN [CRONUS UK Ltd_$Vendor$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Vendor] ON [Hist. Purchase Recv. Header].[] = [Vendor].[No_] | |||||||
10 | Vendor Name | Vendor Name | Normal | Text | 100 | ||
11 | Subtotal | Subtotal | Normal | Decimal | 12 | ||
12 | Trade Discount Amount | Trade Discount Amount | Normal | Decimal | 12 | ||
13 | Freight Amount | Freight Amount | Normal | Decimal | 12 | ||
14 | Misc. Amount | Misc. Amount | Normal | Decimal | 12 | ||
15 | Tax Amount | Tax Amount | Normal | Decimal | 12 | ||
16 | 1099 Amount | 1099 Amount | Normal | Decimal | 12 | ||
17 | Payment Terms ID | Payment Terms ID | Normal | Text | 50 | ||
Key to join to the Payment Terms table.Show/hide example querySELECT [Hist. Purchase Recv. Header].[] ,[Payment Terms].[$systemId] FROM [] AS [Hist. Purchase Recv. Header] LEFT JOIN [CRONUS UK Ltd_$Payment Terms$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Payment Terms] ON [Hist. Purchase Recv. Header].[] = [Payment Terms].[$systemId] | |||||||
18 | Discount Percent Amount | Discount Percent Amount | Normal | Decimal | 12 | ||
19 | Discount Dollar Amount | Discount Dollar Amount | Normal | Decimal | 12 | ||
20 | Discount Available Amount | Discount Available Amount | Normal | Decimal | 12 | ||
21 | Discount Date | Discount Date | Normal | Date | 4 | ||
22 | Due Date | Due Date | Normal | Date | 4 | ||
23 | Reference | Reference | Normal | Text | 50 | ||
24 | Void | Void | Normal | Boolean | 4 | ||
25 | User | User | Normal | Text | 50 | ||
26 | Audit Code | Audit Code | Normal | Code | 35 | ||
27 | Voucher No. | Voucher No. | Normal | Code | 35 | ||
28 | Currency Code | Currency Code | Normal | Code | 35 | ||
Key to join to the Currency table.Show/hide example querySELECT [Hist. Purchase Recv. Header].[] ,[Currency].[Code] FROM [] AS [Hist. Purchase Recv. Header] LEFT JOIN [CRONUS UK Ltd_$Currency$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Currency] ON [Hist. Purchase Recv. Header].[] = [Currency].[Code] | |||||||
29 | Invoice Receipt Date | Invoice Receipt Date | Normal | Date | 4 | ||
30 | Prepayment Amount | Prepayment Amount | Normal | Decimal | 12 | ||
2000000000 | $systemId | System ID | Normal | GUID | 16 | ||
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | ||
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | ||
Key to join to the User table.Show/hide example querySELECT [Hist. Purchase Recv. Header].[] ,[User].[User Security ID] FROM [] AS [Hist. Purchase Recv. Header] LEFT JOIN [User] AS [User] ON [Hist. Purchase Recv. Header].[] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | ||
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 |