Author: apatel
Date: Sat Sep 20 08:54:08 2014
New Revision: 1626403
URL:
http://svn.apache.org/r1626403Log:
Applied bug fix from trunk r1626399.
[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/branches/release13.07/applications/accounting/widget/InvoiceScreens.xml
Modified: ofbiz/branches/release13.07/applications/accounting/widget/InvoiceScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/accounting/widget/InvoiceScreens.xml?rev=1626403&r1=1626402&r2=1626403&view=diff==============================================================================
--- ofbiz/branches/release13.07/applications/accounting/widget/InvoiceScreens.xml (original)
+++ ofbiz/branches/release13.07/applications/accounting/widget/InvoiceScreens.xml Sat Sep 20 08:54:08 2014
@@ -203,6 +203,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>
@@ -302,6 +307,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>