37297bfca6a01cb105a7c29d751ba9168c33b018
[xtuple] / enyo-client / database / source / xm / javascript / sales_rep.sql
1 select xt.install_js('XM','SalesRep','xtuple', $$
2 /* Copyright (c) 1999-2013 by OpenMFG LLC, d/b/a xTuple. 
3    See www.xtuple.com/CPAL for the full text of the software license. */
4
5 (function () {
6
7   if (!XM.SalesRep) { XM.SalesRep = {}; }
8
9   XM.SalesRep.isDispatchable = true;
10
11   /**
12     Return whether a sales rep is referenced by another table.
13     
14     @param {String} Sales Rep Number
15   */
16   XM.SalesRep.used = function(id) {
17     var exceptions = ["public.crmacct"];
18     return XM.PrivateModel.used("XM.SalesRep", id, exceptions);
19   };
20
21 }());
22   
23 $$ );
24