Hi Sifiso, Assuming you have added charge time type properly in the code base. And created a charge for the same and selected "is penalty" (i.e, penalty check box enabled) and selected currency which matches loan product currency and made it active.
I assume, now you are expecting above created penalty to appear in loan product page. In the loan product verify currency type and charge type are same then if you are still not getting newly created penalty then please run below query in database and check whether you are getting the created penalty in the result. SELECT c.id AS id, c.name AS name, c.amount AS amount, c.currency_code AS currencyCode, c.charge_applies_to_enum AS chargeAppliesTo, c.charge_time_enum AS chargeTime, c.charge_payment_mode_enum AS chargePaymentMode, c.charge_calculation_enum AS chargeCalculation, c.is_penalty AS penalty, c.is_active AS active, oc.name AS currencyName, oc.decimal_places AS currencyDecimalPlaces, oc.currency_multiplesof AS inMultiplesOf, oc.display_symbol AS currencyDisplaySymbol, oc.internationalized_name_code AS currencyNameCode, c.fee_on_day AS feeOnDay, c.fee_on_month AS feeOnMonth, c.fee_interval AS feeInterval, c.fee_frequency AS feeFrequency,c.min_cap AS minCap,c.max_cap AS maxCap, c.income_or_liability_account_id AS glAccountId, acc.name AS glAccountName, acc.gl_code AS glCode, tg.id AS taxGroupId, tg.name AS taxGroupName FROM m_charge c JOIN m_organisation_currency oc ON c.currency_code = oc.code LEFT JOIN acc_gl_account acc ON acc.id = c.income_or_liability_account_id LEFT JOIN m_tax_group tg ON tg.id = c.tax_group_id WHERE c.is_deleted= FALSE AND c.is_active= TRUE AND c.is_penalty= TRUE AND c.charge_applies_to_enum=1 If your result doesn't contain newly created penalty, then the charge wasn't created properly. Thank You, *Shruthi M R* Senior Software Engineer - Conflux Technologies [email protected] | Skype: Shruthi Rajaram | Mobile: +91-8277012716 On Wed, Jul 18, 2018 at 11:50 AM, <[email protected]> wrote: > Hi Santosh, > > > > Glad that you got my point. I am able to add existing charge type “Overdue > Fees” to the loan product as usual. But a new charge type “overdue on > maturity” does not appear on the loan product. I did not modify the > existing penalty just added a new one to Fees and Charges. And it will not > appear on the loan product penalties dropdown. > > > > Regards, > > Sifiso > > > > *From:* Santosh Math <[email protected]> > *Sent:* Wednesday, July 18, 2018 7:13 AM > > *To:* Sifiso Mtetwa <[email protected]> > *Cc:* Sampath Kumar G <[email protected]>; Ed Cable < > [email protected]>; Mifos software development <mifos-developer@lists. > sourceforge.net>; Shruthi M R <[email protected]>; Dev < > [email protected]> > *Subject:* Re: FW: [jira] [Updated] (FINERACT-633) New Penalty Charge not > appearing in Product dropdown list > > > > Hi Sifiso, > > I got your point. You're implementing new enhancement for penalties. That > is,charge type "overdue on maturity", which you're not able to add to the > loan product. Did you check you are able to add penalties to the loan > product with different Charge type, let's say just 'overdue'? OR did you > modified existing overdue as 'overdue on maturity'? > > > > Regards > > Santosh > > > > > > > > > > > > > > > > On Wed, Jul 18, 2018 at 10:00 AM, <[email protected]> wrote: > > Hi Santosh, > > > > The issue is related to penalties while creating the loan product. We have > not yet reached the loan application part. So charge type - overdue on > maturity and charge time – Outstanding Balance (Arrears) needs to be > developed into the Fees and Charges so that it is picked up on the product > on the penalties dropdown list, but it doesn’t. > > > > Thanks and regards, > > Sifiso > > > > *From:* Santosh Math <[email protected]> > *Sent:* Tuesday, July 17, 2018 5:32 PM > *To:* Sifiso Mtetwa <[email protected]> > *Cc:* Sampath Kumar G <[email protected]>; Ed Cable < > [email protected]>; Mifos software development <mifos-developer@lists. > sourceforge.net>; Shruthi M R <[email protected]>; Dev < > [email protected]> > *Subject:* Re: FW: [jira] [Updated] (FINERACT-633) New Penalty Charge not > appearing in Product dropdown list > > > > Hi Sifiso, > > > > Please clarify that whether you are facing the issue related to penalties > while creating loan product or creating loan application which is already > added with penalty. > > > > Thanks > > Santosh > > > > On Tue, Jul 17, 2018 at 6:50 PM, Shruthi M R <shruthi@confluxtechnologies. > com> wrote: > > Hi Sifiso, > > > > I added a charge type (penalty) *overdue fees* and it was available in > loan product. > > But i was not able to find any charge like "overdue on maturity". Can you > please share screenshots of the charge that you created and also share the > loan product details (screenshot is fine) for further analysis. > > > > > Thank You, > > *Shruthi M R* > > Senior Software Engineer - Conflux Technologies > > [email protected] | Skype: Shruthi Rajaram | Mobile: > +91-8277012716 > > > > On Mon, Jul 16, 2018 at 11:42 PM, <[email protected]> wrote: > > Hi Shruthi, > > May you please assist with this penalties feature. We need to arrive at > this point -> https://mifosforge.jira.com/browse/MIFOSX-2848?filter=-2 > > Thanks and regards, > Sifiso > > > -----Original Message----- > From: Edward Cable (JIRA) <[email protected]> > Sent: Wednesday, June 27, 2018 2:54 PM > To: [email protected] > Subject: [jira] [Updated] (FINERACT-633) New Penalty Charge not appearing > in Product dropdown list > > > [ https://issues.apache.org/jira/browse/FINERACT-633?page= > com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Edward Cable updated FINERACT-633: > ---------------------------------- > Affects Version/s: (was: 1.2.0) > 1.1.0 > > > New Penalty Charge not appearing in Product dropdown list > > --------------------------------------------------------- > > > > Key: FINERACT-633 > > URL: https://issues.apache.org/jira/browse/FINERACT-633 > > Project: Apache Fineract > > Issue Type: Bug > > Components: Charges, Loan > > Affects Versions: 1.1.0 > > Environment: v18.03.01 > > Reporter: Sifiso Mtetwa > > Priority: Critical > > Labels: easyfix, gsoc, p1 > > Fix For: 1.3.0 > > > > > > We have been developing a new feature for penalties overdue on maturity [ > https://mifosforge.jira.com/browse/MIFOSX-2848?filter=-2] We have an > issue where after you create the penalty in the charges area with a new > charge time type of overdue on maturity and submit it, it does not appear > in loan products penalties dropdown box for selection. Wanted to find out > which class fetches the penalties that are fetched to appear in this list > yet in table m_charges it appears fine. We have added some code in the UI > to fetch the required variables but it still does not appear. We can’t > proceed beyond this point. Please advise > > > > -- > This message was sent by Atlassian JIRA > (v7.6.3#76005) > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > > > > > > > -- > > Thanks & Regards > > Santosh Math > > *QA Engineer* > > *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>* > > | *Office*: +91-080-41208662 | > > *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block, > Bengaluru, Karnataka, 560043 INDIA > > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > > Virus-free. www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > > > > > > -- > > Thanks & Regards > > Santosh Math > > *QA Engineer* > > *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/>* > > | *Office*: +91-080-41208662 | > > *Address*: #304, 2nd Floor, 7th Main Road, HRBR Layout 1st Block, > Bengaluru, Karnataka, 560043 INDIA >
