The invoice table acts as an invoice header. It has links to the Customer table and lineitems.

Table Indexes

Table Fields

FieldDescription
ccCredit Card number
char(24)
ccexpExpiration date of the credit card as a string.
char(7)
ccresultThe result from the Credit Card Processor. This will be: APPROVED, DECLINED, FAILED, FRAUD
char(15)
ccresultxThe extended (raw) result from the CC Processor
text
cctypeType of credit card (AE, VI, MA, DI)
char(2)
completedDate that the invoice was completed. Used by offline application.
datetime
custpkCustomer Foreign Key
int
downloadedDetermines whether this invoice was downloaded from the Web Site.
bit
handlingShipping and handling charges for this invoice
numeric(8,2)
invcode
char(1)
invdateThe date of the invoice.
datetime
invnoInvoice Number as a string
char(15)
invtotalTotal of the invoice
numeric(13,2)
notesAny notes for this order in free form text.
text
ordercode
text
pkPrimary Key
int
ponumberOptional PO number
char(20)
shipbyShipping method for the order.
char(12)
shipdisksDetermines if disks are to be shipped (physical shipment)
bit
shippingOptional Shipping address if different from the billing address.
text
soldbySales Clerk ID
char(20)
storepk
int
taxThe actual tax amount for this invoice
numeric(9,2)
taxrateTaxrate as a decimal value (0.05 for 5%)
numeric(6,2)
timestamp_column
timestamp
weightThe total weight of all items on this invoice
numeric(9,2)
xmlXML Properties field. Used for Get and SetProperty
text


Last Updated: 6/13/2003