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