Table

PSAContractLineInvoiceTmp

Project invoice

Temporary table with the data used to print a project invoice. It combines contract line details, customer and company address data, delivery details, tax and totals. It also has extra fields used for Malaysia (_MY) and the United Arab Emirates (_AE).

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

Fields (89)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
Amount_MYAmount; used for Malaysia.Real
Amount
NoNone
CashDiscAmount_MYCash discount amount; used for Malaysia.Real
CashDiscAmount
NoNone
CompanyCoRegNumCompany registration number.String (25)
CompanyCoRegNumShortTxt
NoNone
CompanyDebitDirectIdDirect debit ID of the company.String (35)
BankDebitDirectId
NoNone
CompanyGiroCompany bank account number.String (48)
BankAccount
NoNone
Container
Bitmap
NoNone
CompanyPhoneCompany telephone number.String (20)
Phone
NoNone
CompanyTelefaxCompany fax number.String (20)
TeleFax
NoNone
CompanyVATNumTax exempt number of the company.String (20)
VATNum
NoNone
ContractIdProject contract ID, pointing to a project contract.String (20)
ProjInvoiceProjId
NoProjInvoiceTable.ProjInvoiceProjIdNone
ContractLineNumBilling rule identifier, pointing to a contract line item.String
PSAContractLineNum
NoPSAContractLineItems.ContractLineNumNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CurrencyCodeSales currency code, pointing to a currency.String (3)
ProjSalesCurrencyCode
NoCurrency.CurrencyCodeNone
CurrencyCode_AECurrency code; used for United Arab Emirates.String (3)
CurrencyCode
NoNone
CustAccountExtCustomer account, pointing to a customer.String (20)
CustInvoiceAccount
NoCustTable.AccountNumNone
CustCompanyAddressCustomer address text.String (250)
Addressing
NoNone
CustCompanyNameCustomer company name.String (60)
CompanyName
NoNone
CustCompanyPhoneCustomer telephone number.String (20)
Phone
NoNone
CustCompanyTelefaxCustomer fax number.String (20)
TeleFax
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryAddressDelivery address text.String (250)
Addressing
NoNone
DeliveryNameCompany name for delivery.String (60)
CompanyName
NoNone
DocumentHeaderNote text for the invoice header.String (-1)
Notes
NoNone
DocumentLineNote text for the invoice line.String (-1)
Notes
NoNone
DocuRefHeaderVisibilityYes/no flag for showing document references on the header.Enum
NoYes (enum)
NoNone
DocuRefLineVisibilityYes/no flag for showing document references on the line.Enum
NoYes (enum)
NoNone
DueDateDue date of the invoice.Date
DueDate
NoNone
ExchRate_AEExchange rate; used for United Arab Emirates.Real
ExchRate
NoNone
GSTReasonCode_MYReason code; used for Malaysia.String
ReasonCode
NoNone
GSTSummaryText_MYShort text for the GST summary; used for Malaysia.String (30)
String30
NoNone
InvoiceAccountVATNumTax exempt number of the invoice account.String (20)
VATNum
NoNone
InvoiceAmountInvoice amount in transaction currency.Real
AmountCur
NoNone
InvoiceDateInvoice date.Date
TransDate
NoNone
InvoicedToDateAmount invoiced to date, in accounting currency.Real
AmountMST
NoNone
InvoiceNumProject invoice number.String (50)
ProjInvoiceId
NoNone
InvoiceRoundOffRound-off amount on the invoice.Real
RoundOff
NoNone
InvoiceRoundOff_AERound-off amount; used for United Arab Emirates.Real
RoundOff
NoNone
InvoiceType_MYInvoice type: invoice, GST invoice, self-billed invoice or service invoice; used for Malaysia.Enum
InvoiceType_MY (enum)
NoNone
InvoiceVATNumVisibilityYes/no flag for showing the tax number on the invoice.Enum
NoYes (enum)
NoNone
IsGSTSummary_MYYes/no flag for a GST summary; used for Malaysia.Enum
NoYes (enum)
NoNone
LineDescDescription of the line.String (60)
Description
NoNone
LineTypeContract line type: milestone, progress, time and material, fee or unit of delivery.Enum
PSAContractLineType (enum)
NoNone
LineValueAmount of the line.Real
PSAAmount
NoNone
MandateBankIBANIBAN of the direct debit mandate.String (48)
BankIBAN
NoNone
MandateReferenceDirect debit mandate ID.String (35)
CustMandateId
NoNone
MandateSWIFTNoSWIFT code of the mandate bank.String (20)
SWIFTNo
NoNone
NetAmountNet amount in transaction currency.Real
AmountCurNet
NoNone
OriginalInvoice_AENumber of the original invoice; used for United Arab Emirates.String (20)
CustInvoiceId
NoNone
OurAccountNumOur account number at the customer.String (20)
CustAccountExt
NoNone
PackingSlipInfoFree text of up to 255 characters about the packing slip.String (255)
String255
NoNone
PackingSlipInfoVisibilityYes/no flag for showing packing slip information.Enum
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymTermIdTerms of payment, pointing to a payment term.String (100)
CustPaymTermId
NoPaymTerm.PaymTermIdNone
PercentRetainageRetainage percentage.Real
Percent
NoNone
PrePrintLevelShowPre-print level: blank paper, partly preprinted or preprinted.Enum
PrePrintLevel (enum)
NoNone
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
RefInvoiceDate_MYDate of the referenced invoice; used for Malaysia.Date
TransDate
NoNone
RefInvoiceID_MYNumber of the referenced invoice; used for Malaysia.String (20)
CustInvoiceId
NoNone
RetainageAmountRetainage amount, in accounting currency.Real
AmountMST
NoNone
SalesBalanceSales balance in transaction currency.Real
AmountCur
NoNone
SalesBalance_AESales balance in transaction currency; used for United Arab Emirates.Real
AmountCur
NoNone
ShowReportingCurTotals_AEYes/no flag for showing totals in reporting currency; used for United Arab Emirates.Enum
NoYes (enum)
NoNone
ShowSepaNotificationYes/no flag for showing a SEPA notification.Enum
NoYes (enum)
NoNone
SMABasePriceBase price used for index calculation.Real
SMABasePrice
NoNone
SMAIndexIndex value.Real
SMAIndex
NoNone
SMASpecIndexCalcYes/no flag to specify the index calculation.Enum
SMASpecIndexCalc
NoYes (enum)
NoNone
SumMarkupTotal markup in transaction currency.Real
AmountCur
NoNone
SumMarkup_AETotal markup in transaction currency; used for United Arab Emirates.Real
MarkupSumSales
NoNone
SumTaxTotal tax in transaction currency.Real
AmountCur
NoNone
SumTax_AETotal tax in transaction currency; used for United Arab Emirates.Real
AmountCur
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxableBalanceTaxable amount; currency not stated in the metadata.Real
TaxTaxableAmountCur
NoNone
TaxAmount_AESales tax amount; used for United Arab Emirates.Real
TaxAmountCur
NoNone
TaxAmount_MYSales tax amount; used for Malaysia.Real
TaxAmountCur
NoNone
TaxBaseAmount_AEOrigin amount for tax; used for United Arab Emirates.Real
TaxBaseCur
NoNone
TaxBaseAmount_MYOrigin amount for tax; used for Malaysia.Real
TaxBaseCur
NoNone
TaxBaseQty_MYTax quantity; used for Malaysia.Real
TaxQty
NoNone
TaxCode_AESales tax code; used for United Arab Emirates.String
TaxCode
NoNone
TaxFreeBalanceNontaxable amount; currency not stated in the metadata.Real
TaxTaxFreeAmountCur
NoNone
TaxRegistrationNumber_AETax registration number; used for United Arab Emirates.String (60)
TaxRegistrationNumber
NoNone
TaxWriteCode_AETax print code; used for United Arab Emirates.String
TaxWriteCode
NoNone
TotalTotal amount in transaction currency.Real
AmountCur
NoNone
TotalDiscCash discount amount.Real
DiscAmount
NoNone
TotalDisc_AECash discount amount; used for United Arab Emirates.Real
DiscAmount
NoNone
TotalInvoiceAmount_AETotal invoice amount, labelled as round-off; used for United Arab Emirates.low confidenceReal
RoundOff
NoNone
VATAmount_AESales tax amount; used for United Arab Emirates.Real
TaxAmount
NoNone
VATPercent_AETax rate value; used for United Arab Emirates.Real
TaxValue
NoNone

Indexes (2)

Relations (6)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many PSAContractLineInvoiceTmp records → zero or one Currency record

  • CustTable → CustTable

    Join on CustAccountExt = CustTable.AccountNum

    Many PSAContractLineInvoiceTmp records → zero or one CustTable record

  • PaymTerm → PaymTerm

    Join on PaymTermId = PaymTerm.PaymTermId

    Many PSAContractLineInvoiceTmp records → zero or one PaymTerm record

  • ProjInvoiceJour → ProjInvoiceJour

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

    Many PSAContractLineInvoiceTmp records → zero or one ProjInvoiceJour record

  • ProjInvoiceTable → ProjInvoiceTable

    Join on ContractId = ProjInvoiceTable.ProjInvoiceProjId

    Many PSAContractLineInvoiceTmp records → zero or one ProjInvoiceTable record

  • PSAContractLineItems → PSAContractLineItems

    Join on ContractLineNum = PSAContractLineItems.ContractLineNum

    Many PSAContractLineInvoiceTmp records → zero or one PSAContractLineItems record

Get this data out

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

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

Email sales@drdynamics.co.uk