FINERACT-2374: Advance Accounting rule for classification type

This commit is contained in:
Jose Alberto Hernandez
2025-09-30 12:27:45 +02:00
committed by Adam Saghy
parent 6d3e5fa150
commit cb70555485
31 changed files with 1023 additions and 66 deletions
@@ -216,4 +216,5 @@
<include file="parts/0195_create_loan_amortization_allocation_mapping.xml" relativeToChangelogFile="true" />
<include file="parts/0196_add_deleted_and_closed_to_buy_down_fee_balance.xml" relativeToChangelogFile="true" />
<include file="parts/0197_add_deleted_and_closed_to_capitalized_income_balance.xml" relativeToChangelogFile="true" />
<include file="parts/0198_add_classification_id_to_acc_product_mapping.xml" relativeToChangelogFile="true" />
</databaseChangeLog>
@@ -0,0 +1,52 @@
<?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.3.xsd">
<changeSet id="1" author="fineract">
<addColumn tableName="acc_product_mapping">
<column name="capitalized_income_classification_id" type="INT" defaultValueNumeric="NULL">
<constraints nullable="true"/>
</column>
</addColumn>
<addForeignKeyConstraint
baseTableName="acc_product_mapping"
baseColumnNames="capitalized_income_classification_id"
referencedTableName="m_code_value"
referencedColumnNames="id"
constraintName="fk_acc_product_mapping_capitalized_income_classification"/>
</changeSet>
<changeSet id="2" author="fineract">
<addColumn tableName="acc_product_mapping">
<column name="buydown_fee_classification_id" type="INT" defaultValueNumeric="NULL">
<constraints nullable="true"/>
</column>
</addColumn>
<addForeignKeyConstraint
baseTableName="acc_product_mapping"
baseColumnNames="buydown_fee_classification_id"
referencedTableName="m_code_value"
referencedColumnNames="id"
constraintName="fk_acc_product_mapping_buydown_fee_classification"/>
</changeSet>
</databaseChangeLog>