[UOM Management] Added restriction ion C_CONVERSION_RATE table.
authorDavid Miguelez <david.miguelez@openbravo.com>
Fri, 02 Dec 2016 15:38:44 +0100
changeset 704 69c2424d28a1
parent 703 968b119cdc1d
child 705 f33ba63830fb
[UOM Management] Added restriction ion C_CONVERSION_RATE table.
model/src-db/database/model/tables/C_CONVERSION_RATE.xml
--- a/model/src-db/database/model/tables/C_CONVERSION_RATE.xml	Tue Nov 15 17:46:15 2016 +0100
+++ b/model/src-db/database/model/tables/C_CONVERSION_RATE.xml	Fri Dec 02 15:38:44 2016 +0100
@@ -82,5 +82,6 @@
         <unique-column name="VALIDFROM"/>
       </unique>
       <check name="C_CONVERSION_RA_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+      <check name="C_CONVERSION_RATE_RATE_CHECK"><![CDATA[MULTIPLYRATE > 0 AND DIVIDERATE > 0]]></check>
     </table>
   </database>