Incident #22518: Post Production and Issue Materials should update WO Workflow
authorjulesstp <julianmcarlin@gmail.com>
Tue, 18 Feb 2014 20:10:42 +0000 (14:10 -0600)
committerjulesstp <julianmcarlin@gmail.com>
Tue, 18 Feb 2014 20:10:42 +0000 (14:10 -0600)
enyo-client/database/source/xt/trigger_functions/acttype_did_change.sql
enyo-client/extensions/source/crm/database/source/xt/tables/acttype.sql
enyo-client/extensions/source/project/database/source/xt/tables/acttype.sql
enyo-client/extensions/source/purchasing/database/source/xt/tables/acttype.sql
enyo-client/extensions/source/sales/database/source/xt/tables/acttype.sql

index 90e9fbf..5a0c378 100644 (file)
@@ -6,8 +6,7 @@ return (function () {
 
  var sql,
    rows,
-   ary = [],
-   view;
+   ary = [];
 
  rows = plv8.execute("select * from xt.acttype");
 
index b1f62ef..32e3c27 100644 (file)
@@ -1,3 +1,4 @@
+delete from xt.acttype where acttype_code = 'ToDo';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
@@ -78,6 +79,7 @@ insert into xt.acttype (
   'null::uuid'
 );
 
+delete from xt.acttype where acttype_code = 'Opportunity';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
index 339a78b..2a7ea22 100644 (file)
@@ -1,3 +1,4 @@
+delete from xt.acttype where acttype_code = 'Project';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
@@ -40,6 +41,7 @@ insert into xt.acttype (
   'join xt.prjext on prj_id=prjext_id'
 );
 
+delete from xt.acttype where acttype_code = 'ProjectTask';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
@@ -82,6 +84,7 @@ insert into xt.acttype (
   'join xt.prjtaskext on prjtaskext_id=prjtask_id join prj on prj_id=prjtask_prj_id'
 );
 
+delete from xt.acttype where acttype_code = 'ProjectWorkflow';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
index 496502f..b84efc4 100644 (file)
@@ -1,3 +1,4 @@
+delete from xt.acttype where acttype_code = 'PurchaseOrder';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
@@ -40,6 +41,7 @@ insert into xt.acttype (
   'join vendinfo on pohead_vend_id=vend_id'
 );
 
+delete from xt.acttype where acttype_code = 'PurchaseOrderWorkflow';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
index 503ff23..1800180 100644 (file)
@@ -1,3 +1,4 @@
+delete from xt.acttype where acttype_code = 'SalesOrder';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,
@@ -40,6 +41,7 @@ insert into xt.acttype (
   'join custinfo on cohead_cust_id=cust_id join salesrep on cohead_salesrep_id=salesrep_id'
 );
 
+delete from xt.acttype where acttype_code = 'SalesOrderWorkflow';
 insert into xt.acttype (
   acttype_nsname,
   acttype_tblname,