Commit Graph
77 Commits
Author SHA1 Message Date
Jaanu423andClaude Sonnet 4.6 b25d5a30d2 feat: FD/RD GL transaction prefixes + savingsAccountNo in journal entry API
- Use FD/RD transaction ID prefixes for Fixed/Recurring Deposit GL entries
  via ThreadLocal context set in Cash/AccrualBasedAccountingProcessorForSavings
- Add depositAccountType to SavingsDTO and pass from SavingsAccount bridge data
- Add savingsAccountNo field to JournalEntryData; populate via LEFT JOIN on
  m_savings_account (SB/FD/RD) and m_current_account (CA prefix) in read query
- Fix JournalEntryMapper MapStruct: ignore savingsAccountNo (SQL-populated)
- Fix JournalEntryRunningBalanceUpdateServiceImpl constructor call (27 params)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 18:26:15 +05:30
Nitesh YadavandClaude Sonnet 4.6 cc0ccbb461 feat: multi-nominee support, duplicate validation, and FD/RD required fields
Account Creation Enhancements:
- Added multi-nominee support for SB, CA, FD, RD accounts (nominees[] array)
- Backend: saveNomineesIfPresent() validates total share <= 100% before saving
- Added 'nominees' to parameter whitelists (SavingsAccountConstant, DepositsApiConstants)

Duplicate Validation Fixes:
- SB/FD/RD: Fixed duplicate externalId error handler to walk full exception cause
  chain (EclipseLink wraps PSQLException deep) — now matches constraint
  'm_savings_account_external_id_key' and returns proper 400 error
- CA: Added try-catch around both saveAndFlush calls for duplicate externalId
  (constraint: ca_unq_external_id) with throwIfDuplicateExternalId() helper
- CA: Added duplicate product check — blocks creating same product twice for client
- SB/FD/RD: Added JpaSystemException handling via getAllCauseMessages() helper

Current Account (CA) Improvements:
- CurrentAccount entity: added @UniqueConstraint for external_id (ca_unq_external_id)
- CurrentAccountRepository: added countActiveByClientAndProduct() JPQL query
- Liquibase 0298: unique constraint on m_current_account.external_id

FD/RD Required Field Validation (Backend):
- DepositAccountDataValidator: depositPeriod now required for RD (was FD-only)
- DepositAccountDataValidator: mandatoryRecommendedDepositAmount now notNull+positive for RD
- DepositAccountDataValidator: customerSegment now required (notBlank) for both FD and RD

Liquibase Migrations:
- 0297: fix unique nominee per account constraint
- 0298: unique external_id on m_current_account
- 2014: add is_mandatory column to m_savings_account_joint_holders

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 08:00:00 +05:30
Nitesh Yadav 390bded7ef rd and fd account active code update 2026-05-18 15:16:25 +05:30
Nitesh Yadav d0c8be4ee9 charges add module add in the saving account and current account 2026-05-16 21:20:30 +05:30
Nitesh Yadav 30bbd6d0af fixed error db migration and rd product edit error fixed 2026-05-12 11:32:13 +05:30
Nitesh Yadav fbc6fcdcc1 rd and fd product and account code update 2026-05-08 15:55:22 +05:30
Nitesh Yadav 44878377d8 rd account and rd product code update 2026-05-08 13:09:07 +05:30
Nitesh Yadav f1535a40c8 fd account complete mddule 2026-05-07 17:19:34 +05:30
Nitesh Yadav 407d567175 update fd account 2026-05-07 10:56:29 +05:30
Nitesh Yadav 4735111a4f fd product releated update code 2026-05-05 15:18:35 +05:30
Nitesh Yadav 0bbf2faa3e fixed some error releated product code 2026-05-01 11:33:07 +05:30
Nitesh Yadav be220d8778 rd account save api update 2026-04-30 16:12:17 +05:30
Nitesh Yadav a7965f8792 current account save api update 2026-04-29 15:18:45 +05:30
Nitesh Yadav dc4a720ae2 feat: update savings product backend changes 2026-04-28 13:12:27 +05:30
Nitesh YadavandClaude Sonnet 4.6 72adbf6305 add accountTypeOptions and customerSegmentOptions to savings/current/RD account templates
- Added accountTypeOptions and customerSegmentOptions fields to SavingsAccountData and RecurringDepositAccountData
- Added CodeValueReadPlatformService to SavingsAccountTemplateReadPlatformServiceImpl, CurrentAccountTemplateReadPlatformServiceImpl, and DepositAccountReadPlatformServiceImpl to fetch options from code values
- Added options to SAVINGS_ACCOUNT_RESPONSE_DATA_PARAMETERS and RD response parameters
- Updated SavingsConfiguration bean factory methods to pass new CodeValueReadPlatformService dependency
- Added validCheckSum for modified Liquibase changeset 0272
- Fixed AccountNumberGeneratorTest constructor to include GLAccountRepository and SavingsProductRepository

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 15:39:58 +05:30
Nitesh Yadav 159633f59a add gl mapping in the saving product,current product,rd product and also add genrate account no all three 2026-04-26 02:02:56 +05:30
Nitesh Yadav efb0511725 update account code current,saving and RD 2026-04-24 16:14:13 +05:30
Nitesh Yadav 691a3fc471 saving , current and RD account code update 2026-04-22 18:15:46 +05:30
Nitesh Yadav 05c5adb034 update code saving product add on client 2026-04-21 17:30:57 +05:30
Nitesh Yadav 98dd941712 some update logic update on showing option 2026-04-21 13:19:19 +05:30
Nitesh Yadav 800e114a4d update RD Prodcut code 2026-04-20 12:51:35 +05:30
Nitesh Yadav 2facd3744d update current product code and RD code 2026-04-15 20:34:12 +05:30
Nitesh Yadav d7821c7824 update saving product code 2026-04-13 13:26:33 +05:30
AdityaandClaude Opus 4.6 6a464291d5 Add Current Account module mirroring Savings Account infrastructure
- CurrentAccount entity (@DiscriminatorValue 400) extending SavingsAccount
- 4 JAX-RS API resources: /v1/currentaccounts, /v1/currentproducts, transactions, charges
- 38 command handlers delegating to existing savings services
- ~35 CommandWrapperBuilder methods for current account commands
- DB migration 0225 with 67 permissions (CURRENTACCOUNT, CURRENTPRODUCT, CURRENTACCOUNTCHARGE)
- DepositsApiConstants and DepositAccountType enum updated for CURRENT_DEPOSIT

Reuses existing m_savings_account table (deposit_type_enum=400), GL accounting,
interest calculation, and all savings write/read services — no code duplication.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:16:36 +05:30
Aleksandar VidakovicandAleksandar Vidakovic 2ff0c62f40 FINERACT-2246: New command processing - document management 2026-02-16 14:56:40 +01:00
Jose Alberto HernandezandAleksandar Vidakovic 8d560a1f7c FINERACT-2332: SavingCOB infrastructure 2026-02-12 14:02:18 +01:00
Vladyslav SamchenkoandAdam Saghy 840f95c88f FINERACT-2015: Fix saving account with withdrawal fee 2026-02-11 12:01:03 +01:00
airajenaandAdam Saghy 52aaad9d25 FINERACT-2155: Allow annual charge payment after due date 2026-01-26 13:12:17 +01:00
airajenaandAdam Saghy eaf843a3ac FINERACT-2421: Fix GRETERTHAN typo in ConditionType enum 2026-01-12 13:50:40 +01:00
MonicaandAdam Saghy 591395f39c FINERACT-2429: Fix typo getCreditAcount to getCreditAccount in TaxComponent and SavingsAccountTransaction 2026-01-08 22:46:28 +01:00
Adam Saghy 767c66f245 FINERACT-2326: Fix external id generation during reinvest 2025-12-11 13:04:59 +01:00
Aman-MittalandAdam Saghy dce3c66def FINERACT-2326: Refractor redundant and some deprecated code as per new Java 21 style 2025-12-08 13:49:44 +01:00
Adam SaghyandArnold Gálovics 469dfa48be FINERACT-2326: Add extra valid checksum since Liquibase changed on how checksums calculated 2025-12-05 15:20:52 +01:00
Siddharthan P SandAdam Saghy 3d3b2dad6f FINERACT-2316: Localize interest rate chart slab validation
- Add localized validation messages for overlap and gap errors in interest rate chart slabs
- Use DataValidatorBuilder with resource/parameter context for clean error codes
- Add unit tests for validation error codes and arguments
- Add German translations for validation messages
2025-12-03 09:44:09 +01:00
Aman-MittalandAdam Saghy 00e9ac8320 FINERACT-2346: Refractor, Minor Sonar fixes and remove some deprecated code 2025-12-01 19:11:59 +01:00
Adam SaghyandArnold Gálovics 297fa8e707 FINERACT-2326: Close opened savings account after integration test execution 2025-10-02 20:57:25 +02:00
sayhaedandAdam Saghy d782e65fc2 FINERACT-2376: Unable to re-invest maturity amount or principal for fixed deposit at closing 2025-10-01 15:31:25 +02:00
JohnAlvaandAdam Saghy fb8f2f7cb6 FINERACT-2312: Reverse of Accruals to adjust late deposits 2025-09-04 10:25:51 +02:00
Juan-Pablo-AlvarezandAdam Saghy a6fa1adc99 FINERACT-2312: Post interest with adjustments for savings accounts 2025-09-04 10:24:42 +02:00
Attila BudaiandAdam Saghy 7378aea0b2 FINERACT-2267: proper not null annotations. Remove jetbrains notnull, all services use non-null 2025-09-03 12:24:37 +02:00
Christopher Sayhaed Giron VegaandGitHub b349cf6831 FINERACT-2312: Accruals added for savings accounts (#4885) 2025-08-20 15:00:09 -06:00
04GomezandGitHub c936c19b85 FINERACT-2312: Adjustment to savings account products by adding a new accounting account interest receivables account. (#4876) 2025-08-20 09:54:18 -06:00
viktorpavlenkoandAleksandar Vidakovic 4c3da5b06a FINERACT-2247: New command processing - Currency Management (org.apache.fineract.organisation.monetary) 2025-06-28 10:38:32 +02:00
Adam Saghy db28259b1a FINERACT-2181: Gradle task rework - Optimized weaving across all modules 2025-06-22 22:41:34 +02:00
Arnold GalovicsandArnold Gálovics a76c189a04 Revert "FINERACT-2181: Some tweaks in the gradle build to ensure correct task processing"
This reverts commit 6cb60f48
2025-06-20 21:53:28 +02:00
Arnold GalovicsandArnold Gálovics 1ebfad230c Revert "FINERACT-2181: Some tweaks in the gradle build to ensure correct task processing"
This reverts commit 11cecb0d45.
2025-06-20 21:53:28 +02:00
Arnold GalovicsandArnold Gálovics 4b7335b724 Revert "FINERACT-2181: Add missing converters to persistence.xml"
This reverts commit 62bb1e6509.
2025-06-20 21:53:28 +02:00
Adam SaghyandArnold Gálovics 62bb1e6509 FINERACT-2181: Add missing converters to persistence.xml 2025-06-19 21:44:52 +02:00
Adam SaghyandArnold Gálovics 11cecb0d45 FINERACT-2181: Some tweaks in the gradle build to ensure correct task processing 2025-06-18 15:54:00 +02:00
fa405f09fd FINERACT-2202: Bulk import fix (#4709)
Co-authored-by: Edder Lugo <edder.sanjuan@fintecheando.mx>
2025-05-30 18:47:09 -06:00