Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/4026
Table Type: Company
Table Name: GP Payment Terms
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 GP Payment Terms 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 [GP Payment Terms]
LEFT JOIN
[User] AS [User]
ON
[GP Payment Terms].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[GP Payment Terms].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in GP Payment Terms table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | PYMTRMID | Payment Terms ID | Normal | Text | 22 | ||
2 | DUETYPE | Due Type | Normal | Option | 4 | ||
3 | DUEDTDS | Due Date/Days | Normal | Integer | 4 | ||
4 | DISCTYPE | Discount Type | Normal | Option | 4 | ||
5 | DISCDTDS | Discount Date/Days | Normal | Integer | 4 | ||
6 | DSCLCTYP | Discount Calculate Type | Normal | Option | 4 | ||
8 | DSCPCTAM | Discount Percent Amount | Normal | Integer | 4 | ||
13 | TAX | Tax | Normal | Boolean | 4 | ||
15 | CBUVATMD | CB_Use_Tax_Mode | Normal | Boolean | 4 | ||
19 | USEGRPER | Use Grace Periods | Normal | Boolean | 4 | ||
20 | CalculateDateFrom | Calculate Date From | Normal | Option | 4 | ||
21 | CalculateDateFromDays | Calculate Date From Days | Normal | Integer | 4 | ||
22 | DueMonth | Due Month | Normal | Option | 4 | ||
23 | DiscountMonth | Discount Month | Normal | Option | 4 | ||
25 | PYMTRMID_New | BC-Friendly Payment Term | Normal | Text | 10 | ||
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 [GP Payment Terms].[] ,[User].[User Security ID] FROM [] AS [GP Payment Terms] LEFT JOIN [User] AS [User] ON [GP Payment Terms].[] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | ||
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 |