Seetha.Rajagopalan | 10 Feb 13:44
Favicon

Need help for code change

Hi!

I have a requirement to suppress insertion of records into fee_trxn_detail table and I am trying to make code changes in order to effect this. I have explained below the steps followed by me. As I am new to working with the mifos source code, I request one of the core developers to evaluate the changes made by me.

 

Objective –

 

I have a onetime fee applicable to loans to be paid at the time of disbursement. When this fee is paid, entries must be inserted in account_payment, account_trxn and loan_trxn_detail tables but not in fee_trxn_detail.

 

Analysis –

 

·         As the fee is paid at the time of disbursement, I started with the disburseLoan function in LoanBO.java.

·         The function processFeesAtDisbursement is called from within this function.

·         Within the function processFeesAtDisbursement, I commented the line accountPayment.addAccountTrxn(loanTrxnDetailEntity).

 

Observation –

 

When the fees is paid, no entry is made in the account_payment, account_trxn, loan_trxn_detail and fee_trxn_detail tables.

 

Understanding –

 

Insertion of records into the 4 tables – account_payment, account_trxn, loan_trxn_detail and fee_trxn_detail is coupled. It is not possible to suppress insertion into one of these tables alone.

 

 

Could you please confirm if my understanding is correct or am I missing out on something here?

 

Thanks and regards,

 

 

Seetha Rajagopalan • Engineer - Product Development • Mifos • SunGard • Global Services

Embassy Icon, 3 Infantry Road, Bangalore 560 001, India

Main +91 (80) 3091 3000 X3234

 


P Think before you print
CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you receive this e-mail in error, please notify the sender and delete this e-mail from your system.

 

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Mifos-developer mailing list
mifos-developer@...
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
Seetha.Rajagopalan | 13 Feb 13:57
Favicon

Re: Need help for code change

Udai and Keith,

 

Could you please help me out with this?

 

Thanks and regards,

Seetha Rajagopalan

 

From: Seetha.Rajagopalan-X+QBe+SqkrFBDgjK7y7TUQ@public.gmane.org [mailto:Seetha.Rajagopalan-X+QBe+SqkrFBDgjK7y7TUQ@public.gmane.org]
Sent: Friday, February 10, 2012 6:14 PM
To: mifos-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Mifos-developer] Need help for code change

 

Hi!

I have a requirement to suppress insertion of records into fee_trxn_detail table and I am trying to make code changes in order to effect this. I have explained below the steps followed by me. As I am new to working with the mifos source code, I request one of the core developers to evaluate the changes made by me.

 

Objective –

 

I have a onetime fee applicable to loans to be paid at the time of disbursement. When this fee is paid, entries must be inserted in account_payment, account_trxn and loan_trxn_detail tables but not in fee_trxn_detail.

 

Analysis –

 

·         As the fee is paid at the time of disbursement, I started with the disburseLoan function in LoanBO.java.

·         The function processFeesAtDisbursement is called from within this function.

·         Within the function processFeesAtDisbursement, I commented the line accountPayment.addAccountTrxn(loanTrxnDetailEntity).

 

Observation –

 

When the fees is paid, no entry is made in the account_payment, account_trxn, loan_trxn_detail and fee_trxn_detail tables.

 

Understanding –

 

Insertion of records into the 4 tables – account_payment, account_trxn, loan_trxn_detail and fee_trxn_detail is coupled. It is not possible to suppress insertion into one of these tables alone.

 

 

Could you please confirm if my understanding is correct or am I missing out on something here?

 

Thanks and regards,

 

 

Seetha Rajagopalan • Engineer - Product Development • Mifos • SunGard • Global Services

Embassy Icon, 3 Infantry Road, Bangalore 560 001, India

Main +91 (80) 3091 3000 X3234

 


P Think before you print
CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you receive this e-mail in error, please notify the sender and delete this e-mail from your system.

 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Mifos-developer mailing list
mifos-developer@...
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
Keith Woodlock | 13 Feb 14:14
Picon

Re: Need help for code change

Seetha,

Im not able to help with this at present.

Has you have noted/seen, you need to completely change the way 'transactions' are populated based on whats happened in loan account to decouple them and have flexibility of having it the way you desire.

It is an area that awkward to understand and any changes in this area are risky with respect to knock on effect.

Keith.

On Mon, Feb 13, 2012 at 12:57 PM, <Seetha.Rajagopalan <at> sungard.com> wrote:

Udai and Keith,

 

Could you please help me out with this?

 

Thanks and regards,

Seetha Rajagopalan

 

 

Hi!

I have a requirement to suppress insertion of records into fee_trxn_detail table and I am trying to make code changes in order to effect this. I have explained below the steps followed by me. As I am new to working with the mifos source code, I request one of the core developers to evaluate the changes made by me.

 

Objective –

 

I have a onetime fee applicable to loans to be paid at the time of disbursement. When this fee is paid, entries must be inserted in account_payment, account_trxn and loan_trxn_detail tables but not in fee_trxn_detail.

 

Analysis –

 

·         As the fee is paid at the time of disbursement, I started with the disburseLoan function in LoanBO.java.

·         The function processFeesAtDisbursement is called from within this function.

·         Within the function processFeesAtDisbursement, I commented the line accountPayment.addAccountTrxn(loanTrxnDetailEntity).

 

Observation –

 

When the fees is paid, no entry is made in the account_payment, account_trxn, loan_trxn_detail and fee_trxn_detail tables.

 

Understanding –

 

Insertion of records into the 4 tables – account_payment, account_trxn, loan_trxn_detail and fee_trxn_detail is coupled. It is not possible to suppress insertion into one of these tables alone.

 

 

Could you please confirm if my understanding is correct or am I missing out on something here?

 

Thanks and regards,

 

 

Seetha Rajagopalan • Engineer - Product Development • Mifos • SunGard • Global Services

Embassy Icon, 3 Infantry Road, Bangalore 560 001, India

Main +91 (80) 3091 3000 X3234

 


P Think before you print
CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you receive this e-mail in error, please notify the sender and delete this e-mail from your system.

 


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Mifos-developer mailing list
mifos-developer@...
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
Udai Gupta | 19 Feb 14:41
Picon
Gravatar

Re: Need help for code change

 

I have a requirement to suppress insertion of records into fee_trxn_detail table and I am trying to make code changes in order to effect this. I have explained below the steps followed by me. As I am new to working with the mifos source code, I request one of the core developers to evaluate the changes made by me.

 

Objective –

 

I have a onetime fee applicable to loans to be paid at the time of disbursement. When this fee is paid, entries must be inserted in account_payment, account_trxn and loan_trxn_detail tables but not in fee_trxn_detail.



Sorry could reply earlier,  I don't have much to help here, but it may be interesting to know why you decided to do this because it is difficult, there are relationship and FK check between entities. So may be you can explain a little bit more what problem are you trying to solve so that others on the mailing list might have some advice or workaround to offer.

Regards,
Udai
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Mifos-developer mailing list
mifos-developer@...
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer

Gmane