Issue Type: Dev Task Dev Task
Assignee: Michał Dudziński
Created: 20/Aug/12 12:15 AM
Description:

Charges can be attached to Loan Products - as long as the charges are

  • active
  • not deleted
  • can be applied to loans
  • in the same currency as the loan product.

Alter the GET, POST and PUT api resources to cater for this. Probably, the UI should have the add / remove type functionality that it does in Mifos and also in currency configuration.

Get Requests (/loanproducts & /loadproducts/

{id}

& /loanproducts/template) should return an array of charges e.g.
{...
"charges": [

{ "id": 4, "name": "Disb Fee", }

, ....
]
}
Note: it would be chargeOptions for template needs

the Post and Put (loanproducts and loanproducts/

{Id}

can just be an array of ids e.g.

{... "charges": [1,3,6] ] }

New table is m_product_loan_charge (in patch mifosng-db\patchesPutOnDemoServer20120820\patch-0009-charge-changes.sql)

There are probably some validation rules such as "can I make a charge inactive if it is attached to a loan product." or "can the charge applied to field be edited once it is attached to a loan" - You can delay worrying about these if you like because it easy to get carried away with them. Just let us know in this jira issue if you do anything like that.

Hope I haven't made this picture unclear. Will send round a db diagram soon. Next stage will be applying those charges at loan creation.

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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to