From 0fa850e6fb8c2c7a07dbc12888e4e64f1068aa1b Mon Sep 17 00:00:00 2001 From: mwesigye john bosco Date: Mon, 23 Dec 2024 14:59:32 +0300 Subject: [PATCH] EA-112 Make amount to 8 decimal points from default 2 decimal places (#1430) --- .../fineract/portfolio/charge/domain/Charge.java | 2 +- .../interestrates/domain/InterestRate.java | 3 +-- ...2412171143000002_EA_111_add_detalles_column.xml | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/fineract-core/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java b/fineract-core/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java index 237f5faf36..68492f3492 100644 --- a/fineract-core/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java +++ b/fineract-core/src/main/java/org/apache/fineract/portfolio/charge/domain/Charge.java @@ -63,7 +63,7 @@ public class Charge extends AbstractPersistableCustom { @Column(name = "name", length = 100) private String name; - @Column(name = "amount", scale = 6, precision = 19, nullable = false) + @Column(name = "amount", scale = 8, precision = 19, nullable = false) private BigDecimal amount; @Column(name = "currency_code", length = 3) diff --git a/fineract-core/src/main/java/org/apache/fineract/portfolio/interestrates/domain/InterestRate.java b/fineract-core/src/main/java/org/apache/fineract/portfolio/interestrates/domain/InterestRate.java index c015dce252..f2592de9bc 100644 --- a/fineract-core/src/main/java/org/apache/fineract/portfolio/interestrates/domain/InterestRate.java +++ b/fineract-core/src/main/java/org/apache/fineract/portfolio/interestrates/domain/InterestRate.java @@ -21,8 +21,7 @@ public class InterestRate extends AbstractAuditableWithUTCDateTimeCustom { @Column(name = "name") private String name; - - @Column(name = "current_rate") + @Column(name = "current_rate", scale = 8, precision = 10, nullable = false) private BigDecimal currentRate; @Column(name = "appliedon_date") diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/parts/202412171143000002_EA_111_add_detalles_column.xml b/fineract-provider/src/main/resources/db/changelog/tenant/parts/202412171143000002_EA_111_add_detalles_column.xml index 9764a611e2..6ac6bae06a 100644 --- a/fineract-provider/src/main/resources/db/changelog/tenant/parts/202412171143000002_EA_111_add_detalles_column.xml +++ b/fineract-provider/src/main/resources/db/changelog/tenant/parts/202412171143000002_EA_111_add_detalles_column.xml @@ -118,4 +118,18 @@ + + + + + + + + + + + + + +