PurchaseInvoice


Description

A purchase invoice document in Microsoft Dynamics GP.

Properties

Property

Type

Length

Default

Description

Key

PurchaseTransactionKey

N/A

N/A

The purchase transaction key object that uniquely identifies the purchase invoice.

VendorDocument
Number

string

20

N/A

The transaction number assigned by the vendor to this document.

Date

dateTime

N/A

If blank, set to the system date.

The date of the purchase invoice.

BatchKey

BatchKey

N/A

N/A

The batch key object that specifies the batch the purchase invoice is part of.

VendorKey

VendorKey

N/A

N/A

The vendor key object that specified the vendor for the transaction.

VendorName

string

64

If not provided, set based on the vendor key.

The name of the vendor.

Reference

string

17

N/A

The reference number for the purchase invoice.

Subtotal

MoneyAmount

N/A

N/A

The subtotal for the purchase invoice. This property is read-only.

TradeDiscountAmount

MoneyAmount

N/A

0

The amount of the trade discount for the purchase invoice.

FreightAmount

MoneyAmount

N/A

0

The freight amount for the purchase invoice.

MiscellaneousAmount

MoneyAmount

N/A

0

The amount of miscellaneous charges for the purchase invoice.

TaxAmount

MoneyAmount

N/A

0

The total tax amount for the purchase invoice. If a value is not provided it is calculated.

Amount1099

MoneyAmount

N/A

0

The amount to include on the vendor's 1099 statement.

PaymentTermsKey

PaymentTermsKey

N/A

Empty

The payment terms key object that specifies the payment terms for the purchase.

Terms

Terms

N/A

N/A

Specifies the payment terms (such as the discount) for the purchase.

CreatedBy

string

N/A

N/A

The user who created the purchase invoice. This property is read-only.

TaxScheduleKey

TaxScheduleKey

N/A

N/A

The tax schedule key object that identifies the tax schedule for the purchasing company specific to the items being purchased.

FreightTaxBasis

PurchasingTaxBasis

N/A

Nontaxable

Specifies how taxes are calculated on freight for the purchase.

MiscellaneousTaxBasis

PurchasingTaxBasis

N/A

Nontaxable

Specifies how taxes are calculated on miscellaneous costs for the purchase.

FreightTaxScheduleKey

TaxScheduleKey

N/A

Empty

The tax schedule key object that identifies the tax schedule to use when calculating tax for the freight amount.

MiscellaneousTax
ScheduleKey

TaxScheduleKey

N/A

Empty

The tax schedule key object that identifies the tax schedule to use when calculating tax for the miscellaneous amount.

FreightTaxAmount

MoneyAmount

N/A

0

The freight tax amount.

MiscellaneousTaxAmount

MoneyAmount

N/A

0

The miscellaneous tax amount.

CurrencyKey

CurrencyKey

N/A

Empty

The currency key object that specifies the currency the purchase was transacted in.

ExchangeRate

decimal

N/A

N/A

The exchange rate of the purchase invoice. Set this value only for multi-currency transactions. If there is triangulation and both rates are fixed, this is the originating to Euro fixed rate. Otherwise this is the variable rate.

ExchangeDate

dateTime

N/A

N/A

The exchange date associated with the exchange rate provided.

VoucherNumber

string

20

Empty

The voucher number for the vendor.

RemitToAddressKey

AddressKey

N/A

Defaulted from the vendor

The address key object that specifies where to remit payment for the purchase.

GeneralLedgerPosting
Date

dateTime

N/A

Empty

The date that will be used as the posting date in General Ledger.

PostedDate

dateTime

N/A

N/A

The date the transaction was posted.

PostedBy

string

N/A

Set to the user ID who posted the purchase invoice.

The user who posted the purchase invoice. This property is read-only.

CreatedDate

dateTime

N/A

System date

The date the purchase invoice was created. This property is read-only.

ModifiedDate

dateTime

N/A

System date

The date the purchase invoice was last modified. This property is read-only.

TransactionState

PurchaseTransactionState

N/A

N/A

The state of the purchase invoice. This property is read-only.

AuditTrailCode

string

N/A

N/A

The internally assigned audit trail code that gets saved on the record at the time the transaction is posted. This property is read-only.

Distributions

ArrayOfPurchaseDistribution

N/A

N/A

The collection of distributions for the purchase invoice.

FreightTaxes

ArrayOfPurchaseInvoiceTax

N/A

N/A

The collection of freight taxes for the purchase invoice.

MiscellaneousTaxes

ArrayOfPurchaseInvoiceTax

N/A

N/A

The collection of miscellaneous taxes for the purchase invoice.

Taxes

ArrayOfPurchaseInvoiceTax

N/A

N/A

The collection of taxes for the purchase invoice.

Lines

ArrayOfPurchaseInvoiceLine

N/A

N/A

A collection of purchase invoice lines for the purchase invoice.


Inherits from

BusinessObject


Documentation Feedback