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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AmountAmount in the transaction currency. | RealAmountCur | No | None | |
AmountEuroAmount in the transaction currency, in the euro copy of the totals. | RealAmountCur | No | None | |
AmountPrepayPrepayment amount in the transaction currency. | RealAmountCur | No | None | |
CompanyAddressAddress of the company. | String (250)Addressing | No | None | |
CompanyBankAccountNameName of the company bank account. | String (60)Name | No | None | |
CompanyBankAccountNumBank account number of the company. | String (48)BankAccount | No | None | |
CompanyBankAccountRoutingNumBank routing number of the company. | String (12)BankRegNum | No | None | |
CompanyCommercialRegisterCommercial register where the company is kept. | String (40)CommercialRegister | No | None | |
CompanyCommercialRegisterInsetNumberInset number in the commercial register. | StringCommercialRegisterInsetNumber | No | None | |
CompanyCommercialRegisterSectionSection of the commercial register. | StringCommercialRegisterSection | No | None | |
CompanyCoRegNumTax registration number of the company. | String (25)CompanyCoRegNum | No | None | |
CompanyEmailEmail address of the company. | String (80)Email | No | None | |
CompanyEnterpriseNumberEnterprise number of the company. | String (50)TaxEnterpriseNumber | No | None | |
CompanyGiroBank giro number of the company. | String (48)GiroNum | No | None | |
CompanyLogoCompany logo image. | ContainerBitmap | No | None | |
CompanyNameName of the company. | String (60)Name | No | None | |
CompanyPhoneTelephone number of the company. | String (20)Phone | No | None | |
CompanyRegNumRegistration (routing) number of the company. | String (25)CompanyRegNum | No | None | |
CompanyTeleFaxFax number of the company. | String (20)TeleFax | No | None | |
CompanyVATNumTax exempt number of the company. | String (20)VATNum | No | None | |
ConfirmingPOMessageMessage text for confirming the purchase order. | String (-1)ConfirmingPOMessage | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | 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 | |
CurrencyCodeCurrency of the purchase order. | String (3)VendCurrencyCode | No | Currency.CurrencyCode | None |
CurrencyCodeCompanyCurrency of the company. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
CurrencyCodeEuroCurrency code used for the Euro-suffixed amounts. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryAddressDelivery address. | String (250)Addressing | No | None | |
DeliveryNameName of the delivery recipient. | String (160)VendName | No | None | |
DlvTermDelivery terms code. | StringVendDlvTermId | No | None | |
EnableAmountControlsYes/No flag for amount controls. No label is given.low confidence | EnumNoYes (enum) | No | None | |
EndDiscTotal discount at order header level. | RealPurchEndDiscAmount | No | None | |
EndDiscEuroTotal discount in the euro copy of the totals. | RealPurchEndDiscAmount | No | None | |
FormLetterRemarksTxtForm note text for the document. | String (-1)FormLetterTxt | No | None | |
IsPrepayYes/No flag for a prepayment. No label is given. | EnumNoYes (enum) | No | None | |
IsProFormaYes/No flag for a pro forma document. No label is given. | EnumNoYes (enum) | No | None | |
JournalRecIdPoints to the purchase order confirmation record. | Int64RefRecId | No | VendPurchOrderJour.RecId | None |
NetAmountNet amount of the order. | RealAmountCurNet | No | None | |
NetAmountEuroNet amount in the euro copy of the totals. | RealAmountCurNet | No | None | |
NotesFree-text note. | String (-1)Notes | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentPayment terms code. | String (100)VendPaymTermId | No | PaymTerm.PaymTermId | None |
PrePrintLevelLevel of pre-printed paper: blank, partly preprinted or preprinted. | EnumPrePrintLevel (enum) | No | None | |
PrintLogoYes/No flag to print the logo. | EnumNoYes (enum) | No | None | |
PrintTaxAmountSalesExchangeRateYes/No flag to print the tax amount at the sales exchange rate. | EnumNoYes (enum) | No | None | |
PrintTaxFreeBalanceYes/No flag to print the tax-free balance. | EnumNoYes (enum) | No | None | |
PurchaseOrderIdPurchase order number. | String (20)PurchaseOrderId | No | None | |
PurchIdPurchase order the record points to. | String (20)PurchIdBase | Yes | PurchTable.PurchId | None |
PurchOrderDateDate of the purchase order. | DateTransDate | No | None | |
PurchOrderDocNumPurchase order number shown on the document. | String (20)PurchaseOrderId | 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 | |
ReqAttentionAttention information for the order. | String (255)PurchReqAttention | No | None | |
RoundOffRound-off amount. | RealRoundOff | No | None | |
RoundOffEuroRound-off amount in the euro copy of the totals. | RealRoundOff | No | None | |
SalesOrderBalanceBalance in the transaction currency. | RealAmountCur | No | None | |
SalesOrderBalanceEuroBalance in the euro copy of the totals. | RealAmountCur | No | None | |
SalesTaxExchangeRateExchange rate used for sales tax. | RealCurrencyExchangeRateReport | No | None | |
ShowCompanyVATNumYes/No flag to show the company tax number. | EnumNoYesIdNoYes (enum) | No | None | |
SumMarkupTotal charges on the order. | RealMarkupSumPurch | No | None | |
SumMarkupEuroTotal charges in the euro copy of the totals. | RealMarkupSumPurch | No | None | |
SumTaxSales tax amount in the transaction currency. | RealTaxAmountCur | No | None | |
SumTaxEuroSales tax amount in the euro copy of the totals. | RealTaxAmountCur | No | None | |
SumTaxMSTSales tax amount in the accounting currency. | RealTaxAmount | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxableBalanceTaxable part of the balance. | RealTaxTaxableAmountCur | No | None | |
TaxableBalanceEuroTaxable part of the balance in the euro copy of the totals. | RealTaxTaxableAmountCur | No | None | |
TaxFreeBalanceNontaxable part of the balance. | RealTaxTaxFreeAmountCur | No | None | |
TaxFreeBalanceEuroNontaxable part of the balance in the euro copy of the totals. | RealTaxTaxFreeAmountCur | No | None | |
TaxSpecPrintLevelHow the sales tax specification is printed: none, registration currency, or registration and company currency. | EnumTaxSpecPrintLevel (enum) | No | None | |
VendAddressAddress of the vendor. | String (250)Addressing | No | None | |
VendCoRegNumTax registration number of the vendor. | String (25)CompanyCoRegNum | No | None | |
VendNameName of the vendor. | String (160)VendName | No | None | |
VendRegNumRegistration (routing) number of the vendor. | String (25)CompanyRegNum | No | None |
Indexes (2)
JournalRecIdNot unique.
CreatedTransactionIdUnique.
Relations (6)
Each relation joins PurchPurchaseOrderHeader to another table on the fields shown.
CompanyCurrency→CurrencyJoin on
CurrencyCodeCompany = Currency.CurrencyCodeMany PurchPurchaseOrderHeader records → zero or one Currency record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany PurchPurchaseOrderHeader records → zero or one Currency record
EuroCurrency→CurrencyJoin on
CurrencyCodeEuro = Currency.CurrencyCodeMany PurchPurchaseOrderHeader records → zero or one Currency record
PurchTable→PurchTableJoin on
PurchId = PurchTable.PurchIdMany PurchPurchaseOrderHeader records → exactly one PurchTable record
VendPurchOrderJour→VendPurchOrderJourJoin on
JournalRecId = VendPurchOrderJour.RecIdMany PurchPurchaseOrderHeader records → zero or one VendPurchOrderJour record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany 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.