Table

ProjInvoiceCost

Project - invoice lines, expense

Holds expense lines on project invoices. Each line links to a project invoice and to the original project expense transaction. It also carries amount, tax, category, resource and dimension details.

Table name
ProjInvoiceCost
Module
Project management and accounting
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Project
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (34)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ActivityNumberActivity linked to the invoice line.String (50)
ProjActivityNumber
NosmmActivities.ActivityNumberProjInvoiceCostCDREntity
BookableResourceNameName of the bookable resource.String (60)
ProjBookableResourceName
NoProjInvoiceCostCDREntity
CategoryIdProject category of the line.String (30)
ProjCategoryId
YesProjCategory.CategoryIdProjInvoiceCostCDREntity
CurrencyIdSales currency of the invoice line.String (3)
ProjSalesCurrencyCode
NoCurrency.CurrencyCodeProjInvoiceCostCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
DefaultDimensionSet of financial dimension values for the line.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdProjInvoiceCostCDREntity
EInvoiceAccountCodeDimension account code, a text value of up to 35 characters used for electronic invoicing.low confidenceString (35)
EInvoiceAccountCode
NoProjInvoiceCostCDREntity
FinTagFinancial tag linked to the line, stored as a system record ID.Int64
FinTagRecId
NoFinTag.RecIdNone
InvoiceDateDate of the project invoice.Date
InvoiceDate
YesProjInvoiceCostCDREntity
LineAmountAmount of the invoice line.Real
ProjSalesAmount
NoBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
OrderLineReference_NOReference to an order line. Used for Norway.String (30)
OrderLineReference_NO
NoProjInvoiceCostCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjIdProject the line belongs to.String (20)
ProjId
YesProjTable.ProjIdProjInvoiceCostCDREntity
ProjInvoiceIdProject invoice the line belongs to.String (50)
ProjInvoiceId
YesProjInvoiceCostCDREntity
PSAContractLineNumBilling rule (contract line) that the line comes from.String
PSAContractLineNum
NoPSAContractLineItems.ContractLineNumProjInvoiceCostCDREntity
QtyQuantity invoiced on the line.Real
ProjQtyCost
NoBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefInvoiceDate_MYDate of the original invoice. Used for Malaysia.Date
TransDate
NoProjInvoiceCostCDREntity
RefInvoiceId_MYNumber of the original invoice. Used for Malaysia.String (50)
InvoiceId
NoProjInvoiceCostCDREntity
ResourceProject resource linked to the line.Int64
ResourceRecId
NoResResourceIdentifier.RecIdResourceView.RecIdProjInvoiceCostCDREntity
ResourceCategoryRole of the resource, stored as a system record ID.Int64
ResourceCategoryRecId
NoResourceCategoryView.RecIdProjInvoiceCostCDREntity
ResourceLegalEntityCompany of the resource, stored as a system record ID.Int64
CompanyInfoRecId
NoProjInvoiceCostCDREntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAmountSales tax amount of the line. Currency not stated in the metadata.Real
TaxAmount
NoBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
TaxGroupIdSales tax group applied to the line.String
ProjTaxGroup
NoTaxGroupHeading.TaxGroupBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
TaxItemGroupIdItem sales tax group applied to the line.String
ProjTaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupProjInvoiceCostCDREntity
TaxWriteCodePrint code for the tax on the line.String
TaxWriteCode
NoProjInvoiceCostCDREntity
TransDateProject date of the underlying transaction.Date
ProjTransDate
NoBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
TransIdID of the project expense transaction that this line invoices.String (20)
ProjCostTransId
NoProjCostTrans.TransIdBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
TxtFree-text description of the line.String (255)
Description255
NoBusinessDocumentProjInvoiceCostLineEntityProjInvoiceCostCDREntity
WorkerWorker linked to the line, stored as a system record ID.Int64
ProjWorkerRecId
NoProjInvoiceCostCDREntity
WorkerLegalEntityCompany of the worker, stored as a system record ID.Int64
CompanyInfoRecId
NoProjInvoiceCostCDREntity

Indexes (3)

Relations (15)

Each relation joins ProjInvoiceCost to another table on the fields shown.

  • Currency → Currency

    Join on CurrencyId = Currency.CurrencyCode

    Many ProjInvoiceCost records → zero or one Currency record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many ProjInvoiceCost records → zero or one DimensionAttributeValueSet record

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many ProjInvoiceCost records → zero or one FinTag record

  • ProjCategory → ProjCategory

    Join on CategoryId = ProjCategory.CategoryId

    Many ProjInvoiceCost records → exactly one ProjCategory record

  • projCostTrans → ProjCostTrans

    Join on TransId = ProjCostTrans.TransId

    Many ProjInvoiceCost records → zero or one ProjCostTrans record

  • ProjInvoiceJour → ProjInvoiceJour

    Join on InvoiceDate = ProjInvoiceJour.InvoiceDate, ProjInvoiceId = ProjInvoiceJour.ProjInvoiceId

    Many ProjInvoiceCost records → exactly one ProjInvoiceJour record

  • projProposalCost → ProjProposalCost

    Join on TransId = ProjProposalCost.TransId

    Cardinality not set in the metadata.

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many ProjInvoiceCost records → exactly one ProjTable record

  • PSAContractLineItems → PSAContractLineItems

    Join on PSAContractLineNum = PSAContractLineItems.ContractLineNum

    Many ProjInvoiceCost records → zero or one PSAContractLineItems record

  • Resource → ResourceView

    Join on Resource = ResourceView.RecId

    Many ProjInvoiceCost records → zero or one ResourceView record

  • ResourceCategory → ResourceCategoryView

    Join on ResourceCategory = ResourceCategoryView.RecId

    Many ProjInvoiceCost records → zero or one ResourceCategoryView record

  • smmActivities → smmActivities

    Join on ActivityNumber = smmActivities.ActivityNumber

    Many ProjInvoiceCost records → zero or one smmActivities record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroupId = TaxGroupHeading.TaxGroup

    Many ProjInvoiceCost records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroupId = TaxItemGroupHeading.TaxItemGroup

    Many ProjInvoiceCost records → zero or one TaxItemGroupHeading record

  • ResourceTable → ResResourceIdentifier

    Join on Resource = ResResourceIdentifier.RecId

    Many ProjInvoiceCost records → exactly one ResResourceIdentifier record

Get this data out

Tables are not exposed directly. These public entities read from ProjInvoiceCost; use one of them in Power BI, Power Platform or a data management project.

Need help with ProjInvoiceCost in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk