Author: apatel
Date: Thu Dec 20 23:46:49 2007
New Revision: 606126

URL: http://svn.apache.org/viewvc?rev=606126&view=rev
Log:
Conditionally include read only or editable screen for Invoice header based on 
statusId field value.

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=606126&r1=606125&r2=606126&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/InvoiceScreens.xml Thu Dec 20 
23:46:49 2007
@@ -119,9 +119,15 @@
                 <decorator-screen name="CommonInvoiceDecorator" 
location="${parameters.invoiceDecoratorLocation}">
                     <decorator-section name="body">
                         <section>
+                            <condition>
+                                <if-compare field-name="invoice.statusId" 
operator="equals" value="INVOICE_IN_PROCESS"/>
+                            </condition>
                             <widgets>
                                 <include-form name="EditInvoice" 
location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
                             </widgets>
+                            <fail-widgets>
+                                <include-form name="invoiceHeader" 
location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
+                            </fail-widgets>
                         </section>
                     </decorator-section>
                 </decorator-screen>


Reply via email to