Table

PurchPurchaseOrderHeader

Show purchase order

Holds header data for showing a purchase order document. It combines company, vendor and delivery details with totals, tax and print options. Many amounts have a second copy with an Euro suffix. It has no key defined and links to the purchase order and its confirmation journal.

Table name
PurchPurchaseOrderHeader
Module
Procurement and sourcing
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (76)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountAmount in the transaction currency.Real
AmountCur
NoNone
AmountEuroAmount in the transaction currency, in the euro copy of the totals.Real
AmountCur
NoNone
AmountPrepayPrepayment amount in the transaction currency.Real
AmountCur
NoNone
CompanyAddressAddress of the company.String (250)
Addressing
NoNone
CompanyBankAccountNameName of the company bank account.String (60)
Name
NoNone
CompanyBankAccountNumBank account number of the company.String (48)
BankAccount
NoNone
CompanyBankAccountRoutingNumBank routing number of the company.String (12)
BankRegNum
NoNone
CompanyCommercialRegisterCommercial register where the company is kept.String (40)
CommercialRegister
NoNone
CompanyCommercialRegisterInsetNumberInset number in the commercial register.String
CommercialRegisterInsetNumber
NoNone
CompanyCommercialRegisterSectionSection of the commercial register.String
CommercialRegisterSection
NoNone
CompanyCoRegNumTax registration number of the company.String (25)
CompanyCoRegNum
NoNone
CompanyEmailEmail address of the company.String (80)
Email
NoNone
CompanyEnterpriseNumberEnterprise number of the company.String (50)
TaxEnterpriseNumber
NoNone
CompanyGiroBank giro number of the company.String (48)
GiroNum
NoNone
Container
Bitmap
NoNone
CompanyNameName of the company.String (60)
Name
NoNone
CompanyPhoneTelephone number of the company.String (20)
Phone
NoNone
CompanyRegNumRegistration (routing) number of the company.String (25)
CompanyRegNum
NoNone
CompanyTeleFaxFax number of the company.String (20)
TeleFax
NoNone
CompanyVATNumTax exempt number of the company.String (20)
VATNum
NoNone
ConfirmingPOMessageMessage text for confirming the purchase order.String (-1)
ConfirmingPOMessage
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
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
CurrencyCodeCurrency of the purchase order.String (3)
VendCurrencyCode
NoCurrency.CurrencyCodeNone
CurrencyCodeCompanyCurrency of the company.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
CurrencyCodeEuroCurrency code used for the Euro-suffixed amounts.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryAddressDelivery address.String (250)
Addressing
NoNone
DeliveryNameName of the delivery recipient.String (160)
VendName
NoNone
DlvTermDelivery terms code.String
VendDlvTermId
NoNone
EnableAmountControlsYes/No flag for amount controls. No label is given.low confidenceEnum
NoYes (enum)
NoNone
EndDiscTotal discount at order header level.Real
PurchEndDiscAmount
NoNone
EndDiscEuroTotal discount in the euro copy of the totals.Real
PurchEndDiscAmount
NoNone
FormLetterRemarksTxtForm note text for the document.String (-1)
FormLetterTxt
NoNone
IsPrepayYes/No flag for a prepayment. No label is given.Enum
NoYes (enum)
NoNone
IsProFormaYes/No flag for a pro forma document. No label is given.Enum
NoYes (enum)
NoNone
JournalRecIdPoints to the purchase order confirmation record.Int64
RefRecId
NoVendPurchOrderJour.RecIdNone
NetAmountNet amount of the order.Real
AmountCurNet
NoNone
NetAmountEuroNet amount in the euro copy of the totals.Real
AmountCurNet
NoNone
NotesFree-text note.String (-1)
Notes
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentPayment terms code.String (100)
VendPaymTermId
NoPaymTerm.PaymTermIdNone
PrePrintLevelLevel of pre-printed paper: blank, partly preprinted or preprinted.Enum
PrePrintLevel (enum)
NoNone
Enum
NoYes (enum)
NoNone
PrintTaxAmountSalesExchangeRateYes/No flag to print the tax amount at the sales exchange rate.Enum
NoYes (enum)
NoNone
PrintTaxFreeBalanceYes/No flag to print the tax-free balance.Enum
NoYes (enum)
NoNone
PurchaseOrderIdPurchase order number.String (20)
PurchaseOrderId
NoNone
PurchIdPurchase order the record points to.String (20)
PurchIdBase
YesPurchTable.PurchIdNone
PurchOrderDateDate of the purchase order.Date
TransDate
NoNone
PurchOrderDocNumPurchase order number shown on the document.String (20)
PurchaseOrderId
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
ReqAttentionAttention information for the order.String (255)
PurchReqAttention
NoNone
RoundOffRound-off amount.Real
RoundOff
NoNone
RoundOffEuroRound-off amount in the euro copy of the totals.Real
RoundOff
NoNone
SalesOrderBalanceBalance in the transaction currency.Real
AmountCur
NoNone
SalesOrderBalanceEuroBalance in the euro copy of the totals.Real
AmountCur
NoNone
SalesTaxExchangeRateExchange rate used for sales tax.Real
CurrencyExchangeRateReport
NoNone
ShowCompanyVATNumYes/No flag to show the company tax number.Enum
NoYesId
NoYes (enum)
NoNone
SumMarkupTotal charges on the order.Real
MarkupSumPurch
NoNone
SumMarkupEuroTotal charges in the euro copy of the totals.Real
MarkupSumPurch
NoNone
SumTaxSales tax amount in the transaction currency.Real
TaxAmountCur
NoNone
SumTaxEuroSales tax amount in the euro copy of the totals.Real
TaxAmountCur
NoNone
SumTaxMSTSales tax amount in the accounting currency.Real
TaxAmount
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxableBalanceTaxable part of the balance.Real
TaxTaxableAmountCur
NoNone
TaxableBalanceEuroTaxable part of the balance in the euro copy of the totals.Real
TaxTaxableAmountCur
NoNone
TaxFreeBalanceNontaxable part of the balance.Real
TaxTaxFreeAmountCur
NoNone
TaxFreeBalanceEuroNontaxable part of the balance in the euro copy of the totals.Real
TaxTaxFreeAmountCur
NoNone
TaxSpecPrintLevelHow the sales tax specification is printed: none, registration currency, or registration and company currency.Enum
TaxSpecPrintLevel (enum)
NoNone
VendAddressAddress of the vendor.String (250)
Addressing
NoNone
VendCoRegNumTax registration number of the vendor.String (25)
CompanyCoRegNum
NoNone
VendNameName of the vendor.String (160)
VendName
NoNone
VendRegNumRegistration (routing) number of the vendor.String (25)
CompanyRegNum
NoNone

Indexes (2)

Relations (6)

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

  • CompanyCurrency → Currency

    Join on CurrencyCodeCompany = Currency.CurrencyCode

    Many PurchPurchaseOrderHeader records → zero or one Currency record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many PurchPurchaseOrderHeader records → zero or one Currency record

  • EuroCurrency → Currency

    Join on CurrencyCodeEuro = Currency.CurrencyCode

    Many PurchPurchaseOrderHeader records → zero or one Currency record

  • PurchTable → PurchTable

    Join on PurchId = PurchTable.PurchId

    Many PurchPurchaseOrderHeader records → exactly one PurchTable record

  • VendPurchOrderJour → VendPurchOrderJour

    Join on JournalRecId = VendPurchOrderJour.RecId

    Many PurchPurchaseOrderHeader records → zero or one VendPurchOrderJour record

  • PaymTerm → PaymTerm

    Join on Payment = PaymTerm.PaymTermId

    Many PurchPurchaseOrderHeader records → zero or one PaymTerm record

Get this data out

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

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

Email sales@drdynamics.co.uk