svn commit: r1626399 - /ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml

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

svn commit: r1626399 - /ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml

apatel-2
Author: apatel
Date: Sat Sep 20 08:49:07 2014
New Revision: 1626399

URL: http://svn.apache.org/r1626399
Log:
[OFBIZ-3879] Patch from the jira issue resolves the problem. Now start rendering invoice only if valid data if found in the database.
Code needs reformatting.
Thanks Deepak Dixit for the contribution.

Modified:
    ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml

Modified: ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml?rev=1626399&r1=1626398&r2=1626399&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml Sat Sep 20 08:49:07 2014
@@ -206,6 +206,11 @@ under the License.
                     <decorator-section name="body">
                         <section>
                             <condition>
+                                <not><if-empty field="invoice"/></not>
+                            </condition>
+                            <widgets>
+                                <section>
+                            <condition>
                                 <if-compare field="invoice.statusId" operator="equals" value="INVOICE_IN_PROCESS"/>
                             </condition>
                             <widgets>
@@ -305,6 +310,11 @@ under the License.
                                     <include-form name="AcctgTransAndEntries" location="component://accounting/widget/InvoiceForms.xml"/>
                                 </screenlet>
                             </fail-widgets>
+                                </section>
+                            </widgets>
+                            <fail-widgets>
+                                <label text="${uiLabelMap.AccountingInvoiceDoesNotExists}"></label>
+                            </fail-widgets>
                         </section>
                     </decorator-section>
                 </decorator-screen>