Table

PSACustomerInvoiceRetain

Customer retained invoices

Holds retained amounts for project invoices, with no defined key. Each record links to a project, a billing rule, a funding source, an invoice proposal and a project invoice. It stores the amount to retain, the amount released and the amount invoiced now.

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

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ContractLineNumBilling rule (contract line) that the retained amount relates to.String
PSAContractLineNum
NoPSAContractLineItems.ContractLineNumNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
FundingSourceFunding source the retained amount is linked to, by its system record ID.Int64
ProjFundingSourceRefId
NoProjFundingSource.RecIdNone
InvoicedNowAmount invoiced in this transaction, in accounting currency.Real
AmountMST
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjIdProject that the retained amount belongs to.String (20)
ProjId
NoProjTable.ProjIdNone
ProjInvoiceDateDate of the related project invoice.Date
TransDate
NoNone
ProjInvoiceIdIdentifier of the related project invoice.String (50)
ProjInvoiceId
NoNone
ProjProposalIdInvoice proposal that the record is linked to.String (50)
ProjProposalId
NoProjProposalJour.ProposalIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReleasedAmountAmount of retention that has been released, in accounting currency.Real
AmountMST
NoNone
RetainedAmountAmount to hold back as retention, in accounting currency.Real
AmountMST
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Relations (5)

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

  • ProjFundingSource → ProjFundingSource

    Join on FundingSource = ProjFundingSource.RecId

    Many PSACustomerInvoiceRetain records → zero or one ProjFundingSource record

  • ProjInvoiceJour → ProjInvoiceJour

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

    Many PSACustomerInvoiceRetain records → zero or one ProjInvoiceJour record

  • ProjProposalJour → ProjProposalJour

    Join on ProjProposalId = ProjProposalJour.ProposalId

    Many PSACustomerInvoiceRetain records → zero or one ProjProposalJour record

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many PSACustomerInvoiceRetain records → zero or one ProjTable record

  • PSAContractLineItems → PSAContractLineItems

    Join on ContractLineNum = PSAContractLineItems.ContractLineNum

    Many PSACustomerInvoiceRetain records → zero or one PSAContractLineItems record

Get this data out

No public entity reads from PSACustomerInvoiceRetain. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk