removing currency display for meters

This commit is contained in:
Prince
2026-06-08 21:36:31 +02:00
parent 24f435a09f
commit 7ded6b2861
2 changed files with 96 additions and 2 deletions

View File

@@ -122,6 +122,9 @@ public class ZesaConfirmationHotProcessor implements TransactionProcessorInterfa
Map<String, Object> details = (Map<String, Object>) customerData.get("details"); Map<String, Object> details = (Map<String, Object>) customerData.get("details");
if (details != null) { if (details != null) {
for (Map.Entry<String, Object> entry : details.entrySet()) { for (Map.Entry<String, Object> entry : details.entrySet()) {
// don't show customer ZWG value. It leads to confusion
if(entry.getValue().toString().equals("ZWG"))
continue;
additionalDataList.add(Map.of("name", entry.getKey(), "value", entry.getValue().toString())); additionalDataList.add(Map.of("name", entry.getKey(), "value", entry.getValue().toString()));
} }
} }

View File

@@ -1,8 +1,99 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?> <?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet author="khoza (generated)" id="1780675189842-3"> <changeSet author="khoza (generated)" id="1780904354124-3">
<addColumn tableName="group_batch"> <createTable tableName="group_batch">
<column name="id" type="UUID">
<constraints nullable="false" primaryKey="true" primaryKeyName="group_batchPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column defaultValueBoolean="false" name="deleted" type="BOOLEAN"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="completed_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="confirm_idempotency_key" type="VARCHAR(255)"/>
<column name="confirm_started_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="count" type="INTEGER"/>
<column name="currency" type="VARCHAR(255)"/>
<column name="description" type="VARCHAR(255)"/>
<column name="failed_count" type="INTEGER"/>
<column name="integration_started_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="payment_processor_image" type="VARCHAR(255)"/>
<column name="payment_processor_label" type="VARCHAR(255)"/>
<column name="payment_processor_name" type="VARCHAR(255)"/>
<column name="payment_reference" type="VARCHAR(255)"/>
<column name="payment_transaction_id" type="UUID"/>
<column name="poll_idempotency_key" type="VARCHAR(255)"/>
<column name="poll_started_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="recipient_group_id" type="UUID"/>
<column name="request_idempotency_key" type="VARCHAR(255)"/>
<column name="request_started_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="requested_by" type="VARCHAR(255)"/>
<column name="result_file_url" type="TEXT"/> <column name="result_file_url" type="TEXT"/>
<column name="status" type="VARCHAR(255)"/>
<column name="successful_count" type="INTEGER"/>
<column name="transaction_template" type="TEXT"/>
<column name="user_id" type="VARCHAR(255)"/>
<column name="value" type="numeric(38, 2)"/>
<column name="workflow_id" type="BIGINT"/>
</createTable>
</changeSet>
<changeSet author="khoza (generated)" id="1780904354124-4">
<createTable tableName="group_batch_item">
<column name="id" type="UUID">
<constraints nullable="false" primaryKey="true" primaryKeyName="group_batch_itemPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column defaultValueBoolean="false" name="deleted" type="BOOLEAN"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="amount" type="numeric(38, 2)"/>
<column name="confirm_error" type="TEXT"/>
<column name="confirm_status" type="VARCHAR(255)"/>
<column name="group_batch_id" type="UUID"/>
<column name="integration_error" type="TEXT"/>
<column name="integration_status" type="VARCHAR(255)"/>
<column name="recipient_id" type="UUID"/>
<column name="recipient_name" type="VARCHAR(255)"/>
<column name="recipient_phone" type="VARCHAR(255)"/>
<column name="status" type="VARCHAR(255)"/>
<column name="transaction_id" type="UUID"/>
</createTable>
</changeSet>
<changeSet author="khoza (generated)" id="1780904354124-5">
<createTable tableName="recipient_group">
<column name="id" type="UUID">
<constraints nullable="false" primaryKey="true" primaryKeyName="recipient_groupPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column defaultValueBoolean="false" name="deleted" type="BOOLEAN"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="description" type="VARCHAR(255)"/>
<column name="name" type="VARCHAR(255)"/>
<column name="user_id" type="VARCHAR(255)"/>
</createTable>
</changeSet>
<changeSet author="khoza (generated)" id="1780904354124-6">
<createTable tableName="recipient_group_member">
<column name="id" type="UUID">
<constraints nullable="false" primaryKey="true" primaryKeyName="recipient_group_memberPK"/>
</column>
<column name="created_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column defaultValueBoolean="false" name="deleted" type="BOOLEAN"/>
<column name="updated_at" type="TIMESTAMP(6) WITHOUT TIME ZONE"/>
<column name="account" type="VARCHAR(255)"/>
<column name="recipient_group_id" type="UUID"/>
<column name="recipient_uid" type="UUID"/>
<column name="user_id" type="VARCHAR(255)"/>
<column name="recipient_id" type="UUID"/>
</createTable>
</changeSet>
<changeSet author="khoza (generated)" id="1780904354124-7">
<addColumn tableName="transaction">
<column name="party_type" type="smallint"/>
</addColumn> </addColumn>
</changeSet> </changeSet>
<changeSet author="khoza (generated)" id="1780904354124-8">
<addForeignKeyConstraint baseColumnNames="recipient_id" baseTableName="recipient_group_member" constraintName="FK50dbg59nfkur42vjx44xc4d6v" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="recipient" validate="true"/>
</changeSet>
<changeSet author="khoza (generated)" id="1780904354124-9">
<addForeignKeyConstraint baseColumnNames="transaction_id" baseTableName="group_batch_item" constraintName="FK8n8fahugsdfs2aue2ad34u69f" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="transaction" validate="true"/>
</changeSet>
</databaseChangeLog> </databaseChangeLog>