Repository: incubator-fineract Updated Branches: refs/heads/develop 755d4d2f9 -> 29777ddfb
FINERACT-249 : PortfolioProductType.SAVING and PortfolioProductType.CLIENT have the same value Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/bc1d3b41 Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/bc1d3b41 Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/bc1d3b41 Branch: refs/heads/develop Commit: bc1d3b41f37ef6dc7c40ce26631786a0afe5bb67 Parents: f59dacb Author: nazeer1100126 <[email protected]> Authored: Tue Mar 28 17:49:24 2017 +0530 Committer: nazeer1100126 <[email protected]> Committed: Fri Mar 31 15:14:28 2017 +0530 ---------------------------------------------------------------------- .../producttoaccountmapping/domain/PortfolioProductType.java | 2 +- .../core_db/V326__data_migration_for_client_tr_gl_entries.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/bc1d3b41/fineract-provider/src/main/java/org/apache/fineract/accounting/producttoaccountmapping/domain/PortfolioProductType.java ---------------------------------------------------------------------- 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 f43f7e1..d7817a6 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; http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/bc1d3b41/fineract-provider/src/main/resources/sql/migrations/core_db/V326__data_migration_for_client_tr_gl_entries.sql ---------------------------------------------------------------------- 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 0000000..a665109 --- /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
