![]() |
|
|
|
|
Change By:
|
keithwoodlock
(07/Nov/12 12:17 AM)
|
|
Description:
|
This is a familiarisation task. Its objective is for getting used to the code base rather than implementing a lot of functionality. Although quite brief, the comments below should point you to places in the code (java backend and _javascript_ UI) where similar functionality has already been done. However, don't hesitate to contact Keith or myself if you have queries, would like a code base screen share or even if you can see a better way of doing anything.
m_code is the table that stores the names (but not the values) of user defined codes. Some description is at https://mifosforge.jira.com/wiki/display/MIFOSX/Mifos+X+Database
It is not defined in Java yet
Natu has done some of the early work and created the REST api resource class: see org
.
mifosng
.
platform
.
just in
api.CodesApiResource.java and class associated.
In
the
demo
database
(
you will see that
there
aren
are some
'
t any
codes
'
in the
core tables just yet)
m_code table and their corresponding values in the m_code_value table
.
Create the Post, Put, Get and Delete resources similar to as done in FundsApiResource.java (You can leave delete out if you want to).
except that - this api format will be /codes rather than /funds - the m_code table only contains id and code_name fields. - there is no delete in FundsApiResource.java
In the reference UI add list, create, update and delete functions. The delete (if you choose to do it) will be a real delete, not a soft delete as done in other places such as DepositProductsApiResource
You can put this under the organisation admin menu for now (this is getting busy and we'll review it soon but its fine for now).
Don't worry about permissions for now. Also no tests required right now. API Documentation later also.
Note: whilst m_code_value contains the actual list of values for m_code - that maintenance work isn't part of this task.
|
|
|
|
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
|
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues