remove illegal xml chars
authorGreg Pazo <gpazo@xtuple.com>
Fri, 27 Jun 2014 16:59:20 +0000 (12:59 -0400)
committerGreg Pazo <gpazo@xtuple.com>
Fri, 27 Jun 2014 16:59:20 +0000 (12:59 -0400)
scripts/xml/postbooks_package.xml

index bca5d79..b459789 100644 (file)
     </message>
   </prerequisite>
 
 <prerequisite type = "query"
+ <prerequisite type = "query"
                name = "Checking for duplicate Credit Card payments on Sales Orders" >
     <query>
       WITH counter AS (SELECT COUNT(*) AS freq
                         FROM payco
                         GROUP BY payco_ccpay_id, payco_cohead_id
                         ORDER BY 1)
-      SELECT COALESCE(MAX(freq), 1) <= 1
+      SELECT (COALESCE(MAX(freq), 1) = 0 OR COALESCE(MAX(freq), 1) = 1)
       FROM counter;
     </query>
     <message>There are duplicate payco_ccpay_id and payco_cohead_id on the payco table. Please see your system administrator or contact xTuple.