Table

PSAProjInvoiceHeaderTmp

Project invoice

Temporary table holding header data for printing a project invoice. It combines company, customer, bank, payment and total details. It also has many fields used for specific countries, such as Brazil, Spain, Thailand, Malaysia, the United Arab Emirates and Italy.

Table name
PSAProjInvoiceHeaderTmp
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 (91)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AddressAddress text for the invoice.String (250)
LogisticsAddressing
NoNone
AdjustmentDetailsTxt_THText describing an adjustment, used for Thailand.String (255)
Description255
NoNone
AuthorizedSignatory_BRName of the authorised signatory, used for Brazil.String (60)
Str60
NoNone
CashAccountingRegime_ESYes/No flag for the special cash accounting regime, used for Spain.Enum
TaxReportCashAccountingRegime_ES
NoYes (enum)
NoNone
City_BRCity name, used for Brazil.String (60)
LogisticsAddressCityName
NoNone
CNPJCPFNum_BRCNPJ number (Brazilian company tax ID), used for Brazil.String (20)
CNPJCPFNum_BR
NoNone
CompanyAddressAddress of the company issuing the invoice.String (250)
LogisticsAddressing
NoNone
CompanyDebitDirectIdCompany's direct debit ID.String (35)
BankDebitDirectId
NoNone
Container
Bitmap
NoNone
CompanyVATNumCompany tax exempt number.String (20)
VATNum
NoNone
CompanyVATNumVisibilityYes/No flag controlling whether the company tax number is shown.Enum
NoYes (enum)
NoNone
CorrectedInvoiceIdID of the original invoice that this invoice corrects.String (50)
CustVendCorrectedInvoiceId
NoNone
CorrectiveReasonFree-text reason why the invoice was corrected.String (-1)
CustVendCorrectiveReason
NoNone
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
CustAccountNumCustomer account the invoice is addressed to. Points to a customer record.String (20)
CustInvoiceAccount
NoCustTable.AccountNumNone
CustAddressCustomer address text.String (250)
LogisticsAddressing
NoNone
CustFaxCustomer fax number.String (20)
TeleFax
NoNone
CustNameCustomer name.String (160)
CustName
NoNone
CustPhoneCustomer telephone number.String (20)
Phone
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryAddress_THDelivery address text, used for Thailand.String (250)
LogisticsAddressing
NoNone
DesignationSignatory_BRJob title or designation of the signatory, used for Brazil.String (60)
Str60
NoNone
DueDateDate by which the invoice is due.Date
DueDate
NoNone
Enterpriseregister_NOShort description text, used for Norway. Its exact meaning is not clear.low confidenceString (60)
Description
NoNone
ExchRate_AEExchange rate, used for the United Arab Emirates.Real
ExchRate
NoNone
FaxFax number, probably of the company.low confidenceString (20)
TeleFax
NoNone
FormLetterTxtFree-text note shown on the invoice form.String (-1)
FormLetterTxt
NoNone
GIROBank account number shown on the invoice.String (48)
BankAccount
NoNone
GSTReasonCode_MYReason code for GST, used for Malaysia.String
ReasonCode
YesNone
GSTReliefClause_MYNote text for a GST relief clause, used for Malaysia.String (-1)
Notes
NoNone
IndirectCostAmount for indirect cost. The currency is not stated in the metadata.low confidenceReal
Amount
NoNone
IntentLetterDate_ITDate of the intent letter, used for Italy.Date
TransDate
NoNone
IntentLetterFromDate_ITStart date of the intent letter, used for Italy.Date
FromDate
YesNone
IntentLetterId_ITNumber of the intent letter supplied by the customer, used for Italy.String (17)
IntentLetterId_IT
NoNone
IntentLetterInternalId_ITInternal number the company assigns to the intent letter, used for Italy.String
IntentLetterInternalId_IT
NoNone
IntentLetterPostingDate_ITPosting date of the intent letter, used for Italy.Date
IntentLetterPostingDate_IT
NoNone
IntentLetterToDate_ITEnd date of the customer's intent letter, used for Italy.Date
ToDate
YesNone
InvoiceBranch_THBranch number, used for Thailand.String (15)
BranchNumber_TH
NoNone
InvoiceBranchName_THName of the branch, used for Thailand.String (60)
Name
NoNone
InvoiceCurrencySales currency of the invoice. Points to a currency record.String (3)
ProjSalesCurrencyCode
NoCurrency.CurrencyCodeNone
InvoiceDateDate of the project invoice.Date
TransDate
NoNone
InvoiceNumProject invoice number.String (50)
ProjInvoiceId
NoNone
InvoiceTaxNatureOfAddress_THTax address type, head office or branch, used for Thailand.Enum
TaxNatureOfAddress_TH (enum)
NoNone
InvoiceTaxRegNumber_THTax registration number, used for Thailand.String (60)
TaxRegistrationNumber
NoNone
InvoiceType_MYType of invoice, used for Malaysia: invoice, GST invoice, self-billed invoice or service invoice.Enum
InvoiceType_MY (enum)
NoNone
MandateBankIBANIBAN of the bank account on the direct debit mandate.String (48)
BankIBAN
NoNone
MandateReferenceID of the direct debit mandate.String (35)
CustMandateId
NoNone
MandateSWIFTNoSWIFT code of the bank on the direct debit mandate.String (20)
SWIFTNo
NoNone
MiscellaneousCharge_AEMiscellaneous charge in transaction currency, used for the United Arab Emirates.Real
AmountCur
NoNone
MiscellaneousChargesMiscellaneous charges, in transaction currency.Real
AmountCur
NoNone
NameName of the company.String (60)
CompanyName
NoNone
Narration_BRShort narration text, used for Brazil.String (60)
Description
NoNone
NetInvoiceAmountNet invoice amount, in transaction currency.Real
AmountCur
NoNone
NetInvoiceAmount_AENet invoice amount in transaction currency, used for the United Arab Emirates.Real
AmountCur
NoNone
NonTaxablePart of the amount that is not taxable.Real
TaxTaxFreeAmountCur
NoNone
NonTaxableMSTNontaxable amount. The name points to accounting currency, but the currency is not stated in the metadata.low confidenceReal
TaxTaxFreeAmountCur
NoNone
OurAccntNumOur account number, as known to the customer.String (20)
CustAccountExt
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentTerms of payment for the invoice. Points to a payment term record.String (100)
CustPaymTermId
NoPaymTerm.PaymTermIdNone
PaymentReference_BEPayment reference, used for Belgium.String (35)
PaymReference
NoNone
PrePrintLevelShowLevel of pre-printing on the paper: blank paper, partly preprinted or preprinted.Enum
PrePrintLevel (enum)
NoNone
ProjectContractProject contract ID the invoice relates to. Points to a project contract.String (20)
ProjInvoiceProjId
NoProjInvoiceTable.ProjInvoiceProjIdNone
QRCode_SAQR code image stored as binary data, used for Saudi Arabia.Container
Bitmap
NoNone
QRCode_WQR code image stored as binary data.Container
Bitmap
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
RefInvoiceId_THID of a reference invoice, used for Thailand.String (50)
TaxUnrealizedSalesRefInvoiceId
NoNone
RegistrationNumberCompany registration number.String (25)
CompanyCoRegNumShortTxt
NoNone
RemarkTxt_THRemark text, used for Thailand.String (255)
Description255
NoNone
RetainageAmountRetainage amount, in accounting currency.Real
AmountMST
NoNone
RetainageAmount_AERetainage amount in accounting currency, used for the United Arab Emirates.Real
AmountMST
NoNone
RoundOffRound-off amount on the invoice.Real
RoundOff
NoNone
RoundOff_AERound-off amount, used for the United Arab Emirates.Real
RoundOff
NoNone
SalesTaxSales tax amount, in transaction currency.Real
AmountCur
NoNone
SalesTax_AESales tax amount in transaction currency, used for the United Arab Emirates.Real
AmountCur
NoNone
ShowReportingCurTotals_AEYes/No flag for showing totals in reporting currency, used for the United Arab Emirates.Enum
NoYes (enum)
NoNone
ShowSepaNotificationYes/No flag for showing a SEPA notification.Enum
NoYes (enum)
NoNone
StandardCurrencyCurrency code, probably the company's standard currency.low confidenceString (3)
CurrencyCode
NoNone
SubmissionUUID_WUnique ID of an electronic submission of the invoice.String (1000)
FreeText1000
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxableTaxable amount on the invoice.Real
TaxTaxableAmountCur
NoNone
TaxableMSTTaxable amount. The name points to accounting currency, but the currency is not stated in the metadata.low confidenceReal
TaxTaxableAmountCur
NoNone
TaxRegistrationNumber_AETax registration number, used for the United Arab Emirates.String (60)
TaxRegistrationNumber
NoNone
TelephoneTelephone number, probably of the company.low confidenceString (20)
Phone
NoNone
TotalInvoice total, in transaction currency.Real
AmountCur
NoNone
Total_AEInvoice total in transaction currency, used for the United Arab Emirates.Real
AmountCur
NoNone
TotalCustomerBalanceTotal customer balance, in transaction currency.Real
AmountCur
NoNone
TotalCustomerBalance_AETotal customer balance in transaction currency, used for the United Arab Emirates.Real
AmountCur
NoNone
TotaldiscountTotal cash discount amount.Real
DiscAmount
NoNone
TotalDiscount_AETotal cash discount amount, used for the United Arab Emirates.Real
DiscAmount
NoNone

Indexes (2)

Relations (5)

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

  • Currency → Currency

    Join on InvoiceCurrency = Currency.CurrencyCode

    Many PSAProjInvoiceHeaderTmp records → zero or one Currency record

  • CustTable → CustTable

    Join on CustAccountNum = CustTable.AccountNum

    Many PSAProjInvoiceHeaderTmp records → zero or one CustTable record

  • PaymTerm → PaymTerm

    Join on Payment = PaymTerm.PaymTermId

    Many PSAProjInvoiceHeaderTmp records → zero or one PaymTerm record

  • ProjInvoiceJour → ProjInvoiceJour

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

    Exactly one PSAProjInvoiceHeaderTmp record → zero or one ProjInvoiceJour record

  • ProjInvoiceTable → ProjInvoiceTable

    Join on ProjectContract = ProjInvoiceTable.ProjInvoiceProjId

    Many PSAProjInvoiceHeaderTmp records → zero or one ProjInvoiceTable record

Get this data out

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

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

Email sales@drdynamics.co.uk