Fixes Issue 24036: The Expected date filter is not working in add payment popup
authorPandeeswari Ramakrishnan <pandeeswari.ramakrishnan@openbravo.com>
Tue, 11 Jun 2013 15:59:34 +0530
changeset 20513 72a6ddafde71
parent 20512 02b4db5308b3
child 20514 962bd86db4f3
Fixes Issue 24036: The Expected date filter is not working in add payment popup
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html	Wed Jun 05 15:57:57 2013 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html	Tue Jun 11 15:59:34 2013 +0530
@@ -12,7 +12,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2012 Openbravo SLU
+ * All portions are Copyright (C) 2010-2013 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s): Enterprise Intelligence Systems (http://www.eintel.com.au).
  *************************************************************************
@@ -235,7 +235,7 @@
 }
 
 function validateDate(element){
-  if (isMulticurrencyTxn()) {
+  if (isMulticurrencyTxn() || element.name === "inpExpectedDateFrom" || element.name === "inpExpectedDateTo") {
     if(isValidDate(element.value, element.getAttribute("displayformat")))
       loadGridList();
   }