related to issue 41062 code review changes use new Date() instead of Calendar
authorSandra Huguet <sandra.huguet@openbravo.com>
Wed, 12 Jun 2019 09:45:27 +0200
changeset 36129 07fd428fb5a5
parent 36128 01243bac26fd
child 36130 344027159c1c
related to issue 41062 code review changes use new Date() instead of Calendar
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java	Tue Jun 11 09:15:25 2019 -0400
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/dao/AdvPaymentMngtDao.java	Wed Jun 12 09:45:27 2019 +0200
@@ -21,7 +21,6 @@
 
 import java.math.BigDecimal;
 import java.util.ArrayList;
-import java.util.Calendar;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -690,7 +689,7 @@
       BigDecimal writeoffAmount, BigDecimal debtAmount) {
     final FIN_PaymentScheduleDetail newPaymentScheduleDetail = (FIN_PaymentScheduleDetail) DalUtil
         .copy(paymentScheduleDetail);
-    newPaymentScheduleDetail.setCreationDate(Calendar.getInstance().getTime());
+    newPaymentScheduleDetail.setCreationDate(new Date());
     newPaymentScheduleDetail.setAmount(writeoffAmount);
     newPaymentScheduleDetail.setDoubtfulDebtAmount(debtAmount);
     OBDal.getInstance().save(newPaymentScheduleDetail);