You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2016/07/30 06:03:02 UTC

svn commit: r1754591 - in /ofbiz/trunk/applications: accounting/minilang/tax/TaxAuthorityServices.xml party/config/PartyUiLabels.xml

Author: mridulpathak
Date: Sat Jul 30 06:03:02 2016
New Revision: 1754591

URL: http://svn.apache.org/viewvc?rev=1754591&view=rev
Log:
[OFBIZ-7442] Fixed error when creating PartyTaxAuthInfo by improving error handling. Applying patch with some corrections. Thanks Arvind Singh Tomar for providing the patch and Padmavati Ravat for reporting the issue.

Modified:
    ofbiz/trunk/applications/accounting/minilang/tax/TaxAuthorityServices.xml
    ofbiz/trunk/applications/party/config/PartyUiLabels.xml

Modified: ofbiz/trunk/applications/accounting/minilang/tax/TaxAuthorityServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/minilang/tax/TaxAuthorityServices.xml?rev=1754591&r1=1754590&r2=1754591&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/minilang/tax/TaxAuthorityServices.xml (original)
+++ ofbiz/trunk/applications/accounting/minilang/tax/TaxAuthorityServices.xml Sat Jul 30 06:03:02 2016
@@ -43,6 +43,13 @@ under the License.
     <simple-method method-name="createPartyTaxAuthInfo" short-description="create a PartyTaxAuthInfo">
         <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/trunk/applications/party/config/PartyUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/config/PartyUiLabels.xml?rev=1754591&r1=1754590&r2=1754591&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/trunk/applications/party/config/PartyUiLabels.xml Sat Jul 30 06:03:02 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>