Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/1022
Table Type: Company
Table Name: Job Planning Line Invoice
Database Table Name: CRONUS UK Ltd_$Job Planning Line Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972
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 Job Planning Line Invoice can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[CRONUS UK Ltd_$Job Planning Line Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns by name
SELECT
[Job No_]
,[Job Task No_]
,[Job Planning Line No_]
,[Document Type]
,[Document No_]
,[Line No_]
,[Quantity Transferred]
,[Transferred Date]
,[Invoiced Date]
,[Invoiced Amount (LCY)]
,[Invoiced Cost Amount (LCY)]
,[Job Ledger Entry No_]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[CRONUS UK Ltd_$Job Planning Line Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[CRONUS UK Ltd_$Job Planning Line Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job Planning Line Invoice]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header Archive$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header Archive]
ON
[Job Planning Line Invoice].[Document Type] = [Sales Header Archive].[Document Type]
AND
[Job Planning Line Invoice].[Document No_] = [Sales Header Archive].[No_]
LEFT JOIN
[CRONUS UK Ltd_$Sales Header$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Sales Header]
ON
[Job Planning Line Invoice].[Document Type] = [Sales Header].[Document Type]
AND
[Job Planning Line Invoice].[Document No_] = [Sales Header].[No_]
LEFT JOIN
[User] AS [User]
ON
[Job Planning Line Invoice].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[Job Planning Line Invoice].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in Job Planning Line Invoice table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | Job No. | Job No. | Normal | Code | 20 | Job No_ | nvarchar(40) |
Key to join to the Job table.Show/hide example querySELECT [Job Planning Line Invoice].[Job No_] ,[Job].[No_] FROM [CRONUS UK Ltd_$Job Planning Line Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job Planning Line Invoice] LEFT JOIN [CRONUS UK Ltd_$Job$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job] ON [Job Planning Line Invoice].[Job No_] = [Job].[No_] | |||||||
2 | Job Task No. | Job Task No. | Normal | Code | 20 | Job Task No_ | nvarchar(40) |
3 | Job Planning Line No. | Job Planning Line No. | Normal | Integer | 4 | Job Planning Line No_ | int |
4 | Document Type | Document Type | Normal | Option | 4 | Document Type | int |
Available options are:
| |||||||
5 | Document No. | Document No. | Normal | Code | 20 | Document No_ | nvarchar(40) |
6 | Line No. | Line No. | Normal | Integer | 4 | Line No_ | int |
7 | Quantity Transferred | Quantity Transferred | Normal | Decimal | 12 | Quantity Transferred | decimal(38,38) |
8 | Transferred Date | Transferred Date | Normal | Date | 4 | Transferred Date | datetime |
9 | Invoiced Date | Invoiced Date | Normal | Date | 4 | Invoiced Date | datetime |
10 | Invoiced Amount (LCY) | Invoiced Amount ($) | Normal | Decimal | 12 | Invoiced Amount (LCY) | decimal(38,38) |
11 | Invoiced Cost Amount (LCY) | Invoiced Cost Amount ($) | Normal | Decimal | 12 | Invoiced Cost Amount (LCY) | decimal(38,38) |
12 | Job Ledger Entry No. | Job Ledger Entry No. | Normal | Integer | 4 | Job Ledger Entry No_ | int |
Key to join to the Job Ledger Entry table.Show/hide example querySELECT [Job Planning Line Invoice].[Job Ledger Entry No_] ,[Job Ledger Entry].[Entry No_] FROM [CRONUS UK Ltd_$Job Planning Line Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job Planning Line Invoice] LEFT JOIN [CRONUS UK Ltd_$Job Ledger Entry$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job Ledger Entry] ON [Job Planning Line Invoice].[Job Ledger Entry No_] = [Job Ledger Entry].[Entry No_] | |||||||
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 [Job Planning Line Invoice].[$systemCreatedBy] ,[User].[User Security ID] FROM [CRONUS UK Ltd_$Job Planning Line Invoice$437dbf0e-84ff-417a-965d-ed2bb9650972] AS [Job Planning Line Invoice] LEFT JOIN [User] AS [User] ON [Job Planning Line Invoice].[$systemCreatedBy] = [User].[User Security ID] | |||||||
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |