FINERACT-2421: Working Capital loan details extended#5859
FINERACT-2421: Working Capital loan details extended#5859alberto-art3ch wants to merge 1 commit into
Conversation
365d2a9 to
f59370b
Compare
| "null", | ||
| "bigdecimal" | ||
| ] | ||
| }, |
There was a problem hiding this comment.
I dont think we need this
There was a problem hiding this comment.
Done removed!
| private boolean isLoanProductLinkedToFloatingRate; | ||
| private Long fundId; | ||
| private String fundName; | ||
| private String officeName; |
There was a problem hiding this comment.
Done removed!
| @Schema(example = "0.0", description = "Approved discount set during loan approval") | ||
| public BigDecimal discountApproved; | ||
| @Schema(example = "90", description = "Loan term in days (originalPaymentNumber from amortization schedule); null if schedule not yet generated") | ||
| public Integer totalDays; |
There was a problem hiding this comment.
Please rename to "totalNoPayments"
| @Schema(example = "0.00", description = "Penalty charges portion from allocation") | ||
| public BigDecimal penaltyChargesPortion; | ||
| @Schema(example = "500.00", description = "Amortized income portion (discount fee for transactions with an income relation, zero otherwise)") | ||
| public BigDecimal amortizedIncomePortion; |
There was a problem hiding this comment.
I dont think we need this field
There was a problem hiding this comment.
Done removed!
| private final BigDecimal actualAmortizationAmount; | ||
| private final BigDecimal incomeModification; | ||
| private final BigDecimal deferredBalance; | ||
| private final BigDecimal feesAmount; |
There was a problem hiding this comment.
We are not planning to add fees to Amortization schedule...
There was a problem hiding this comment.
Done removed!
| private BigDecimal discount; | ||
| private BigDecimal discountProposed; | ||
| private BigDecimal discountApproved; | ||
| private Integer totalDays; |
There was a problem hiding this comment.
Please rename to "totalNoPayments"
| // Income recognition | ||
| private BigDecimal realizedIncome; | ||
| private BigDecimal unrealizedIncome; | ||
| private BigDecimal overpaymentAmount; |
There was a problem hiding this comment.
Wrong group... overpayment does not belong to "Income recognition"
There was a problem hiding this comment.
Done updated!
| private BigDecimal principalOutstanding; | ||
| private BigDecimal principalOverdue; | ||
|
|
||
| // Discount fee (cargo financiero del WC loan) |
There was a problem hiding this comment.
Please remove: (cargo financiero del WC loan)
| private BigDecimal principalDisbursed; | ||
| private BigDecimal principalPaid; | ||
| private BigDecimal principalOutstanding; | ||
| private BigDecimal principalOverdue; |
There was a problem hiding this comment.
We can remove: principalOverdue, not applicable to Working Capital loans
| private BigDecimal discountCharged; | ||
| private BigDecimal discountPaid; | ||
| private BigDecimal discountOutstanding; | ||
| private BigDecimal discountOverdue; |
There was a problem hiding this comment.
We can remove discountOverdue. Not applicable to Working Capital loans.
| private BigDecimal totalExpectedRepayment; | ||
| private BigDecimal totalRepayment; | ||
| private BigDecimal totalOutstanding; | ||
| private BigDecimal totalOverdue; |
There was a problem hiding this comment.
totalOverdue we can remove, not applicable for working capital loans.
| private BigDecimal totalRepayment; | ||
| private BigDecimal totalOutstanding; | ||
| private BigDecimal totalOverdue; | ||
| private BigDecimal totalRecovered; |
There was a problem hiding this comment.
totalRecovered we can remove, not applicable for working capital loans.
| // Transaction summaries | ||
| private BigDecimal totalDisbursement; | ||
| private BigDecimal totalRepaymentTransaction; | ||
| private BigDecimal totalRepaymentTransactionReversed; |
There was a problem hiding this comment.
We can remove this field, not bringing any value...
| private BigDecimal feeChargesPortion; | ||
| private BigDecimal penaltyChargesPortion; | ||
| // Income recognized in this transaction (e.g. discount fee on disbursement). | ||
| private BigDecimal amortizedIncomePortion; |
There was a problem hiding this comment.
No need for this field...
There was a problem hiding this comment.
Done removed!
| .actualAmortizationAmount(roundMoney(payment.actualAmortizationAmount())) // | ||
| .incomeModification(roundMoney(payment.incomeModification())) // | ||
| .deferredBalance(roundMoney(payment.deferredBalance())) // | ||
| .feesAmount(BigDecimal.ZERO) // |
| @Mapping(target = "delinquencyGraceDays", source = "loanProductRelatedDetails.delinquencyGraceDays") | ||
| @Mapping(target = "delinquencyStartType", source = "loanProductRelatedDetails", qualifiedByName = "delinquencyStartTypeData") | ||
| @Mapping(target = "collectionData", ignore = true) | ||
| @Mapping(target = "totalDays", ignore = true) |
There was a problem hiding this comment.
Rename to totalNoPayments
adamsaghy
left a comment
There was a problem hiding this comment.
Please review my concerns.
c4989ab to
52fecb4
Compare
|
b578bfe to
975cc92
Compare
975cc92 to
ca3ae07
Compare
Description
Working Capital loan details extended to be used mainly for UI, like summary, account details, transactions
FINERACT-2421
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.