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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CompletePercentPercentage of the contract line that is complete. | RealPercent | No | None | |
ContractLineNumBilling rule identifier, pointing to a contract line item. | StringPSAContractLineNum | No | PSAContractLineItems.ContractLineNum | None |
ContractValueValue of the contract line. | RealPSAContractValue | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InvoicedAmount invoiced so far, in accounting currency. | RealAmountMST | No | None | |
InvoiceDateDate of the project invoice. | DateInvoiceDate | No | None | |
InvoicedNowAmount invoiced on this invoice, in accounting currency. | RealAmountMST | No | None | |
IsReleaseYes/no flag for release of retainage. | EnumNoYesIdNoYes (enum) | No | None | |
LedgerDimensionRecord ID of the ledger dimension combination, shown as the main account. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjInvoiceIdProject invoice number. | String (50)ProjInvoiceId | No | None | |
ProjProposalIdInvoice proposal the invoice came from. | String (50)ProjProposalId | No | ProjProposalJour.ProposalId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReleasedAmountAmount to invoice, in accounting currency. | RealAmountMST | No | None | |
ReleasedPercentPercentage to invoice. | RealPercent | No | None | |
RetainedRetainage balance, in accounting currency. | RealAmountMST | No | None | |
RetainedAmountAmount to retain, in accounting currency. | RealAmountMST | No | None | |
RetainedNowRetainage amount on this invoice, in accounting currency. | RealAmountMST | No | None | |
RetainedPercentPercentage to retain. | RealPercent | No | None | |
ScheduleIdID of the customer retention term. | String (20)PSAProjRetainScheduleId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
VoucherVoucher number linked to the project invoice. | String (20)Voucher | No | None |
Indexes (1)
VoucherDateIdxNot unique.
Relations (4)
Each relation joins PSAContractInvoiceRetain to another table on the fields shown.
DimensionAttributeValueCombination→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany PSAContractInvoiceRetain records → zero or one DimensionAttributeValueCombination record
ProjInvoiceJour→ProjInvoiceJourJoin on
InvoiceDate = ProjInvoiceJour.InvoiceDate,Voucher = ProjInvoiceJour.LedgerVoucher,ProjInvoiceId = ProjInvoiceJour.ProjInvoiceIdMany PSAContractInvoiceRetain records → zero or one ProjInvoiceJour record
ProjProposalJour→ProjProposalJourJoin on
ProjProposalId = ProjProposalJour.ProposalIdMany PSAContractInvoiceRetain records → zero or one ProjProposalJour record
PSAContractLineItems→PSAContractLineItemsJoin on
ContractLineNum = PSAContractLineItems.ContractLineNumMany 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.