Issue Type: Improvement Improvement
Affects Versions: 1.0.0.RELEASE
Assignee: Yanna
Components: Platform
Created: 07/May/13 5:21 PM
Description:

Yanna, feel free to reassign this one if you don't want to do it.

If you do...
Create a Loan and go to the Audit and look at how it is displayed.

productId (in this case its a loan product id) and loanOfficerId (m_staff table) and transactionProcessingStrategyId need to be translated in the same way as mifosx-329.

You'll see that the code for each translation is nearly identical except for the query run so you may wish to refactor this.

Also, there are a bunch of enums that need their 'id' value tranlated to their 'code' value.

"loanTermFrequency": (termFrequency)
"loanTermFrequencyType": (termPeriodFrequencyType)
"repaymentFrequencyType":
"amortizationType":
"interestType":
"interestCalculationPeriodType":

There are some other on loan as well but ignore for now, 6 is enough.

Assuming you have a clientId of 2 and a productId of 1, the following loan template api gives you back all the enums with their id and code values... just for reference as you'll probably want some method to pick up the code given the id (maybe the code that does the template does this)

https://localhost:8443/mifosng-provider/api/v1/loans/template?templateType=individual&clientId=2&productId=1&tenantIdentifier=default&pretty=true

As for the "id"s, there is probably a way of making enum translation code reusable so if you want to try this fine... but you don't have to for this Jira.

Fix Versions: 1.1.0.RELEASE
Project: Mifos X
Priority: Minor Minor
Reporter: johnwoodlock
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to