Table

PSAContractInvoiceRetain

Retainage records at the contract line level for an invoice

Holds retainage figures for each contract line on a project invoice. It records amounts invoiced, released and retained, with matching percentages. It links to contract lines, the invoice, the invoice proposal and a ledger dimension combination.

Table name
PSAContractInvoiceRetain
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 (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CompletePercentPercentage of the contract line that is complete.Real
Percent
NoNone
ContractLineNumBilling rule identifier, pointing to a contract line item.String
PSAContractLineNum
NoPSAContractLineItems.ContractLineNumNone
ContractValueValue of the contract line.Real
PSAContractValue
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InvoicedAmount invoiced so far, in accounting currency.Real
AmountMST
NoNone
InvoiceDateDate of the project invoice.Date
InvoiceDate
NoNone
InvoicedNowAmount invoiced on this invoice, in accounting currency.Real
AmountMST
NoNone
IsReleaseYes/no flag for release of retainage.Enum
NoYesId
NoYes (enum)
NoNone
LedgerDimensionRecord ID of the ledger dimension combination, shown as the main account.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjInvoiceIdProject invoice number.String (50)
ProjInvoiceId
NoNone
ProjProposalIdInvoice proposal the invoice came from.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 to invoice, in accounting currency.Real
AmountMST
NoNone
ReleasedPercentPercentage to invoice.Real
Percent
NoNone
RetainedRetainage balance, in accounting currency.Real
AmountMST
NoNone
RetainedAmountAmount to retain, in accounting currency.Real
AmountMST
NoNone
RetainedNowRetainage amount on this invoice, in accounting currency.Real
AmountMST
NoNone
RetainedPercentPercentage to retain.Real
Percent
NoNone
ScheduleIdID of the customer retention term.String (20)
PSAProjRetainScheduleId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VoucherVoucher number linked to the project invoice.String (20)
Voucher
NoNone

Indexes (1)

Relations (4)

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

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many PSAContractInvoiceRetain records → zero or one DimensionAttributeValueCombination record

  • ProjInvoiceJour → ProjInvoiceJour

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

    Many PSAContractInvoiceRetain records → zero or one ProjInvoiceJour record

  • ProjProposalJour → ProjProposalJour

    Join on ProjProposalId = ProjProposalJour.ProposalId

    Many PSAContractInvoiceRetain records → zero or one ProjProposalJour record

  • PSAContractLineItems → PSAContractLineItems

    Join on ContractLineNum = PSAContractLineItems.ContractLineNum

    Many PSAContractInvoiceRetain records → zero or one PSAContractLineItems record

Get this data out

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

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

Email sales@drdynamics.co.uk