Skip to content

FINERACT-2455: Working Capital - Delinquency Management - Configuration#5612

Merged
adamsaghy merged 3 commits intoapache:developfrom
openMF:FINERACT-2455/WC-Delinquency-Management-Configuration
Mar 19, 2026
Merged

FINERACT-2455: Working Capital - Delinquency Management - Configuration#5612
adamsaghy merged 3 commits intoapache:developfrom
openMF:FINERACT-2455/WC-Delinquency-Management-Configuration

Conversation

@somasorosdpc
Copy link
Contributor

Description

Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Write the commit message as per our guidelines
  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
  • Create/update unit or integration tests for verifying the changes made.
  • Follow our coding conventions.
  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
  • This PR must not be a "code dump". Large changes can be made in a branch, with assistance. Ask for help on the developer mailing list.

Your assigned reviewer(s) will follow our guidelines for code reviews.

@Converter(autoApply = true)
public class BucketTypeConverter implements AttributeConverter<BucketType, Long> {
@Override
public Long convertToDatabaseColumn(BucketType minimumPayment) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use bucketType variable name for consistency

return dataValidator.hasError() ? null : new DelinquencyBucketData(null, name, ranges);

final Long bucketTypeParam = jsonHelper.extractLongNamed(DelinquencyApiConstants.BUCKET_TYPE_PARAM_NAME, element);
dataValidator.reset().parameter(DelinquencyApiConstants.BUCKET_TYPE_PARAM_NAME).value(rangeIds)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this bucketTypeParam instead of rangeIds?

@NoArgsConstructor
@Entity
@Table(name = "m_delinquency_payment_rule")
public class DelinquencyMinimumPaymentPeriodAndRule extends AbstractAuditableWithUTCDateTimeCustom<Long> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we store the following values: frequency, frequency type, minimum payment type
My question: where do we store the actual value of minimum payment? Like the amount and not the type of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Ther is a minimumPaymentType and a minimumPayment for its value

package org.apache.fineract.portfolio.delinquency.domain;

import jakarta.persistence.Column;
import jakarta.persistence.Embedded;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import

import jakarta.persistence.UniqueConstraint;
import jakarta.persistence.Version;

import java.io.Serial;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import

@somasorosdpc somasorosdpc force-pushed the FINERACT-2455/WC-Delinquency-Management-Configuration branch 6 times, most recently from 6fdd005 to 4c2929a Compare March 13, 2026 09:55
@adamsaghy
Copy link
Contributor

@somasorosdpc Please fix the failing checks!

@somasorosdpc somasorosdpc force-pushed the FINERACT-2455/WC-Delinquency-Management-Configuration branch 3 times, most recently from 67989db to 3d7e54f Compare March 13, 2026 15:22
@adamsaghy
Copy link
Contributor

@somasorosdpc Please rebase

@somasorosdpc somasorosdpc force-pushed the FINERACT-2455/WC-Delinquency-Management-Configuration branch 9 times, most recently from 6a43bda to 6c443a4 Compare March 18, 2026 10:06
@somasorosdpc somasorosdpc marked this pull request as ready for review March 18, 2026 11:32
@adamsaghy adamsaghy force-pushed the FINERACT-2455/WC-Delinquency-Management-Configuration branch 3 times, most recently from 88a61db to 797b20b Compare March 19, 2026 13:17
Copy link
Contributor

@adamsaghy adamsaghy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adamsaghy adamsaghy force-pushed the FINERACT-2455/WC-Delinquency-Management-Configuration branch from 797b20b to d9c55fc Compare March 19, 2026 16:08
@adamsaghy adamsaghy merged commit c3434d6 into apache:develop Mar 19, 2026
44 checks passed
@adamsaghy adamsaghy deleted the FINERACT-2455/WC-Delinquency-Management-Configuration branch March 19, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants