MIFOSX-2037 Payment type is getting displayed in Individual collection sheet.

This commit is contained in:
Chandrika
2015-05-18 16:26:34 -04:00
parent 75f774e7ee
commit 298f3384cf
2 changed files with 6 additions and 7 deletions
@@ -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;
@@ -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);