Author: mridulpathak
Date: Sat Jul 30 06:06:18 2016
New Revision: 1754592
URL:
http://svn.apache.org/viewvc?rev=1754592&view=revLog:
[OFBIZ-7442] Fixed error when creating PartyTaxAuthInfo by improving error handling. Migrating fix from trunk r1754591.
Modified:
ofbiz/branches/release15.12/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml
ofbiz/branches/release15.12/applications/party/config/PartyUiLabels.xml
Modified: ofbiz/branches/release15.12/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml?rev=1754592&r1=1754591&r2=1754592&view=diff==============================================================================
--- ofbiz/branches/release15.12/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml (original)
+++ ofbiz/branches/release15.12/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml Sat Jul 30 06:06:18 2016
@@ -224,6 +224,13 @@ under the License.
<call-simple-method method-name="validatePartyTaxIdInline"/>
+ <entity-one value-field="taxAuth" entity-name="TaxAuthority"/>
+ <if-empty field="taxAuth">
+ <add-error>
+ <fail-property resource="PartyUiLabels" property="PartyTaxAuthPartyAndGeoNotAvailable"/>
+ </add-error>
+ </if-empty>
+
<!-- done checking preliminary constraints, see if there are any errors -->
<check-errors/>
Modified: ofbiz/branches/release15.12/applications/party/config/PartyUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/party/config/PartyUiLabels.xml?rev=1754592&r1=1754591&r2=1754592&view=diff==============================================================================
--- ofbiz/branches/release15.12/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/branches/release15.12/applications/party/config/PartyUiLabels.xml Sat Jul 30 06:06:18 2016
@@ -12717,6 +12717,9 @@
<value xml:lang="zh">æ·»å ç¨å¡ä¿¡æ¯</value>
<value xml:lang="zh-TW">å¢å ç¨
åè³è¨</value>
</property>
+ <property key="PartyTaxAuthPartyAndGeoNotAvailable">
+ <value xml:lang="en">Tax authority is not availble for provided Tax Authority Party and Tax Authority Geo.</value>
+ </property>
<property key="PartyTaxAuthInfos">
<value xml:lang="ar">Ù
عÙÙÙ
ات اÙضرÙبة</value>
<value xml:lang="de">Steuerangaben</value>