ORDERS

Each row in this table represents an order in a store.

Column Descriptions:

NameTypeDescription
ORDERS_IDBIGINT NOT NULLGenerated unique key.
ORMORDERCHAR (30)A merchant-assigned order reference number, if any.
ORGENTITY_IDBIGINTThe immediate parent organization ID of the creator.
TOTALPRODUCTDECIMAL (20,5) DEFAULT 0The sum of ORDERITEMS.TOTALPRODUCT for the OrderItems in the Order.
TOTALTAXDECIMAL (20,5) DEFAULT 0The sum of ORDERITEMS.TAXAMOUNT for the OrderItems in the Order.
TOTALSHIPPINGDECIMAL (20,5) DEFAULT 0The sum of ORDERITEMS.SHIPCHARGE for the OrderItems in the Order.
TOTALTAXSHIPPINGDECIMAL (20,5) DEFAULT 0The sum of ORDERITEMS.SHIPTAXAMOUNT for the OrderItems in the Order.
DESCRIPTIONVARCHAR (254)A mnemonic description of the order, entered by the customer, suitable for display to the customer.
STOREENT_IDINTEGER NOT NULLThe store entity the order is part of. This is normally a store unless STATUS is Q, in which case it is normally a store group.
CURRENCYCHAR (10)The currency for monetary amounts associated with this order. This is the currency code according to ISO 4217 standards.
LOCKEDCHAR (1)Reserved for IBM internal use.
TIMEPLACEDTIMESTAMPThe time this order was processed by the OrderProcess command.
LASTUPDATETIMESTAMPThe time this order was most recently updated.
SEQUENCEDOUBLE NOT NULL DEFAULT 0Can be used by a user interface to control the sequence of orders in a list.
STATUSVARCHAR (3)The status of the order. This is similar to order states. For specific values of status and their descriptions, refer to the order states page, but omit states 'Y' and 'Z'.
MEMBER_IDBIGINT NOT NULLThe customer that placed the order.
FIELD1INTEGERCustomizable.
ADDRESS_IDBIGINTThis column is deprecated. In versions WC 5.6.1 and earlier, this column contained the billing address. In version WC 6.0 and later, the billing address is part of payment data and is stored in PPCEXTDATA table as encrypted data.
FIELD2DECIMAL (20,5)Customizable.
PROVIDERORDERNUMINTEGERReserved for IBM internal use.
SHIPASCOMPLETECHAR (1) NOT NULL DEFAULT 'Y'Reserved for IBM internal use.
FIELD3VARCHAR (254)Customizable.
TOTALADJUSTMENTDECIMAL (20,5) DEFAULT 0The sum of ORDERITEMS.TOTALADJUSTMENT for the order items in the order. This column also includes all kinds of shipping charge adjustments like discount, coupon, shipping adjustment and surcharge.
ORDCHNLTYP_IDBIGINTReserved for IBM internal use.
COMMENTSVARCHAR (254)Comments from the customer.
NOTIFICATIONIDBIGINTNotification identifier referring to the rows in the NOTIFY table that store notification attributes. These attributes override the defaults for notifications related to this order.
TYPECHAR (3)For an order, TYPE indicates whether it is a regular order (ORD), private requisition list order (PRL), shareable requisition list order (SRL), standing order (STD), quotation order (QUT), quote (QOT), profile order (QUK), recurring order (REC), or subscription (SUB).
OPTCOUNTERSMALLINTThe optimistic concurrency control counter for the table. Every time there is an update to the table, the counter is incremented.
EDITOR_IDBIGINTStores the ID of the person editing the order.
BUSCHN_IDINTEGERThe Business Channel ID of the order.
SOURCEIDBIGINTThis field indicates the sources from which this order came, if any. This field is relevant for orders that were generated from a previously saved quote, for example. In that situation, the QuoteId would be saved here.
EXPIREDATETIMESTAMPThis entry is only relevant when the row refers to a quote, type "QOT". This field then indicates the expiration date for that quote.
BLOCKEDSMALLINT DEFAULT 0Indicates if this order has a block placed against it or not.
OPSYSTEM_IDINTEGERThis field indicates the Order Processing system for the order.
TRANSFERSTATUSSMALLINTOrder transferring status: 0, it is in the initial status. 1, it is in the transferring status. 2, it is in the transferred status. null, the same as 0.
BUYERPO_IDBIGINTThe Buyer PO Number Id related to an order

Indexes:

NameColumn NamesType
<SYSTEM-GENERATED>ORDERS_IDPrimary Key
I0000176MEMBER_ID+STATUS+STOREENT_IDNon-Unique Index
I0000652ADDRESS_IDNon-Unique Index
I0000653ORGENTITY_IDNon-Unique Index
I0000654STOREENT_IDNon-Unique Index
I0000892EDITOR_IDNon-Unique Index
I0000933SOURCEIDNon-Unique Index
I0001267BUYERPO_IDNon-Unique Index
I0001508STATUS+LASTUPDATENon-Unique Index
I173124TIMEPLACEDNon-Unique Index

Constrained By Parent Tables:

ConstraintColumnsParent TableParent ColumnsType
F_1138EDITOR_IDMEMBERMEMBER_IDCascade
F_1176BUSCHN_IDBUSCHNBUSCHN_IDCascade
F_513ORGENTITY_IDORGENTITYORGENTITY_IDCascade
F_514ORDCHNLTYP_IDORDCHNLTYPORDCHNLTYP_IDCascade
F_515ADDRESS_IDADDRESSADDRESS_IDCascade
F_516MEMBER_IDMEMBERMEMBER_IDCascade
F_517STOREENT_IDSTOREENTSTOREENT_IDCascade
F_9004BUYERPO_IDBUYERPOBUYERPO_IDCascade
R_3455OPSYSTEM_IDOPSYSTEMOPSYSTEM_IDCascade

Referenced By Child Tables:

ConstraintColumnsChild TableChild ColumnsType
F_1051ORDERS_IDPX_PROMOARGORDERS_IDCascade
F_1054ORDERS_IDPX_COUPONORDERS_IDCascade
F_1057ORDERS_IDPX_USAGEORDERS_IDCascade
F_1076ORDERS_IDORDPROMOCDORDERS_IDCascade
F_1118ORDERS_IDEXCHORDERSEX_ORD_IDCascade
F_1145ORDERS_IDSHIPINFOORDERS_IDCascade
F_120ORDERS_IDBIDORDRRELORDERS_IDCascade
F_1219ORDERS_IDORDERBLKORDERS_IDCascade
F_1224ORDERS_IDCALADJUSTORDERS_IDCascade
F_129ORDERS_IDBUACCTDETORDERS_IDCascade
F_260ORDERS_IDCPENDORDERORDERS_IDCascade
F_3594ORDERS_IDPX_RWDOPTIONORDERS_IDCascade
F_3610ORDERS_IDPX_CDUSAGEORDERS_IDCascade
F_3639ORDERS_IDORDERRELPARENTORDER_IDCascade
F_3640ORDERS_IDORDERRELCHILDORDER_IDCascade
F_3649ORDERS_IDSUBSCRIPTIONORDERS_IDCascade
F_3777ORDERS_IDORDEXTATTRORDERS_IDCascade
F_397ORDERS_IDINVOICEORDERS_IDCascade
F_423ORDERS_IDLPOPURAMTORDERS_IDCascade
F_477ORDERS_IDONLOGORRFNBRCascade
F_479ORDERS_IDONQUEUEORRFNBRCascade
F_483ORDERS_IDORCOMMENTORDERS_IDCascade
F_485ORDERS_IDORCPMAPORDERS_IDCascade
F_490ORDERS_IDORDADJUSTORDERS_IDCascade
F_493ORDERS_IDORDBTBORDERS_IDCascade
F_494ORDERS_IDORDCALCDORDERS_IDCascade
F_496ORDERS_IDORDERITEMSORDERS_IDCascade
F_511ORDERS_IDORDERMGPORDERS_IDCascade
F_512ORDERS_IDORDERMSGOMORNBRCascade
F_519ORDERS_IDORDERTMPLORDERS_IDCascade
F_532ORDERS_IDORDMEEXTNORDERS_IDCascade
F_533ORDERS_IDORDOPTIONSORDERS_IDCascade
F_534ORDERS_IDORDPAYINFOORDERS_IDCascade
F_542ORDERS_IDORDPAYMTHDORDERS_IDCascade
F_547ORDERS_IDORDRELEASEORDERS_IDCascade
F_551ORDERS_IDORDTAXORDERS_IDCascade
F_579ORDERS_IDPAYSTATUSSETSORNBRCascade
F_60ORDERS_IDALCHARGEORDERS_IDCascade
F_672ORDERS_IDREFUNDMTHDORDERS_IDCascade
F_740ORDERS_IDSCHORDERSORDERS_IDCascade
F_813ORDERS_IDSUBORDERSORDERS_IDCascade
F_863ORDERS_IDTORCPMAPORDERS_IDCascade
F_871ORDERS_IDTRDDEPAMTORDERS_IDCascade
F_877ORDERS_IDTRDPURAMTORDERS_IDCascade
F_880ORDERS_IDTRDREFAMTORDERS_IDCascade
F_932ORDERS_IDORDQUOTRELCHILD_IDCascade
F_933ORDERS_IDORDQUOTRELPARENT_IDCascade
F_939ORDERS_IDORDSTATORDERS_IDCascade
F_940ORDERS_IDORDISTATORDERS_IDCascade
R_3458ORDERS_IDORDERHISTORDERS_IDCascade