details: https://code.openbravo.com/erp/devel/pi/rev/c876c12bb791 changeset: 30681:c876c12bb791 user: Alejandro <alekosmp86 <at> gmail.com> date: Mon Nov 21 14:04:51 2016 -0600 summary: Fixes issue 34551: Dates not truncated when using "Reconcile" process
Reconciliations created using manual reconciliation process (Reconcile button) were not inserted with truncated dates. When setting the properties for the reconciliation record being saved, the TransactionDate and EndingDate properties were being filled with the current date and time. Now those fields are filled only with the date. diffstat: modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/Reconciliation.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diffs (23 lines): diff -r 98b5f1a7b29d -r c876c12bb791 modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/Reconciliation.java --- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/Reconciliation.java Thu Nov 24 17:10:27 2016 +0100 +++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/Reconciliation.java Mon Nov 21 14:04:51 2016 -0600 @@ -11,7 +11,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-2014 Openbravo SLU + * All portions are Copyright (C) 2010-2016 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************* @@ -195,8 +195,8 @@ account, "Y"); reconciliation.setEndingBalance(new BigDecimal(strEndBalance)); - reconciliation.setTransactionDate(FIN_Utility.getDateTime(strStatementDate)); - reconciliation.setEndingDate(FIN_Utility.getDateTime(strStatementDate)); + reconciliation.setTransactionDate(FIN_Utility.getDate(strStatementDate)); + reconciliation.setEndingDate(FIN_Utility.getDate(strStatementDate)); reconciliation.setDocumentStatus("DR"); reconciliation.setProcessed(false); reconciliation.setAPRMProcessReconciliation("P"); ------------------------------------------------------------------------------ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits