FINERACT-1783: Customizeable LoanRepaymentScheduleTransactionProcessor
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
f2756b25bb
commit
fc895fce05
@@ -83,4 +83,5 @@
|
||||
<include file="parts/0061_add_idempotency_key_to_command_source.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0062_add_fraud_attribute_to_loan.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0063_add_permissions_for_external_event_configuration.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0064_refactor_loan_transaction_strategy.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
|
||||
-->
|
||||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
|
||||
<changeSet author="fineract" id="1">
|
||||
<addColumn tableName="m_loan">
|
||||
<column defaultValue="-" name="loan_transaction_strategy_code" type="VARCHAR(100)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column defaultValue="-" name="loan_transaction_strategy_name" type="VARCHAR(100)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
</addColumn>
|
||||
<update tableName="m_loan">
|
||||
<column name="loan_transaction_strategy_code" value="mifos-standard-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Penalties, Fees, Interest, Principal order" />
|
||||
<where>loan_transaction_strategy_id = 1</where>
|
||||
</update>
|
||||
<update tableName="m_loan">
|
||||
<column name="loan_transaction_strategy_code" value="heavensfamily-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="HeavensFamily Unique" />
|
||||
<where>loan_transaction_strategy_id = 2</where>
|
||||
</update>
|
||||
<update tableName="m_loan">
|
||||
<column name="loan_transaction_strategy_code" value="creocore-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Creocore Unique" />
|
||||
<where>loan_transaction_strategy_id = 3</where>
|
||||
</update>
|
||||
<update tableName="m_loan">
|
||||
<column name="loan_transaction_strategy_code" value="rbi-india-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Overdue/Due Fee/Int,Principal" />
|
||||
<where>loan_transaction_strategy_id = 4</where>
|
||||
</update>
|
||||
<update tableName="m_loan">
|
||||
<column name="loan_transaction_strategy_code" value="principal-interest-penalties-fees-order-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Principal, Interest, Penalties, Fees Order" />
|
||||
<where>loan_transaction_strategy_id = 5</where>
|
||||
</update>
|
||||
<update tableName="m_loan">
|
||||
<column name="loan_transaction_strategy_code" value="interest-principal-penalties-fees-order-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Interest, Principal, Penalties, Fees Order" />
|
||||
<where>loan_transaction_strategy_id = 6</where>
|
||||
</update>
|
||||
<update tableName="m_loan">
|
||||
<column name="loan_transaction_strategy_code" value="early-repayment-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Early Repayment Strategy" />
|
||||
<where>loan_transaction_strategy_id = 7</where>
|
||||
</update>
|
||||
<dropForeignKeyConstraint baseTableName="m_loan" constraintName="FK_loan_ltp_strategy" />
|
||||
<!--
|
||||
<dropColumn tableName="m_loan_product" columnName="loan_transaction_strategy_id" />
|
||||
-->
|
||||
</changeSet>
|
||||
<changeSet author="fineract" id="2">
|
||||
<addColumn tableName="m_product_loan">
|
||||
<column defaultValue="-" name="loan_transaction_strategy_code" type="VARCHAR(100)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column defaultValue="-" name="loan_transaction_strategy_name" type="VARCHAR(100)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
</addColumn>
|
||||
<update tableName="m_product_loan">
|
||||
<column name="loan_transaction_strategy_code" value="mifos-standard-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Penalties, Fees, Interest, Principal order" />
|
||||
<where>loan_transaction_strategy_id = 1</where>
|
||||
</update>
|
||||
<update tableName="m_product_loan">
|
||||
<column name="loan_transaction_strategy_code" value="heavensfamily-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="HeavensFamily Unique" />
|
||||
<where>loan_transaction_strategy_id = 2</where>
|
||||
</update>
|
||||
<update tableName="m_product_loan">
|
||||
<column name="loan_transaction_strategy_code" value="creocore-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Creocore Unique" />
|
||||
<where>loan_transaction_strategy_id = 3</where>
|
||||
</update>
|
||||
<update tableName="m_product_loan">
|
||||
<column name="loan_transaction_strategy_code" value="rbi-india-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Overdue/Due Fee/Int,Principal" />
|
||||
<where>loan_transaction_strategy_id = 4</where>
|
||||
</update>
|
||||
<update tableName="m_product_loan">
|
||||
<column name="loan_transaction_strategy_code" value="principal-interest-penalties-fees-order-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Principal, Interest, Penalties, Fees Order" />
|
||||
<where>loan_transaction_strategy_id = 5</where>
|
||||
</update>
|
||||
<update tableName="m_product_loan">
|
||||
<column name="loan_transaction_strategy_code" value="interest-principal-penalties-fees-order-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Interest, Principal, Penalties, Fees Order" />
|
||||
<where>loan_transaction_strategy_id = 6</where>
|
||||
</update>
|
||||
<update tableName="m_product_loan">
|
||||
<column name="loan_transaction_strategy_code" value="early-repayment-strategy" />
|
||||
<column name="loan_transaction_strategy_name" value="Early Repayment Strategy" />
|
||||
<where>loan_transaction_strategy_id = 7</where>
|
||||
</update>
|
||||
<dropForeignKeyConstraint baseTableName="m_product_loan" constraintName="FK_ltp_strategy" />
|
||||
<!--
|
||||
<dropColumn tableName="m_product_loan" columnName="loan_transaction_strategy_id" />
|
||||
-->
|
||||
</changeSet>
|
||||
<changeSet author="fineract" id="3">
|
||||
<renameColumn tableName="m_product_loan_configurable_attributes" oldColumnName="loan_transaction_strategy_id" newColumnName="loan_transaction_strategy_code" columnDataType="BOOLEAN" />
|
||||
</changeSet>
|
||||
<!--
|
||||
<changeSet author="fineract" id="4">
|
||||
<dropTable tableName="ref_loan_transaction_processing_strategy" />
|
||||
</changeSet>
|
||||
-->
|
||||
</databaseChangeLog>
|
||||
Reference in New Issue
Block a user