diff --git a/fineract-provider/src/main/java/org/apache/fineract/accounting/producttoaccountmapping/domain/PortfolioProductType.java b/fineract-provider/src/main/java/org/apache/fineract/accounting/producttoaccountmapping/domain/PortfolioProductType.java index f43f7e11a..d7817a69e 100755 --- a/fineract-provider/src/main/java/org/apache/fineract/accounting/producttoaccountmapping/domain/PortfolioProductType.java +++ b/fineract-provider/src/main/java/org/apache/fineract/accounting/producttoaccountmapping/domain/PortfolioProductType.java @@ -22,7 +22,7 @@ import java.util.HashMap; import java.util.Map; public enum PortfolioProductType { - LOAN(1, "productType.loan"), SAVING(2, "productType.saving"), CLIENT(2, "productType.client"), PROVISIONING(3, + LOAN(1, "productType.loan"), SAVING(2, "productType.saving"), CLIENT(5, "productType.client"), PROVISIONING(3, "productType.provisioning"), SHARES(4, "productType.shares"); private final Integer value; diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V326__data_migration_for_client_tr_gl_entries.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V326__data_migration_for_client_tr_gl_entries.sql new file mode 100644 index 000000000..a665109c5 --- /dev/null +++ b/fineract-provider/src/main/resources/sql/migrations/core_db/V326__data_migration_for_client_tr_gl_entries.sql @@ -0,0 +1 @@ +UPDATE acc_gl_journal_entry g SET g.entity_type_enum = 5 WHERE g.client_transaction_id IS NOT NULL AND g.entity_type_enum = 2; \ No newline at end of file