MIFOSX-92 - modified column names

This commit is contained in:
Pramod Nuthakki
2014-02-18 11:25:52 +05:30
parent c548f501de
commit ade1bd38cf
4 changed files with 9 additions and 5 deletions
@@ -0,0 +1,4 @@
ALTER TABLE `m_product_loan`
CHANGE COLUMN `multi_disburse_loan` `allow_multiple_disbursals` TINYINT(1) NOT NULL DEFAULT '0' AFTER `close_date`,
CHANGE COLUMN `max_tranche_count` `max_disbursals` INT(2) NULL DEFAULT NULL AFTER `allow_multiple_disbursals`,
CHANGE COLUMN `outstanding_loan_balance` `max_outstanding_loan_balance` DECIMAL(19,6) NULL DEFAULT NULL AFTER `max_disbursals`;
@@ -419,7 +419,7 @@ public class LoanReadPlatformServiceImpl implements LoanReadPlatformService {
return "l.id as id, l.account_no as accountNo, l.external_id as externalId, l.fund_id as fundId, f.name as fundName,"
+ " l.loan_type_enum as loanType, l.loanpurpose_cv_id as loanPurposeId, cv.code_value as loanPurposeName,"
+ " lp.id as loanProductId, lp.name as loanProductName, lp.description as loanProductDescription,"
+ " lp.multi_disburse_loan as multiDisburseLoan,"
+ " lp.allow_multiple_disbursals as multiDisburseLoan,"
+ " c.id as clientId, c.display_name as clientName, c.office_id as clientOfficeId,"
+ " g.id as groupId, g.display_name as groupName,"
+ " g.office_id as groupOfficeId, g.staff_id As groupStaffId , g.parent_id as groupParentId, "
@@ -12,13 +12,13 @@ import org.mifosplatform.portfolio.loanproduct.LoanProductConstants;
@Embeddable
public class LoanProductTrancheDetails {
@Column(name = "multi_disburse_loan")
@Column(name = "allow_multiple_disbursals")
private boolean multiDisburseLoan;
@Column(name = "max_tranche_count", nullable = false)
@Column(name = "max_disbursals", nullable = false)
private Integer maxTrancheCount;
@Column(name = "outstanding_loan_balance", scale = 6, precision = 19, nullable = false)
@Column(name = "max_outstanding_loan_balance", scale = 6, precision = 19, nullable = false)
private BigDecimal outstandingLoanBalance;
protected LoanProductTrancheDetails() {
@@ -120,7 +120,7 @@ public class LoanProductReadPlatformServiceImpl implements LoanProductReadPlatfo
+ "lp.grace_on_principal_periods as graceOnPrincipalPayment, lp.grace_on_interest_periods as graceOnInterestPayment, lp.grace_interest_free_periods as graceOnInterestCharged,"
+ "lp.amortization_method_enum as amortizationMethod, lp.arrearstolerance_amount as tolerance, "
+ "lp.accounting_type as accountingType, lp.include_in_borrower_cycle as includeInBorrowerCycle,lp.use_borrower_cycle as useBorrowerCycle, lp.start_date as startDate, lp.close_date as closeDate, "
+ "lp.multi_disburse_loan as multiDisburseLoan, lp.max_tranche_count as maxTrancheCount, lp.outstanding_loan_balance as outstandingLoanBalance, "
+ "lp.allow_multiple_disbursals as multiDisburseLoan, lp.max_disbursals as maxTrancheCount, lp.max_outstanding_loan_balance as outstandingLoanBalance, "
+ "curr.name as currencyName, curr.internationalized_name_code as currencyNameCode, curr.display_symbol as currencyDisplaySymbol, lp.external_id as externalId "
+ " from m_product_loan lp "
+ " left join m_fund f on f.id = lp.fund_id"