fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [fineract] awasum commented on a change in pull request #1113: Need an option to filter provisioning entries by date, Fineract-462
Date Sat, 04 Jul 2020 13:48:16 GMT

awasum commented on a change in pull request #1113:
URL: https://github.com/apache/fineract/pull/1113#discussion_r449774704



##########
File path: fineract-provider/src/main/java/org/apache/fineract/accounting/provisioning/service/ProvisioningEntriesReadPlatformServiceImpl.java
##########
@@ -349,5 +349,37 @@ public String schema() {
         return this.loanProductProvisioningEntryDataPaginationHelper.fetchPage(this.jdbcTemplate,
sqlCountRows, sqlBuilder.toString(),
                 whereClauseItemsitems, mapper);
     }
+    @Override
+	public Page<ProvisioningEntryData> retrieveAllProvisioningEntriesByDate(Integer offset,
Integer limit,
+			String filterDate) {
+		Date filterdate = null;
+		if (filterDate != null) {
+			try {
+				SimpleDateFormat format = new SimpleDateFormat("dd MMMM yyyy", Locale.ENGLISH);

Review comment:
       Using Locale.ENGLISH? What if the user sent a different language? I think there is
a locale param been sent on almost all request in Fineract..Maybe use that? 




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message