diff --git a/backend/core/src/main/java/org/opencdmp/commons/JsonHandlingService.java b/backend/core/src/main/java/org/opencdmp/commons/JsonHandlingService.java index 24592328b..6e3500f23 100644 --- a/backend/core/src/main/java/org/opencdmp/commons/JsonHandlingService.java +++ b/backend/core/src/main/java/org/opencdmp/commons/JsonHandlingService.java @@ -3,6 +3,7 @@ package org.opencdmp.commons; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectReader; +import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.context.annotation.Scope; @@ -19,6 +20,7 @@ public class JsonHandlingService { public JsonHandlingService() { this.objectMapper = new ObjectMapper(); this.objectMapper.registerModule(new JavaTimeModule()); + this.objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); } public String toJson(Object item) throws JsonProcessingException { diff --git a/backend/core/src/main/java/org/opencdmp/integrationevent/outbox/accountingentrycreated/AccountingEntryCreatedIntegrationEvent.java b/backend/core/src/main/java/org/opencdmp/integrationevent/outbox/accountingentrycreated/AccountingEntryCreatedIntegrationEvent.java index 7a2c55c47..4eaacd7d5 100644 --- a/backend/core/src/main/java/org/opencdmp/integrationevent/outbox/accountingentrycreated/AccountingEntryCreatedIntegrationEvent.java +++ b/backend/core/src/main/java/org/opencdmp/integrationevent/outbox/accountingentrycreated/AccountingEntryCreatedIntegrationEvent.java @@ -23,6 +23,8 @@ public class AccountingEntryCreatedIntegrationEvent extends TrackedEvent { private AccountingValueType type; + private Double value; + private UUID tenant; public Instant getTimeStamp() { @@ -81,6 +83,14 @@ public class AccountingEntryCreatedIntegrationEvent extends TrackedEvent { this.type = type; } + public Double getValue() { + return value; + } + + public void setValue(Double value) { + this.value = value; + } + public UUID getTenant() { return tenant; }