svn commit: r1754594 - in /ofbiz/branches/release13.07/applications: accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml party/config/PartyUiLabels.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1754594 - in /ofbiz/branches/release13.07/applications: accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml party/config/PartyUiLabels.xml

Mridul Pathak-5
Author: mridulpathak
Date: Sat Jul 30 06:16:48 2016
New Revision: 1754594

URL: http://svn.apache.org/viewvc?rev=1754594&view=rev
Log:
[OFBIZ-7442] Fixed error when creating PartyTaxAuthInfo by improving error handling. Migrating fix from trunk r1754591.

Modified:
    ofbiz/branches/release13.07/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml
    ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml

Modified: ofbiz/branches/release13.07/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml?rev=1754594&r1=1754593&r2=1754594&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml (original)
+++ ofbiz/branches/release13.07/applications/accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml Sat Jul 30 06:16:48 2016
@@ -225,6 +225,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/release13.07/applications/party/config/PartyUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml?rev=1754594&r1=1754593&r2=1754594&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml (original)
+++ ofbiz/branches/release13.07/applications/party/config/PartyUiLabels.xml Sat Jul 30 06:16:48 2016
@@ -1912,6 +1912,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="PageTitleAddPartyTaxAuthInfos">
         <value xml:lang="de">Informationen zur Steuerbehörde Akteur hinzufügen</value>
         <value xml:lang="en">Add Party Tax Authority Info</value>