Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/686
Table Type: Company
Table Name: Payment Practice Data
Database Table Name: CRONUS UK Ltd_$Payment Practice Data$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 Data can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Payment Practice Data$64977288-facd-4b48-aaaa-bb0e288edfb3]
Show/hide an example select of all columns by name
SELECT
[Header No_]
,[Invoice Entry No_]
,[Source Type]
,[Pmt_ Entry No_]
,[Invoice Posting Date]
,[Invoice Received Date]
,[Due Date]
,[Pmt_ Posting Date]
,[Invoice Is Open]
,[Invoice Doc_ No_]
,[CV No_]
,[Inv_ External Document No_]
,[Company Size Code]
,[Agreed Payment Days]
,[Actual Payment Days]
,[Invoice Amount]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Payment Practice Data$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 Data$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Data]
LEFT JOIN
[CRONUS UK Ltd_$Company Size$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Company Size]
ON
[Payment Practice Data].[Company Size Code] = [Company Size].[Code]
LEFT JOIN
[User] AS [User]
ON
[Payment Practice Data].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Payment Practice Data].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Payment Practice Data 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 Data].[Header No_] ,[Payment Practice Header].[No_] FROM [CRONUS UK Ltd_$Payment Practice Data$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Data] LEFT JOIN [CRONUS UK Ltd_$Payment Practice Header$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Header] ON [Payment Practice Data].[Header No_] = [Payment Practice Header].[No_] | |||||||
2 | Invoice Entry No. | Invoice Entry No. | Normal | Integer | 4 | Invoice Entry No_ | int |
3 | Source Type | Source Type | Normal | Option | 4 | Source Type | int |
Available options are:
| |||||||
4 | Pmt. Entry No. | Pmt. Entry No. | Normal | Integer | 4 | Pmt_ Entry No_ | int |
5 | Invoice Posting Date | Invoice Posting Date | Normal | Date | 4 | Invoice Posting Date | datetime |
6 | Invoice Received Date | Invoice Received Date | Normal | Date | 4 | Invoice Received Date | datetime |
7 | Due Date | Due Date | Normal | Date | 4 | Due Date | datetime |
8 | Pmt. Posting Date | Pmt. Posting Date | Normal | Date | 4 | Pmt_ Posting Date | datetime |
9 | Invoice Is Open | Invoice Is Open | Normal | Boolean | 4 | Invoice Is Open | tinyint |
10 | Invoice Doc. No. | Invoice Doc. No. | Normal | Code | 20 | Invoice Doc_ No_ | nvarchar(40) |
11 | CV No. | CV No. | Normal | Code | 20 | CV No_ | nvarchar(40) |
Key to join to the Customer table.Show/hide example querySELECT [Payment Practice Data].[CV No_] ,[Customer].[No_] FROM [CRONUS UK Ltd_$Payment Practice Data$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Data] LEFT JOIN [CRONUS UK Ltd_$Customer$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Customer] ON [Payment Practice Data].[CV No_] = [Customer].[No_] | |||||||
12 | Inv. External Document No. | Inv. External Document No. | Normal | Code | 35 | Inv_ External Document No_ | nvarchar(70) |
13 | 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 Data].[Company Size Code] ,[Company Size].[Code] FROM [CRONUS UK Ltd_$Payment Practice Data$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Data] LEFT JOIN [CRONUS UK Ltd_$Company Size$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Company Size] ON [Payment Practice Data].[Company Size Code] = [Company Size].[Code] | |||||||
14 | Agreed Payment Days | Agreed Payment Days | Normal | Integer | 4 | Agreed Payment Days | int |
15 | Actual Payment Days | Actual Payment Days | Normal | Integer | 4 | Actual Payment Days | int |
16 | Invoice Amount | Invoice Amount | Normal | Decimal | 12 | Invoice Amount | decimal(38,38) |
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 Data].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Payment Practice Data$64977288-facd-4b48-aaaa-bb0e288edfb3] AS [Payment Practice Data] LEFT JOIN [User] AS [User] ON [Payment Practice Data].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |