svn commit: r606120 - /ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml

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

svn commit: r606120 - /ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml

apatel-2
Author: apatel
Date: Thu Dec 20 23:17:16 2007
New Revision: 606120

URL: http://svn.apache.org/viewvc?rev=606120&view=rev
Log:
Do not let user submit request to update invoice if its NOT in INVOICE_IN_PROCESS status. Other possible solution can be to include edit form in screen only if invoice is in INVOICE_IN_PROCESS else include read only screen.

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml?rev=606120&r1=606119&r2=606120&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/invoice/InvoiceForms.xml Thu Dec 20 23:17:16 2007
@@ -275,7 +275,7 @@
         </field>
         <field position="1" name="invoiceMessage"><text size="100"/></field>
         <!--field position="2" name="invoiceAmount" use-when="invoiceId!=null"><display/></field-->
-        <field position="1" name="updateButton" widget-style="smallSubmit">
+        <field position="1" name="updateButton" widget-style="smallSubmit" use-when="invoice!=null&amp;&amp;invoice.getString(&quot;statusId&quot;).equals(&quot;INVOICE_IN_PROCESS&quot;)">
             <submit button-type="button"/>
         </field>
     </form>