Include the view when building share_users.
authorBen Thompson <ben@xtuple.com>
Thu, 18 Sep 2014 18:17:20 +0000 (14:17 -0400)
committerBen Thompson <ben@xtuple.com>
Thu, 18 Sep 2014 18:17:20 +0000 (14:17 -0400)
enyo-client/extensions/source/sales/database/source/xt/tables/sharetype.sql
enyo-client/extensions/source/sales/database/source/xt/views/share_users_shipto_cust.sql

index 69301f3..3e343bf 100644 (file)
@@ -54,6 +54,20 @@ insert into xt.sharetype (
   'username'
 );
 
+-- Customer that a Ship To is on CRM Account's users.
+delete from xt.sharetype where sharetype_tblname = 'share_users_shipto_cust';
+insert into xt.sharetype (
+  sharetype_nsname,
+  sharetype_tblname,
+  sharetype_col_obj_uuid,
+  sharetype_col_username
+) values (
+  'xt',
+  'share_users_shipto_cust',
+  'obj_uuid',
+  'username'
+);
+
 -- Sales Order CRM Account's users.
 delete from xt.sharetype where sharetype_tblname = 'share_users_cohead';
 insert into xt.sharetype (
index 676a5ae..d852f1f 100644 (file)
@@ -5,7 +5,7 @@
  * a shared access that has been specifically granted.
  *
  * This view can be used to determine which users have personal privilege
- * access to a Contact that is on a Ship To based on what CRM Account the
+ * access to a Customer that a Ship To is on based on what CRM Account the
  * Ship To belongs to.
  */