Merge pull request #1387 from chandrikamohith/MIFOSX-2037
MIFOSX-2037 Payment type is getting displayed in Individual collectio…
This commit is contained in:
+4
-4
@@ -8,7 +8,7 @@ package org.mifosplatform.portfolio.collectionsheet.data;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
import org.mifosplatform.infrastructure.codes.data.CodeValueData;
|
||||
import org.mifosplatform.portfolio.paymenttype.data.PaymentTypeData;
|
||||
|
||||
/**
|
||||
* Immutable data object for collection sheet.
|
||||
@@ -21,15 +21,15 @@ public class IndividualCollectionSheetData {
|
||||
private final Collection<IndividualClientData> clients;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private final Collection<CodeValueData> paymentTypeOptions;
|
||||
private final Collection<PaymentTypeData> paymentTypeOptions;
|
||||
|
||||
public static IndividualCollectionSheetData instance(final LocalDate date, final Collection<IndividualClientData> clients,
|
||||
final Collection<CodeValueData> paymentTypeOptions) {
|
||||
final Collection<PaymentTypeData> paymentTypeOptions) {
|
||||
return new IndividualCollectionSheetData(date, clients, paymentTypeOptions);
|
||||
}
|
||||
|
||||
private IndividualCollectionSheetData(final LocalDate dueDate, final Collection<IndividualClientData> clients,
|
||||
final Collection<CodeValueData> paymentTypeOptions) {
|
||||
final Collection<PaymentTypeData> paymentTypeOptions) {
|
||||
this.dueDate = dueDate;
|
||||
this.clients = clients;
|
||||
this.paymentTypeOptions = paymentTypeOptions;
|
||||
|
||||
+2
-3
@@ -673,9 +673,8 @@ public class CollectionSheetReadPlatformServiceImpl implements CollectionSheetRe
|
||||
|
||||
// merge savings data into loan data
|
||||
mergeLoanData(collectionSheetFlatDatas, (List<IndividualClientData>) clientData);
|
||||
|
||||
Collection<CodeValueData> paymentOptions = this.codeValueReadPlatformService
|
||||
.retrieveCodeValuesByCode(PaymentDetailConstants.paymentTypeCodeName);
|
||||
|
||||
final Collection<PaymentTypeData> paymentOptions = this.paymentTypeReadPlatformService.retrieveAllPaymentTypes();
|
||||
|
||||
return IndividualCollectionSheetData.instance(transactionDate, clientData, paymentOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user