You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2020/07/04 13:48:16 UTC

[GitHub] [fineract] awasum commented on a change in pull request #1113: Need an option to filter provisioning entries by date, Fineract-462

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