Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DATEDUE datetime   Date the Invoice is Due
 PURCHASEORDERID nvarchar(20)   Default = '' User Defined Purchase Order Number
 DISCOUNTPERCENT decimal(20, 4)   Default = 0 Discount percent
 DISCOUNTAMOUNT money   Default = 0 Discounted Amount
 DISCOUNTEXPIRATIONDATE datetime The date the Discount Expires.
 SEPARATEPAYMENT bit   Default = 0 Marks if a separate payment should be created for this invoice.
 HOLDPAYMENT bit   Default = 0 Marks if this payment should held.
 PAYMENTMETHODCODE tinyint   Default = 0 Payment Method
 PAYMENTMETHOD nvarchar(5) (Computed) CASE [PAYMENTMETHODCODE] WHEN 0 THEN N'Check' END Provides a translation for the 'PAYMENTMETHODCODE' field.
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.
 ZEROBALANCE bit   Default = 0 True when the invoice is paid
 TYPE int (Computed)   101 The Financial Transaction Type
 BALANCE money (Computed) dbo.UFN_INVOICE_GETBALANCE(ID)
 DISCOUNTEDTOTAL money (Computed) dbo.UFN_FINANCIALTRANSACTION_GETAMOUNT(ID) - DISCOUNTAMOUNT

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   FINANCIALTRANSACTION.ID Primary Key.
 REMITADDRESSID uniqueidentifier ADDRESS.LOCALID Foreign Key to the Address Table
 BANKACCOUNTID uniqueidentifier BANKACCOUNT.ID Foreign Key to the BankAccount table
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 DISBURSEMENTPROCESSID uniqueidentifier DISBURSEMENTPROCESS.ID Link to the current disbursement process selecting this credit memo

Index Name Field(s) Unique Primary Clustered
 IX_INVOICE_DATEADDED DATEADDED    
 IX_INVOICE_DATECHANGED DATECHANGED      
 IX_INVOICE_DATEDUE DATEDUE      
 IX_INVOICE_DISBURSEMENTPROCESSID DISBURSEMENTPROCESSID      
 IX_INVOICE_REMITADDRESSID REMITADDRESSID      
 PK_INVOICE ID  

Trigger Name Description
 TR_INVOICE_INSERT_UPDATE
 TR_INVOICE_INSERTONLY
 TR_INVOICE_DELETE
 TR_INVOICE_AUDIT_UPDATE
 TR_INVOICE_AUDIT_DELETE

Referenced by Field
 INVOICESCHEDULEINFORMATION ID

Entity-Relationship diagram of this table