Table

ProjInvoiceOnAcc

Project invoice lines on-account

Holds on-account lines on project invoices. Each line links to a project invoice and to a project on-account transaction. It stores the amount in both the transaction and accounting currencies, tax details and dimensions.

Table name
ProjInvoiceOnAcc
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 (33)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountLine amount in the transaction currency.Real
AmountCur
NoBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
AmountMSTAmount in the accounting currency.Real
AmountMST
NoProjInvoiceOnAccCDREntity
BookableResourceNameName of the bookable resource.String (60)
ProjBookableResourceName
NoProjInvoiceOnAccCDREntity
CategoryIdProject category of the line.String (30)
ProjCategoryId
NoProjCategory.CategoryIdProjInvoiceOnAccCDREntity
CurrencyIdSales currency of the invoice line.String (3)
ProjSalesCurrencyCode
NoCurrency.CurrencyCodeProjInvoiceOnAccCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
DefaultDimensionSet of financial dimension values for the line.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdProjInvoiceOnAccCDREntity
EInvoiceAccountCodeDimension account code, a text value of up to 35 characters used for electronic invoicing.low confidenceString (35)
EInvoiceAccountCode
NoProjInvoiceOnAccCDREntity
FinTagFinancial tag linked to the line, stored as a system record ID.Int64
FinTagRecId
NoFinTag.RecIdNone
InvoiceDateDate of the project invoice.Date
InvoiceDate
NoProjInvoiceOnAccCDREntity
OrderLineReference_NOReference to an order line. Used for Norway.String (30)
OrderLineReference_NO
NoProjInvoiceOnAccCDREntity
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.ProjIdProjInvoiceOnAccCDREntity
ProjInvoiceIdProject invoice the line belongs to.String (50)
ProjInvoiceId
NoProjInvoiceOnAccCDREntity
PSAContractLineNumBilling rule (contract line) that the line comes from.String
PSAContractLineNum
NoPSAContractLineItems.ContractLineNumProjInvoiceOnAccCDREntity
PSAIsOnAccountYes/no flag showing whether the line is on account.Enum
NoYesId
NoYes (enum)
NoProjInvoiceOnAccCDREntity
PSARefRecIdBudgetTransSystem record ID of the related project on-account transaction.Int64
PSARefRecIdBudgetTrans
NoProjOnAccTrans.RecIdProjInvoiceOnAccCDREntity
PSARefTableIdBudgetTransID of the table that the reference record belongs to.Integer
RefTableId
NoProjInvoiceOnAccCDREntity
QtySales quantity on the line.Real
SalesQty
NoBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
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
NoProjInvoiceOnAccCDREntity
RefInvoiceId_MYNumber of the original invoice. Used for Malaysia.String (50)
InvoiceId
NoProjInvoiceOnAccCDREntity
SATProductCode_MXProduct code linked to an external code record. Used for Mexico.String
SATProductCode_MX
NoProjInvoiceOnAccCDREntity
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
NoBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
TaxGroupIdSales tax group applied to the line.String
TaxGroup
NoTaxGroupHeading.TaxGroupBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
TaxItemGroupIdItem sales tax group applied to the line.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupProjInvoiceOnAccCDREntity
TaxWriteCodePrint code for the tax on the line.String
TaxWriteCode
NoProjInvoiceOnAccCDREntity
TransDateProject date of the underlying transaction.Date
ProjTransDate
NoBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
TransIdID of the project on-account transaction that this line invoices.String (20)
ProjOnAccTransId
YesProjOnAccTrans.TransIdBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity
TxtFree-text description of the line.String (255)
Description255
NoBusinessDocumentProjInvoiceOnAccLineEntityProjInvoiceOnAccCDREntity

Indexes (2)

Relations (12)

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

  • Currency → Currency

    Join on CurrencyId = Currency.CurrencyCode

    Many ProjInvoiceOnAcc records → zero or one Currency record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many ProjInvoiceOnAcc records → zero or one DimensionAttributeValueSet record

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many ProjInvoiceOnAcc records → zero or one FinTag record

  • ProjInvoiceJour → ProjInvoiceJour

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

    Many ProjInvoiceOnAcc records → zero or one ProjInvoiceJour record

  • projOnAccTrans → ProjOnAccTrans

    Join on TransId = ProjOnAccTrans.TransId

    Many ProjInvoiceOnAcc records → exactly one ProjOnAccTrans record

  • ProjOnAccTrans_RecId → ProjOnAccTrans

    Join on PSARefRecIdBudgetTrans = ProjOnAccTrans.RecId

    Many ProjInvoiceOnAcc records → exactly one ProjOnAccTrans record

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many ProjInvoiceOnAcc records → exactly one ProjTable record

  • PSAContractLineItems → PSAContractLineItems

    Join on PSAContractLineNum = PSAContractLineItems.ContractLineNum

    Many ProjInvoiceOnAcc records → zero or one PSAContractLineItems record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroupId = TaxGroupHeading.TaxGroup

    Many ProjInvoiceOnAcc records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroupId = TaxItemGroupHeading.TaxItemGroup

    Many ProjInvoiceOnAcc records → zero or one TaxItemGroupHeading record

  • SATProductCode_MX → EInvoiceExtCodeTable_MX

    Join on SATProductCode_MX = EInvoiceExtCodeTable_MX.CodeId, EInvoiceExtCodeTable_MX.CodeType = 1

    Exactly one ProjInvoiceOnAcc record → exactly one EInvoiceExtCodeTable_MX record

  • ProjCategory → ProjCategory

    Join on CategoryId = ProjCategory.CategoryId

    Many ProjInvoiceOnAcc records → zero or one ProjCategory record

Get this data out

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

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

Email sales@drdynamics.co.uk