CMS Version 9.0 Database Changes

From NewHaven Software Wiki

(Difference between revisions)
Jump to: navigation, search
(RECIPIENT)
 
(2 intermediate revisions not shown)
Line 18: Line 18:
&nbsp; Catalogs, Ad, Ads, Todo, Ordersrc have undergone changes to reorganize their links<br>&nbsp; CATALOG_ID int new field replaces CATALOG_NUMBER as new primary key<br>&nbsp; {DROP &gt;&gt; CATALOG_NUMBER}<br>&nbsp; DIVISION_ID int new field<br>&nbsp; DIV_PRIMARY_CAT int new field - primary catalog for a Division<br>&nbsp; ACTIVE bit new field<br>  
&nbsp; Catalogs, Ad, Ads, Todo, Ordersrc have undergone changes to reorganize their links<br>&nbsp; CATALOG_ID int new field replaces CATALOG_NUMBER as new primary key<br>&nbsp; {DROP &gt;&gt; CATALOG_NUMBER}<br>&nbsp; DIVISION_ID int new field<br>&nbsp; DIV_PRIMARY_CAT int new field - primary catalog for a Division<br>&nbsp; ACTIVE bit new field<br>  
-
 
-
=== CHARGEINFO ===
 
-
 
-
&nbsp; PROCESSDATA varchar(50) (new field, required for MPS processing)<br>
 
-
 
-
&nbsp; ORIG_AUTH Money (new field, holds original auth amount)
 
-
 
-
&nbsp; PARTIAL_AUTH Bit (boolean, flag for when partial auth has taken place)
 
=== CUSTHIST<br>  ===
=== CUSTHIST<br>  ===
Line 51: Line 43:
=== ORDERHDR<br>  ===
=== ORDERHDR<br>  ===
-
&nbsp; DIVISION_ID int new field see DIVISIONS<br>
+
&nbsp; DIVISION_ID int new field see DIVISIONS
 +
 
 +
ARRIVAL_DT_DFLT DateTime
=== ORDERSRC Order Sources  ===
=== ORDERSRC Order Sources  ===
Line 81: Line 75:
&nbsp; ECMS {DROP}<br>  
&nbsp; ECMS {DROP}<br>  
-
=== RECIPIENT  ===
+
=== [[RECIPIENT]] <br> ===
-
&nbsp; New table&nbsp;:&nbsp;Allows permanent storage of Recipients independent of orders.<br>&nbsp; RECIPIENT_ID int<br>&nbsp; ADDRESS_ID&nbsp; int<br>&nbsp; CUST_ID&nbsp; char(10)<br>&nbsp; USER_LABEL varchar(50)<br>&nbsp; RECIP_NOTE long varchar<br>
+
&nbsp; New table&nbsp;:&nbsp;Allows permanent storage of Recipients independent of orders.<br>&nbsp; RECIPIENT_ID int<br>&nbsp; ADDRESS_ID&nbsp; int<br>&nbsp; CUST_ID&nbsp; char(10)<br>&nbsp; USER_LABEL varchar(50)<br>&nbsp; <br>
=== RECIPIENT_ORDER<br>  ===
=== RECIPIENT_ORDER<br>  ===
-
&nbsp; New table&nbsp;:&nbsp;Holds recipient detail for a specific order 'Correlation table linking Orders and Recipients'<br>&nbsp; RECIPIENT_ID int&nbsp;&nbsp;&nbsp;&nbsp; See ItemsOrd table<br>&nbsp; ORDER_ID char(9)<br>&nbsp; SEQUENCE smallint<br>&nbsp; FULFILL_DT_DFLT date<br>&nbsp; ARRIVAL_DT_DFLT date<br>&nbsp; SHIPMETHID int<br>  
+
&nbsp; New table&nbsp;:&nbsp;Holds recipient detail for a specific order 'Correlation table linking Orders and Recipients'<br>&nbsp; RECIPIENT_ID int&nbsp;&nbsp;&nbsp;&nbsp; See ItemsOrd table<br>&nbsp; ORDER_ID char(9)<br>&nbsp; SEQUENCE smallint<br>&nbsp; FULFILL_DT_DFLT date<br>&nbsp; ARRIVAL_DT_DFLT date<br>&nbsp; SHIPMETHID int<br>&nbsp; RECIP_NOTE long varchar<br>
 +
 
 +
SHIPPING_CHARGE money
-
<br>  
+
<br>
=== SHIPPERS  ===
=== SHIPPERS  ===

Current revision as of 18:29, 13 December 2012

 CMS Version 9.0 introduces internal changes to database structures that need to be considered when working on issues and reports.

Table Changes:

Contents

AD

  AD_ID int new field > converted over from deprecated AD_NUMBER
  {DROP} AD_NUMBER
  {DROP} AD_CATALOG

AD_PROD

AD_ID int new field > converted over from deprecated AD_NUMBER
  {DROP} AD_NUMBER

ADS

  CATALOG_ID int new field

CATALOGS

  Catalogs, Ad, Ads, Todo, Ordersrc have undergone changes to reorganize their links
  CATALOG_ID int new field replaces CATALOG_NUMBER as new primary key
  {DROP >> CATALOG_NUMBER}
  DIVISION_ID int new field
  DIV_PRIMARY_CAT int new field - primary catalog for a Division
  ACTIVE bit new field

CUSTHIST

  Add NOTES_UNFORMATTED long varchar
  DIVISION_ID new field int
  HISTTYPE modified to int

DIVISIONS

  New Table: Holds base company division information (see OrderHdr, Catalog) 
  DIVISION_ID int
  DIVISION_NAME varchar(50)
  DIVISION_SHORT_NAME varchar(4)
  DIVISION_DESC varchar(50)
  DIVISION_EMAILID int

ECMS_LOG

  ORDERSRC_ID int new field

ECMS_STORES - {DROP TABLE}

ITEMSORD

-LINE_ID converted to Integer
KITPARENT_ITEMID int
{DROP} KIT_PARENT
ONEITEM_ID modified to int
-The Kit Parent/Child relationship has changed. KITPARENT_ITEMID is a new integer field that holds the ItemID of the Parent item of the kit. This relationship was previously expressed using the KITPARENT string field, which held a concatenation of the Invoice_ID + Line_ID of the Kit Parent.

ORDER_XML

  BAD_DIVISION bit new field
  SKIPDISCOUNT bit new field
  SKIPNOTES bit new field

ORDERHDR

  DIVISION_ID int new field see DIVISIONS

ARRIVAL_DT_DFLT DateTime

ORDERSRC Order Sources

  Ordersrc table change:  ID field name changed to ORDERSRC_ID
  CATALOG_ID int new field
  DIVISION_ID int new field
  PLUGIN_NAME varchar(500) new field
  {DROP} WEBSERVICE_ID {DROP}
  AUTO_PRODUCT_EXPORT bit
  SKIPDISCOUNT bit new field
  SKIPNOTES bit new field

PACKAGE

  STATUS_UPDATE bit

PLUGIN_OPTIONS

new table
  PLUGIN_OPTIONS_ID int
  ORDERSRC_ID int
  NAME varchar(500)
  VALUE varchar(500)
  ENCRYPT bit
  PLUGIN_OPTIONS_TYPE_ID int

PFORMDET Print Forms 

  - TASK_TYPE changed to varchar(2)

PRODUCT_GROUPS

  PRODUCT_GROUP_ID renamed to GROUP_NAME
  PRODUCT_GROUP_ID int autoinc  new field

PRODUCT_GROUPS_DET

  PRODUCT_GROUP_ID renamed to GROUP_NAME
  PRODUCT_GROUP_ID int new field 

PRODUCTS

  ECMS {DROP}

RECIPIENT

  New table : Allows permanent storage of Recipients independent of orders.
  RECIPIENT_ID int
  ADDRESS_ID  int
  CUST_ID  char(10)
  USER_LABEL varchar(50)
 

RECIPIENT_ORDER

  New table : Holds recipient detail for a specific order 'Correlation table linking Orders and Recipients'
  RECIPIENT_ID int     See ItemsOrd table
  ORDER_ID char(9)
  SEQUENCE smallint
  FULFILL_DT_DFLT date
  ARRIVAL_DT_DFLT date
  SHIPMETHID int
  RECIP_NOTE long varchar

SHIPPING_CHARGE money


SHIPPERS

DAYS Integer

  • Used by CMS to determine transit times for shipments.
  • If greater than zero, represents transit days for delivery (all air/next day methods)
  • If equal to zero, represents a method that requires zone/transit days information from the ZONEDAYS table in order to determine transit time
  • If null, represents a method not considered by CMS in transit time calculations.


Shippers table deployment is now done via data table.  The table used is called shippers.dat.

SKU

  ECMS {DROP}

SKU_ORDERSRC

  new table  relates products and ecms order sources
  SKU_ORDERSRC_ID int
  ORDERSRC_ID int
  SKU_ID varchar(6)
 

SMALLSET

- SMALL_ID expanded to varchar(15)


TODO

  CATALOG_ID int new field see Catalog changes

Functions and procedures:

  new function: fGetCOGSForOrder
  new function: fGetPackageCostsForOrder

dropped:

ZONEDAYS

Contains user editable data relating SHIPPERS.SHIP_CODE to transit times per zone.  Used in conjunction with SHIPPERS.DAYS to determine transit times in CMS.

SHIP_CODE VARCHAR(3)

ZONEID VARCHAR(5)

DAYS INTEGER

PRIMARY KEY(SHIP_CODE,ZONEID,DAYS)


Alternate Search Terms: CMS 9.0 Database Changes, v9 changes, v9.0 table changes

Personal tools