adamsaghy commented on code in PR #6069:
URL: https://github.com/apache/fineract/pull/6069#discussion_r3629949535


##########
fineract-accounting/src/main/java/org/apache/fineract/accounting/glaccount/jobs/updatetrialbalancedetails/UpdateTrialBalanceDetailsTasklet.java:
##########
@@ -77,7 +78,9 @@ private void insertTrialBalanceForDate(LocalDate tbGap) {
             tb.setGlAccountId((Long) row[1]);
             tb.setAmount((BigDecimal) row[2]);
             tb.setEntryDate((LocalDate) row[3]);
-            tb.setTransactionDate((LocalDate) row[4]);
+            // je.createdDate is the OffsetDateTime audit field; EclipseLink 5 
materializes it as such in
+            // Object[] projections where EclipseLink 4 handed back a 
date-castable value
+            tb.setTransactionDate(((OffsetDateTime) row[4]).toLocalDate());

Review Comment:
   It is not...It's a simple date: `<column defaultValueComputed="NULL" 
name="created_date" type="date"/>`
   
   Lets reverse this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to