[
https://issues.apache.org/jira/browse/FINERACT-2922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arnold Galovics updated FINERACT-2922:
--------------------------------------
Fix Version/s: 1.17.0
> Seeded cron runs Update Non Performing Assets (00:00) before Update Loan
> Arrears Ageing (00:01), which it reads
> ---------------------------------------------------------------------------------------------------------------
>
> Key: FINERACT-2922
> URL: https://issues.apache.org/jira/browse/FINERACT-2922
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Arnold Galovics
> Assignee: Arnold Galovics
> Priority: Major
> Fix For: 1.17.0
>
>
> 🐛 Steps to Reproduce
> 1. Fresh tenant with default seeded jobs.
> 2. Look at the job table: Update Loan Arrears Ageing = "0 1 0 1/1 * ? *"
> (group 0), Update Non Performing Assets = "0 0 0 1/1 * ? *" (group 3).
> 3. Have a loan that crosses the NPA threshold during the day.
> 4. Let both jobs run at midnight.
>
> ❌ Actual Result
> • NPA runs before arrears ageing is updated, so the loan is flagged NPA one
> day late.
>
> ✅ Expected Result
> • NPA is evaluated on the same night's arrears (arrears ageing runs first).
>
> ℹ️ Notes
> • Found by reading the code and seed data, not executed. Same seeds on 1.15.0
> (0002_initial_data.xml:559, :768).
>
> 🔧 Technical Notes
> • UpdateNpaTasklet.java:52,70 joins m_loan_arrears_aging.
> • Different scheduler_group values, so no ordering guarantee.
> • Fix: seed NPA after arrears ageing (or same group with task_priority
> ordering); existing tenants need a changelog to update the stored cron.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)