Related to issue 20394: code review
authorMikel Irurita <mikel.irurita@openbravo.com>
Wed, 09 May 2012 17:47:58 +0200
changeset 16467 1abd834b75af
parent 16466 3877d39c8130
child 16468 7e3737728bba
Related to issue 20394: code review
src-db/database/model/functions/M_RAPPEL_INVOICE_CREATE.xml
src-db/database/sourcedata/AD_MESSAGE.xml
--- a/src-db/database/model/functions/M_RAPPEL_INVOICE_CREATE.xml	Thu May 03 09:54:03 2012 +0200
+++ b/src-db/database/model/functions/M_RAPPEL_INVOICE_CREATE.xml	Wed May 09 17:47:58 2012 +0200
@@ -330,12 +330,12 @@
         FROM C_BPARTNER
         WHERE C_BPARTNER.C_BPARTNER_ID=CUR_INVOICE.C_BPARTNER_ID;
 
-	IF(v_paymenttermId is NULL) THEN
-	RAISE_APPLICATION_ERROR(-20000, '@notnullpayment@') ;
-	END IF;
-	IF(v_pricelistId is NULL) THEN
-	RAISE_APPLICATION_ERROR(-20000, '@notnullpricelist@') ;
-	END IF;
+        IF (v_paymenttermId is NULL) THEN
+          RAISE_APPLICATION_ERROR(-20000, '@notnullpaymentterm@') ;
+        END IF;
+        IF (v_pricelistId is NULL) THEN
+          RAISE_APPLICATION_ERROR(-20000, '@notnullpricelist@') ;
+        END IF;
 
         INSERT
         INTO C_INVOICE
--- a/src-db/database/sourcedata/AD_MESSAGE.xml	Thu May 03 09:54:03 2012 +0200
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml	Wed May 09 17:47:58 2012 +0200
@@ -17693,8 +17693,7 @@
 <!--867773EE801F4C2495FA16E0B6DC04E8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--867773EE801F4C2495FA16E0B6DC04E8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--867773EE801F4C2495FA16E0B6DC04E8-->  <VALUE><![CDATA[notnullpricelist]]></VALUE>
-<!--867773EE801F4C2495FA16E0B6DC04E8-->  <MSGTEXT><![CDATA[The field price list in business partner is mandatory and cannot be left empty.
-]]></MSGTEXT>
+<!--867773EE801F4C2495FA16E0B6DC04E8-->  <MSGTEXT><![CDATA[The field price list in business partner is mandatory and cannot be left empty.]]></MSGTEXT>
 <!--867773EE801F4C2495FA16E0B6DC04E8-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
 <!--867773EE801F4C2495FA16E0B6DC04E8-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--867773EE801F4C2495FA16E0B6DC04E8--></AD_MESSAGE>
@@ -18159,7 +18158,7 @@
 <!--97D69827C27242C584842C0306B92580-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
 <!--97D69827C27242C584842C0306B92580-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--97D69827C27242C584842C0306B92580-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--97D69827C27242C584842C0306B92580-->  <VALUE><![CDATA[notnullpayment]]></VALUE>
+<!--97D69827C27242C584842C0306B92580-->  <VALUE><![CDATA[notnullpaymentterm]]></VALUE>
 <!--97D69827C27242C584842C0306B92580-->  <MSGTEXT><![CDATA[The field payment term in business partner is mandatory and cannot be left empty.]]></MSGTEXT>
 <!--97D69827C27242C584842C0306B92580-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
 <!--97D69827C27242C584842C0306B92580-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>