diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index f6701aeac..db1882a62 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -305,6 +305,218 @@ +
+

Savings

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
RESOURCES
+
+ + + + + + +
POST
create/complex + update
+ + + + + + +
GET
read
+ + + + + + +
PUT
update
+ + + + + + +
DELETE
delete
Savings AccountssavingsaccountsSubmit new savings applicationList savings application/accounts
savingsaccounts/{accountId}Retrieve a savings application/accountModify a savings applicationDelete a savings application
savingsaccounts/{accountId}?command=approveApprove a savings application
savingsaccounts/{accountId}?command=undoApprovalUndo savings application approval
savingsaccounts/{accountId}?command=rejectReject a savings application
savingsaccounts/{accountId}?command=withdrawWithdraw savings application
savingsaccounts/{accountId}?command=activateActivate a savings account
savingsaccounts/{accountId}?command=closeClose a savings account
savingsaccounts/{accountId}?command=calculateInterestCalculate interest on a savings account
savingsaccounts/{accountId}?command=postInterestPost interest on a savings account
Savings Transactionssavingsaccounts/{accountId}/transactions?command=depositMake a deposit
savingsaccounts/{accountId}/transactions?command=withdrawalMake a withdrawal
savingsaccounts/{accountId}/transactions/{transactionId}?command=undoUndo transaction
savingsaccounts/{accountId}/transactions/{transactionId}?command=modifyAdjust transaction
savingsaccounts/{accountId}/transactions/templateRetrieve savings account transaction template
savingsaccounts/{accountId}/transactions/{transactionId}Retrieve savings account transaction
Savings Account Chargessavingsaccounts/{accountId}/chargesAdd a Savings Account Charge
savingsaccounts/{accountId}/charges/{savingsAccountChargeId}Retrieve a Savings Account ChargeModify a Savings Account ChargeDelete a Savings Account Charge
savingsaccounts/{accountId}/charges/{savingsAccountChargeId}?command=paychargePay a Savings Account Charge
savingsaccounts/{accountId}/charges/{savingsAccountChargeId}?command=waiveWaive a Savings Account Charge
+
+
+
+

Loan

@@ -373,7 +585,7 @@ loans/{loanId} Retrieve a Loan - + Update a Loan Delete a Loan Application @@ -852,6 +1064,22 @@ Product + + Savings Product + savingsproducts + Create a Savings product + List Savings products + + + + + + savingsproducts/{productId} + + Retrieve a savings product + Update a savings product + Delete a savings product + Currency currencies @@ -1601,6 +1829,18 @@ accountingrules/template Retrieve Accounting Rule Template + + savingproducts/template + Retrieve Savings Product Template + + + savingsaccounts/template?clientId={clientId} + Retrieve savings template + + + savingsaccounts/{accountId}/transactions/template + Retrieve savings account transaction template +
@@ -5762,6 +6002,37 @@ GET https://DomainName/mifosng-provider/api/v1/loans +   +
+
+

Modify a loan application

+

Loan application can only be modified when in 'Submitted and pending approval' state. Once the application is approved, the details cannot be changed using this method.

+
+
+ PUT https://Domain Name/api/v1/loans/{loanId} + PUT loans/1 +Content-Type: application/json +No Request Body: +{ + "locale": "en", + "principal": "5000", +} + + +{ + "officeId": 2, + "clientId": 1, + "loanId": 1, + "resourceId": 1, + "changes": { + "principal": 5000, + "locale": "en" + } +} + +
+
+  
@@ -22777,99 +23048,6 @@ No Request Body: - -
- -   -
- - - - -

Beta API Matrix

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -23062,6 +23240,99 @@ No Request Body: +
- - - - -
RESOURCES
-
- - - - - - -
POST
create/complex update
- - - - - - -
GET
read
- - - - - - -
PUT
update
- - - - - - -
DELETE
delete
-
CachecachesList Cache TypesSwitch Cache
CentercentersCreate a CenterList Centers
centers/templateRetrieve Center Template
centers/{centerId}Retrieve a CenterUpdate a CenterDelete a Center
centers/{centerId}?command=activateActivate a Center
Savings Product savingsproducts
+
+ +   +
+ + + + +

Beta API Matrix

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/domain/LoanCharge.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/domain/LoanCharge.java index f376d3712..d3caf2aee 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/domain/LoanCharge.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanaccount/domain/LoanCharge.java @@ -428,6 +428,7 @@ public class LoanCharge extends AbstractPersistable { } else { this.amount = newValue; } + this.amountOutstanding = calculateOutstanding(); break; case PERCENT_OF_AMOUNT: case PERCENT_OF_AMOUNT_AND_INTEREST:
+ + + + +
RESOURCES
+
+ + + + + + +
POST
create/complex update
+ + + + + + +
GET
read
+ + + + + + +
PUT
update
+ + + + + + +
DELETE
delete
+
CachecachesList Cache TypesSwitch Cache
CentercentersCreate a CenterList Centers
centers/templateRetrieve Center Template
centers/{centerId}Retrieve a CenterUpdate a CenterDelete a Center
centers/{centerId}?command=activateActivate a Center
Account Transfers accounttransfers/