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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AddressAddress text for the invoice. | String (250)LogisticsAddressing | No | None | |
AdjustmentDetailsTxt_THText describing an adjustment, used for Thailand. | String (255)Description255 | No | None | |
AuthorizedSignatory_BRName of the authorised signatory, used for Brazil. | String (60)Str60 | No | None | |
CashAccountingRegime_ESYes/No flag for the special cash accounting regime, used for Spain. | EnumTaxReportCashAccountingRegime_ESNoYes (enum) | No | None | |
City_BRCity name, used for Brazil. | String (60)LogisticsAddressCityName | No | None | |
CNPJCPFNum_BRCNPJ number (Brazilian company tax ID), used for Brazil. | String (20)CNPJCPFNum_BR | No | None | |
CompanyAddressAddress of the company issuing the invoice. | String (250)LogisticsAddressing | No | None | |
CompanyDebitDirectIdCompany's direct debit ID. | String (35)BankDebitDirectId | No | None | |
CompanyLogoCompany logo image stored as binary data. | ContainerBitmap | No | None | |
CompanyVATNumCompany tax exempt number. | String (20)VATNum | No | None | |
CompanyVATNumVisibilityYes/No flag controlling whether the company tax number is shown. | EnumNoYes (enum) | No | None | |
CorrectedInvoiceIdID of the original invoice that this invoice corrects. | String (50)CustVendCorrectedInvoiceId | No | None | |
CorrectiveReasonFree-text reason why the invoice was corrected. | String (-1)CustVendCorrectiveReason | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
CustAccountNumCustomer account the invoice is addressed to. Points to a customer record. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | None |
CustAddressCustomer address text. | String (250)LogisticsAddressing | No | None | |
CustFaxCustomer fax number. | String (20)TeleFax | No | None | |
CustNameCustomer name. | String (160)CustName | No | None | |
CustPhoneCustomer telephone number. | String (20)Phone | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryAddress_THDelivery address text, used for Thailand. | String (250)LogisticsAddressing | No | None | |
DesignationSignatory_BRJob title or designation of the signatory, used for Brazil. | String (60)Str60 | No | None | |
DueDateDate by which the invoice is due. | DateDueDate | No | None | |
Enterpriseregister_NOShort description text, used for Norway. Its exact meaning is not clear.low confidence | String (60)Description | No | None | |
ExchRate_AEExchange rate, used for the United Arab Emirates. | RealExchRate | No | None | |
FaxFax number, probably of the company.low confidence | String (20)TeleFax | No | None | |
FormLetterTxtFree-text note shown on the invoice form. | String (-1)FormLetterTxt | No | None | |
GIROBank account number shown on the invoice. | String (48)BankAccount | No | None | |
GSTReasonCode_MYReason code for GST, used for Malaysia. | StringReasonCode | Yes | None | |
GSTReliefClause_MYNote text for a GST relief clause, used for Malaysia. | String (-1)Notes | No | None | |
IndirectCostAmount for indirect cost. The currency is not stated in the metadata.low confidence | RealAmount | No | None | |
IntentLetterDate_ITDate of the intent letter, used for Italy. | DateTransDate | No | None | |
IntentLetterFromDate_ITStart date of the intent letter, used for Italy. | DateFromDate | Yes | None | |
IntentLetterId_ITNumber of the intent letter supplied by the customer, used for Italy. | String (17)IntentLetterId_IT | No | None | |
IntentLetterInternalId_ITInternal number the company assigns to the intent letter, used for Italy. | StringIntentLetterInternalId_IT | No | None | |
IntentLetterPostingDate_ITPosting date of the intent letter, used for Italy. | DateIntentLetterPostingDate_IT | No | None | |
IntentLetterToDate_ITEnd date of the customer's intent letter, used for Italy. | DateToDate | Yes | None | |
InvoiceBranch_THBranch number, used for Thailand. | String (15)BranchNumber_TH | No | None | |
InvoiceBranchName_THName of the branch, used for Thailand. | String (60)Name | No | None | |
InvoiceCurrencySales currency of the invoice. Points to a currency record. | String (3)ProjSalesCurrencyCode | No | Currency.CurrencyCode | None |
InvoiceDateDate of the project invoice. | DateTransDate | No | None | |
InvoiceNumProject invoice number. | String (50)ProjInvoiceId | No | None | |
InvoiceTaxNatureOfAddress_THTax address type, head office or branch, used for Thailand. | EnumTaxNatureOfAddress_TH (enum) | No | None | |
InvoiceTaxRegNumber_THTax registration number, used for Thailand. | String (60)TaxRegistrationNumber | No | None | |
InvoiceType_MYType of invoice, used for Malaysia: invoice, GST invoice, self-billed invoice or service invoice. | EnumInvoiceType_MY (enum) | No | None | |
MandateBankIBANIBAN of the bank account on the direct debit mandate. | String (48)BankIBAN | No | None | |
MandateReferenceID of the direct debit mandate. | String (35)CustMandateId | No | None | |
MandateSWIFTNoSWIFT code of the bank on the direct debit mandate. | String (20)SWIFTNo | No | None | |
MiscellaneousCharge_AEMiscellaneous charge in transaction currency, used for the United Arab Emirates. | RealAmountCur | No | None | |
MiscellaneousChargesMiscellaneous charges, in transaction currency. | RealAmountCur | No | None | |
NameName of the company. | String (60)CompanyName | No | None | |
Narration_BRShort narration text, used for Brazil. | String (60)Description | No | None | |
NetInvoiceAmountNet invoice amount, in transaction currency. | RealAmountCur | No | None | |
NetInvoiceAmount_AENet invoice amount in transaction currency, used for the United Arab Emirates. | RealAmountCur | No | None | |
NonTaxablePart of the amount that is not taxable. | RealTaxTaxFreeAmountCur | No | None | |
NonTaxableMSTNontaxable amount. The name points to accounting currency, but the currency is not stated in the metadata.low confidence | RealTaxTaxFreeAmountCur | No | None | |
OurAccntNumOur account number, as known to the customer. | String (20)CustAccountExt | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentTerms of payment for the invoice. Points to a payment term record. | String (100)CustPaymTermId | No | PaymTerm.PaymTermId | None |
PaymentReference_BEPayment reference, used for Belgium. | String (35)PaymReference | No | None | |
PrePrintLevelShowLevel of pre-printing on the paper: blank paper, partly preprinted or preprinted. | EnumPrePrintLevel (enum) | No | None | |
ProjectContractProject contract ID the invoice relates to. Points to a project contract. | String (20)ProjInvoiceProjId | No | ProjInvoiceTable.ProjInvoiceProjId | None |
QRCode_SAQR code image stored as binary data, used for Saudi Arabia. | ContainerBitmap | No | None | |
QRCode_WQR code image stored as binary data. | ContainerBitmap | No | 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 | |
RefInvoiceId_THID of a reference invoice, used for Thailand. | String (50)TaxUnrealizedSalesRefInvoiceId | No | None | |
RegistrationNumberCompany registration number. | String (25)CompanyCoRegNumShortTxt | No | None | |
RemarkTxt_THRemark text, used for Thailand. | String (255)Description255 | No | None | |
RetainageAmountRetainage amount, in accounting currency. | RealAmountMST | No | None | |
RetainageAmount_AERetainage amount in accounting currency, used for the United Arab Emirates. | RealAmountMST | No | None | |
RoundOffRound-off amount on the invoice. | RealRoundOff | No | None | |
RoundOff_AERound-off amount, used for the United Arab Emirates. | RealRoundOff | No | None | |
SalesTaxSales tax amount, in transaction currency. | RealAmountCur | No | None | |
SalesTax_AESales tax amount in transaction currency, used for the United Arab Emirates. | RealAmountCur | No | None | |
ShowReportingCurTotals_AEYes/No flag for showing totals in reporting currency, used for the United Arab Emirates. | EnumNoYes (enum) | No | None | |
ShowSepaNotificationYes/No flag for showing a SEPA notification. | EnumNoYes (enum) | No | None | |
StandardCurrencyCurrency code, probably the company's standard currency.low confidence | String (3)CurrencyCode | No | None | |
SubmissionUUID_WUnique ID of an electronic submission of the invoice. | String (1000)FreeText1000 | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxableTaxable amount on the invoice. | RealTaxTaxableAmountCur | No | None | |
TaxableMSTTaxable amount. The name points to accounting currency, but the currency is not stated in the metadata.low confidence | RealTaxTaxableAmountCur | No | None | |
TaxRegistrationNumber_AETax registration number, used for the United Arab Emirates. | String (60)TaxRegistrationNumber | No | None | |
TelephoneTelephone number, probably of the company.low confidence | String (20)Phone | No | None | |
TotalInvoice total, in transaction currency. | RealAmountCur | No | None | |
Total_AEInvoice total in transaction currency, used for the United Arab Emirates. | RealAmountCur | No | None | |
TotalCustomerBalanceTotal customer balance, in transaction currency. | RealAmountCur | No | None | |
TotalCustomerBalance_AETotal customer balance in transaction currency, used for the United Arab Emirates. | RealAmountCur | No | None | |
TotaldiscountTotal cash discount amount. | RealDiscAmount | No | None | |
TotalDiscount_AETotal cash discount amount, used for the United Arab Emirates. | RealDiscAmount | No | None |
Indexes (2)
CreatedTransactionIdIdxNot unique.
CreatedDateTimeIdxNot unique.
Relations (5)
Each relation joins PSAProjInvoiceHeaderTmp to another table on the fields shown.
Currency→CurrencyJoin on
InvoiceCurrency = Currency.CurrencyCodeMany PSAProjInvoiceHeaderTmp records → zero or one Currency record
CustTable→CustTableJoin on
CustAccountNum = CustTable.AccountNumMany PSAProjInvoiceHeaderTmp records → zero or one CustTable record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany PSAProjInvoiceHeaderTmp records → zero or one PaymTerm record
ProjInvoiceJour→ProjInvoiceJourJoin on
InvoiceDate = ProjInvoiceJour.InvoiceDate,InvoiceNum = ProjInvoiceJour.ProjInvoiceIdExactly one PSAProjInvoiceHeaderTmp record → zero or one ProjInvoiceJour record
ProjInvoiceTable→ProjInvoiceTableJoin on
ProjectContract = ProjInvoiceTable.ProjInvoiceProjIdMany 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.