invalid xml
[xtuple] / scripts / xml / xtmfg_install.xml
1 <package id        = "manufacturing-install-470beta2"
2          version   = "4.7.0Beta2"
3          developer = "xTuple"
4          descrip   = "load PostBooks resources"
5          updater   = "2.2.4" >
6
7   <prerequisite type = "query"
8                 name = "Checking xTuple Edition" >
9     <query>SELECT fetchMetricText('Application') = 'PostBooks';</query>
10     <message>This package must be applied to a PostBooks Edition database.</message>
11   </prerequisite>
12
13   <prerequisite type = "query"
14                 name = "Checking for too-old xTuple ERP database version" >
15     <query>SELECT fetchMetricText('ServerVersion') > '4.4.';</query>
16     <message>This package must be applied to a 4.4+ database.
17     </message>
18   </prerequisite>
19
20   <prerequisite type = "query"
21                 name = "Checking for too-new xTuple ERP database version" >
22     <query>SELECT NOT fetchMetricText('ServerVersion') >= '4.7.0Beta2' AND fetchMetricText('ServerVersion') != '4.7.0';</query>
23     <message>This package may not be applied to a database newer than 4.7.0Beta.
24     </message>
25   </prerequisite>
26
27   <prerequisite type = "query"
28                name = "Checking for mobile-enabled schemas" >
29     <query>SELECT NOT EXISTS(SELECT 1 FROM pg_namespace WHERE nspname = 'xm');</query>
30     <message>This package may not be applied to a mobile-enabled database. Please see your system administrator or contact xTuple.
31     </message>
32   </prerequisite>
33
34   <prerequisite type = "query"
35                name = "Checking for duplicate Credit Card payments on Sales Orders" >
36     <query>
37       WITH counter AS (SELECT COUNT(*) AS freq
38                         FROM payco
39                         GROUP BY payco_ccpay_id, payco_cohead_id
40                         ORDER BY 1)
41       SELECT (COALESCE(MAX(freq), 1) = 0 OR COALESCE(MAX(freq), 1) = 1)
42       FROM counter;
43     </query>
44     <message>There are duplicate payco_ccpay_id and payco_cohead_id on the payco table. Please see your system administrator or contact xTuple.
45     </message>
46   </prerequisite>
47
48   <script file="postbooks_upgrade.sql" />
49   <script file="inventory_basic_install.sql" />
50   <script file="inventory_upgrade.sql" />
51   <script file="manufacturing_basic_install.sql" />
52   <script file="manufacturing_upgrade.sql" />
53
54 </package>