feat(clerk+gl): implement real CBS book transfer for savings and current account disbursements
- Replace Fineract cash deposit API with direct INSERT for both savings and current accounts → Zero CashVault entries created anywhere in DB for disbursements - Savings: directCreditSavingsAccount now sets running_balance_derived and updates total_deposits_derived alongside account_balance_derived (parity with current account) - Current: directCreditCurrentAccount — direct INSERT into m_current_account_transaction with running_balance_derived, total_deposits_derived update, and remarks audit field - getCurrentControlGlId: looks up SAVINGS_CONTROL GL for current account products via acc_product_mapping (product_type=2, financial_account_type=2) - directReverseCurrentCredit: compensation restores both account_balance_derived and total_deposits_derived on rollback - GL: combined DR sourceGL / CR SavingsControl entry posted for both savings and current account credits; linkGlEntriesToSavingsAccounts sets entity_type_enum=2 so ACCOUNT NO column shows in journal entries view - Hide reversed=true GL entries from all GL views in JournalEntryReadPlatformServiceImpl Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d002fc0c9b
commit
bf5ce421df
@@ -361,4 +361,5 @@
|
||||
<include file="parts/0331_add_gl_columns_to_cashier_deposit_request.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0332_create_clerk_disbursement_request.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0333_rename_disbursed_to_withdrawn.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0334_clerk_disbursement_add_error_message.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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 id="0334_clerk_disbursement_add_error_message" author="CBS">
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<tableExists tableName="m_clerk_disbursement_request"/>
|
||||
<not><columnExists tableName="m_clerk_disbursement_request" columnName="error_message"/></not>
|
||||
</preConditions>
|
||||
<addColumn tableName="m_clerk_disbursement_request">
|
||||
<column name="error_message" type="VARCHAR(1000)"/>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
Reference in New Issue
Block a user