Arnold Galovics created FINERACT-2919:
-----------------------------------------

             Summary: Generate Mandatory Savings Schedule INSERT lists 9 
columns but has 7 placeholders
                 Key: FINERACT-2919
                 URL: https://issues.apache.org/jira/browse/FINERACT-2919
             Project: Apache Fineract
          Issue Type: Bug
            Reporter: Arnold Galovics
            Assignee: Arnold Galovics


🐛 Steps to Reproduce
1. Have a recurring deposit account with fewer than 5 future installments in 
m_mandatory_savings_schedule 
(DepositAccountUtils.GENERATE_MINIMUM_NUMBER_OF_FUTURE_INSTALMENTS).
2. Run the "Generate Mandatory Savings Schedule" job (POST 
/jobs/\{jobId}?command=executeJob).
3. Check the job's run history and m_mandatory_savings_schedule.
 
❌ Actual Result
• The batch INSERT supplies 9 values per row for 7 placeholders, so the 
batchUpdate fails and no installments are generated.
 
✅ Expected Result
• Missing future installments are inserted with their audit columns.
 
ℹ️ Notes
• Found by reading the code, not executed. Same on 1.15.0 and develop.
 
🔧 Technical Notes
• GenerateRdScheduleTasklet.java:58-60 lists 5 + 4 audit columns but VALUES (?, 
?, ?, ?, ?, ?, ?). params.add (:79) passes 9 values.
• Fix: nine placeholders.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to