Table Data dictionary report - sales_order_items

Generated: 9/23/2016 3:05:20 PM
Server: PostgreSQL 9.3 (localhost:5432)
Database: datadict
Schema: public

Columns

Name Data type Not Null? Primary key? Default Comment
id integer Yes Yes nextval('sales_order_items_id_seq'::regclass)
order_no character varying(10) No No The sales order number. Is usually the next sequence number but can be any alpha numeric. Linked to order_no in slaes_orders
sequence smallint No No the line number of the sales order. Starts with a 1
parent_item smallint No No The sequence number that this line is a child of. Used to group lines to a parent
record_type character varying(1) No No J = Job
whse character varying(6) No No Warehouse that this line is pulled from
part_no character varying(34) No No The part number of the item on this line
description character varying(80) No No The description of the item on this line
product_code character varying(10) No No The product code of the item on this line
uom_purchase character varying(10) No No The purchase unit of measure of the item on this line
uom_purchase_factor numeric(11,5) No No The unit of measure conversion factor used on this line
uom_inventory character varying(10) No No The inventory unit of measure of the item on this line
uom_sales character varying(10) No No The selling unit of measure of the item on this line
uom_sales_factor numeric(11,5) No No The factor used for this unit of measure
sell_direct_factor boolean No No Direct conversion factor flag
order_qty numeric(15,5) Yes No Ordered quantity of this unit of measure for this line item
committed_qty numeric(15,5) Yes No Committed quantity of this unit of measure for this line item
backorder_qty numeric(15,5) Yes No Back ordered quantity of this unit of measure for this line item
inventory_order_qty numeric(15,5) Yes No Ordered quantity using the unit of measure factor
inventory_committed_qty numeric(15,5) Yes No Committed quantity using the unit of measure factor
inventory_backorder_qty numeric(15,5) Yes No Back ordered quantity using the unit of measure factor
retail_price numeric(15,5) Yes No This customers regular price for this line. This is editable
status smallint No No Pricing Method Used
unit_price numeric(15,5) Yes No Price after discount - is editable
current_cost numeric(15,5) Yes No Current cost price
average_cost numeric(15,5) Yes No Average cost price
discountable boolean No No Is item discountable TRUE = Yes FALSE=No
line_disc numeric(5,2) Yes No Line discount percentage
line_disc_amt numeric(15,2) Yes No Line discount amount
serialized_qty numeric(11) Yes No Serialized quantity
customer_specific_price boolean No No Price Matrix Used? TRUE = Yes FALSE = No
employee character varying(6) No No The employee as selected from employees
user_cost boolean No No Flag that indicates if the user edited the cost. TRUE = Yes FALSE = No
price_matrix_promo_code character varying(25) No No Promo (reason) code from price matrix
price_matrix_score smallint No No The score from price_matrix
levy_code character varying(3) No No The levy code used on this line
levy_amount numeric(9,3) Yes No The levy amount for this line
price_matrix_id bigint No No The ID code the from price matrix record that determined the price for the order line
guid character varying(32) No No GUID for linking purposes
hasmemo boolean No No Memo flag FALSE = No Memo TRUE = Has Memo
item_type smallint No No 0 = Inventory Blank = Comment 3 = Non Inventory
required_date date No No Line required date
inventory_gl character varying(24) No No GL account for inventory asset Blank = default from sales dept
revenue_gl character varying(24) No No GL account for inventory sales Blank = default from sales dept
cost_gl character varying(24) No No GL account for inventory cost Blank = default from sales dept
vendor character varying(20) No No Vendor from inventory - preferred_vendor
ref_no character varying(20) No No Line reference
req_no character varying(10) No No requisition number from requisitions table
upc_code character varying(40) No No UPC code that was scanned or entered to this line
po_number character varying(10) No No
job_no character varying(10) No No Job number for this line of the order. Blank means it will use the job from sales_orders
job_acct_no character varying(10) No No Job account for this line of the order. Blank means it will use the job from sales_orders
backorder_todate_qty numeric(15,5) Yes No
weight numeric(15,5) No No Weight from inventory unit of measure unless overridden by user.
standard_cost numeric(15,5) Yes No Standard cost price
comment text No No The comment text
_dbversion integer No No Program version that created this line
_created timestamp without time zone No No Date/Time this line was added
_created_by character varying(3) No No Users initials that created this line
_modified timestamp without time zone No No Date/Time this line was last edited
_modified_by character varying(3) No No Users initials that last edited this line
tax_applicable boolean[] Yes No '{f,f,f,f}'::boolean[] Array field with the 4 taxes applicable t - Tes f = No
levy_tax_applicable boolean[] Yes No '{f,f,f,f}'::boolean[] Array field to indicate if levy applicable t - Tes f = No
udf_data hstore No No ''::hstore hstore containing the user defined data
partial_tax boolean No No false Partial tax charged for this line TRUE= Yes FALSE = No

Constraints

Name Type Definition Comment
bve_order_dtl_pkey Primary key (id)
sales_order_items_order_no_sequence_key Unique (order_no, sequence) DEFERRABLE INITIALLY IMMEDIATE

Report generated by pgAdmin III