Author: apatel
Date: Thu Dec 20 23:17:16 2007
New Revision: 606120
URL:
http://svn.apache.org/viewvc?rev=606120&view=revLog:
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&&invoice.getString("statusId").equals("INVOICE_IN_PROCESS")">
<submit button-type="button"/>
</field>
</form>