From 803a46600f0d04d8958c566677cc4fa828034622 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 16 Dec 2024 17:56:19 +0100 Subject: [PATCH] Revert 4937a4a --- .../src/main/java/eu/pretix/libpretixsync/db/AbstractItem.java | 1 - .../src/main/java/eu/pretix/libpretixsync/models/Item.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/libpretixsync/src/main/java/eu/pretix/libpretixsync/db/AbstractItem.java b/libpretixsync/src/main/java/eu/pretix/libpretixsync/db/AbstractItem.java index ad03e5dc..f243ebc1 100644 --- a/libpretixsync/src/main/java/eu/pretix/libpretixsync/db/AbstractItem.java +++ b/libpretixsync/src/main/java/eu/pretix/libpretixsync/db/AbstractItem.java @@ -312,7 +312,6 @@ public List getVariations() throws JSONException { v.setDescription(variation.optJSONObject("description")); v.setPosition(variation.getLong("position")); v.setPrice(new BigDecimal(variation.getString("price"))); - v.setListed_price(new BigDecimal(variation.getString("price"))); v.setServer_id(variation.getLong("id")); v.setValue(variation.getJSONObject("value")); v.setAvailable_from(variation.optString("available_from")); diff --git a/libpretixsync/src/main/java/eu/pretix/libpretixsync/models/Item.kt b/libpretixsync/src/main/java/eu/pretix/libpretixsync/models/Item.kt index 04daa635..1dd36001 100644 --- a/libpretixsync/src/main/java/eu/pretix/libpretixsync/models/Item.kt +++ b/libpretixsync/src/main/java/eu/pretix/libpretixsync/models/Item.kt @@ -67,7 +67,6 @@ class Item( v.description = variation.optJSONObject("description") v.position = variation.getLong("position") v.price = BigDecimal(variation.getString("price")) - v.listed_price = BigDecimal(variation.getString("price")) v.server_id = variation.getLong("id") v.value = variation.getJSONObject("value") v.available_from = variation.optString("available_from")