Victor Romero created FINERACT-2701:
---------------------------------------

             Summary: Implement support for better date and time precision in 
Savings Account transaction
                 Key: FINERACT-2701
                 URL: https://issues.apache.org/jira/browse/FINERACT-2701
             Project: Apache Fineract
          Issue Type: Bug
            Reporter: Victor Romero


Implement support for better date and time precision in Savings Account 
transaction

 

Transfers 

Withdrawals

 

 

Must support Date and Time precision currently only Date is supported 

At least yyyy-MM-ddTHH:mm:ss - LocalDateTime must be supported

 

fineract-server-1  | 03:02:09.323 [https-jsse-nio-8443-exec-8] WARN  
o.g.j.server.ServerRuntime$Responder - An exception mapping did not 
successfully produce and processed a response. Logging the exception propagated 
to the default exception mapper.
fineract-server-1  | java.time.temporal.UnsupportedTemporalTypeException: 
Unsupported field: HourOfDay
fineract-server-1  |     at 
java.base/java.time.LocalDate.get0(LocalDate.java:698)
fineract-server-1  |     at 
java.base/java.time.LocalDate.getLong(LocalDate.java:678)
fineract-server-1  |     at 
java.base/java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:308)
fineract-server-1  |     at 
java.base/java.time.format.DateTimeFormatterBuilder$NumberPrinterParser.format(DateTimeFormatterBuilder.java:2914)
fineract-server-1  |     at 
java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.format(DateTimeFormatterBuilder.java:2529)
fineract-server-1  |     at 
java.base/java.time.format.DateTimeFormatter.formatTo(DateTimeFormatter.java:1905)
fineract-server-1  |     at 
java.base/java.time.format.DateTimeFormatter.format(DateTimeFormatter.java:1879)
fineract-server-1  |     at 
java.base/java.time.LocalDate.format(LocalDate.java:1797)
fineract-server-1  |     at 
org.apache.fineract.portfolio.savings.domain.SavingsAccount.withdraw(SavingsAccount.java:1138)
fineract-server-1  |     at 
org.apache.fineract.portfolio.savings.domain.SavingsAccountDomainServiceJpa.handleWithdrawal(SavingsAccountDomainServiceJpa.java:116)
fineract-server-1  |     at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
fineract-server-1  |     at 
java.base/java.lang.reflect.Method.invoke(Method.java:580)
fineract-server-1  |     at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:360)
fineract-server-1  |     at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
fineract-server-1  |     at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
fineract-server-1  |     at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:380)
fineract-server-1  |     at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
fineract-server-1  |     at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
fineract-server-1  |     at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728)
fineract-server-1  |     at 
org.apache.fineract.portfolio.savings.domain.SavingsAccountDomainServiceJpa$$SpringCGLIB$$0.handleWithdrawal(<generated>)
fineract-server-1  |     at 
org.apache.fineract.portfolio.account.service.AccountTransfersWritePlatformServiceImpl.create(AccountTransfersWritePlatformServiceImpl.java:133)
fineract-server-1  |     at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
fineract-server-1  |     at 
java.base/java.lang.reflect.Method.invoke(Method.java:580)
fineract-server-1  |     at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:360)
fineract-server-1  |     at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
fineract-server-1  |     at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
fineract-server-1  |     at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:380)
fineract-server-1  |     at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
fineract-server-1  |     at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
fineract-server-1  |     at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to