Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/687
Table Type: Company
Table Name: Payment Practice Header
Database Table Name: CRONUS UK Ltd_$Payment Practice Header$64977288-facd-4b48-aaaa-bb0e288edfb3
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 Payment Practice Header can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Payment Practice Header$64977288-facd-4b48-aaaa-bb0e288edfb3]
Show/hide an example select of all columns by name
SELECT
[No_]
,[Starting Date]
,[Ending Date]
,[Aggregation Type]
,[Header Type]
,[Average Agreed Payment Period]
,[Average Actual Payment Period]
,[Pct Paid on Time]
,[Generated On]
,[Generated By]
,[Modified Manually]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Payment Practice Header$64977288-facd-4b48-aaaa-bb0e288edfb3]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Payment Practice Header$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Header]
LEFT JOIN
[CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period]
ON
[Payment Practice Header].[Ending Date] = [Inventory Period].[Ending Date]
LEFT JOIN
[User] AS [User]
ON
[Payment Practice Header].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Payment Practice Header].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Payment Practice Header table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | No. | No. | Normal | Integer | 4 | No_ | int |
2 | Starting Date | Starting Date | Normal | Date | 4 | Starting Date | datetime |
3 | Ending Date | Ending Date | Normal | Date | 4 | Ending Date | datetime |
Key to join to the Inventory Period table.Show/hide example querySELECT [Payment Practice Header].[Ending Date] ,[Inventory Period].[Ending Date] FROM [CRONUS UK Ltd_$Payment Practice Header$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Header] LEFT JOIN [CRONUS UK Ltd_$Inventory Period$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Inventory Period] ON [Payment Practice Header].[Ending Date] = [Inventory Period].[Ending Date] | |||||||
4 | Aggregation Type | Aggregation Type | Normal | Option | 4 | Aggregation Type | int |
Available options are:
| |||||||
5 | Header Type | Header Type | Normal | Option | 4 | Header Type | int |
Available options are:
| |||||||
6 | Average Agreed Payment Period | Average Agreed Payment Period | Normal | Integer | 4 | Average Agreed Payment Period | int |
7 | Average Actual Payment Period | Average Actual Payment Period | Normal | Integer | 4 | Average Actual Payment Period | int |
8 | Pct Paid on Time | Pct Paid on Time | Normal | Decimal | 12 | Pct Paid on Time | decimal(38,38) |
9 | Generated On | Generated On | Normal | DateTime | 8 | Generated On | datetime |
10 | Generated By | Generated By | Normal | Code | 20 | Generated By | nvarchar(40) |
11 | Lines Exist | Lines Exist | FlowField | Boolean | 4 | ||
12 | Modified Manually | Modified Manually | Normal | Boolean | 4 | Modified Manually | tinyint |
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 [Payment Practice Header].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Payment Practice Header$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Header] LEFT JOIN [User] AS [User] ON [Payment Practice Header].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |