Author: ashish
Date: Fri Jul 17 05:08:12 2009
New Revision: 794961
URL:
http://svn.apache.org/viewvc?rev=794961&view=revLog:
Most of the time we expect that if we don't provide fromDate then nowTimeStamp should be taken by the service itself.(Due to overriding fromField in service definition and handling / passing now to fromDate if empty string is passed.)
But if we have used auto feature to create the record in service definition then its good to explicitly pass nowTimeStamp from the form definition.
Modified:
ofbiz/trunk/applications/accounting/widget/PaymentGroupForms.xml
Modified: ofbiz/trunk/applications/accounting/widget/PaymentGroupForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/PaymentGroupForms.xml?rev=794961&r1=794960&r2=794961&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/PaymentGroupForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/PaymentGroupForms.xml Fri Jul 17 05:08:12 2009
@@ -99,7 +99,7 @@
<auto-fields-service service-name="createPaymentGroupMember"/>
<field name="paymentGroupId"><hidden/></field>
<field name="paymentId"><lookup target-form-name="LookupPayment"/></field>
- <field name="fromDate"/>
+ <field name="fromDate"><date-time default-value="${nowTimestamp}"/></field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
<form name="PaymentGroupMembers" type="list" list-name="paymentGroupMembers"