Author: mor
Date: Wed Oct 14 13:47:15 2009
New Revision: 825135
URL:
http://svn.apache.org/viewvc?rev=825135&view=revLog:
Update button was displayed on the create billing account screen but it should be Create. Applied patch from Brajesh Patel,
part of jira issue OFBIZ-3041 (
https://issues.apache.org/jira/browse/OFBIZ-3041)
Modified:
ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml
Modified: ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml?rev=825135&r1=825134&r2=825135&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/BillingAccountForms.xml Wed Oct 14 13:47:15 2009
@@ -149,8 +149,8 @@
<field name="availableBalance" title="${uiLabelMap.AccountingBillingAvailableBalance}" tooltip="${uiLabelMap.AccountingBillingAvailableBalanceMessage}">
<display type="currency" currency="${billingAccount.accountCurrencyUomId}"/>
</field>
-
- <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
+ <field name="submitButton" title="${uiLabelMap.CommonCreate}" use-when="billingAccount == null" widget-style="smallSubmit"><submit button-type="button"/></field>
+ <field name="submitButton" title="${uiLabelMap.CommonUpdate}" use-when="billingAccount!=null" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListBillingAccountRoles" type="list" list-name="billingAccountRoleList" target="updateBillingAccountRole"