From ba6fa8e305ddb4059141280e6670f6ddc95f659c Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Mon, 13 Feb 2023 02:52:39 +0100 Subject: [PATCH] statiegeld_tokens: add comment to explain rationale --- plugins/statiegeld_tokens | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/statiegeld_tokens b/plugins/statiegeld_tokens index 666fb31..d76659d 100644 --- a/plugins/statiegeld_tokens +++ b/plugins/statiegeld_tokens @@ -290,6 +290,9 @@ sub void :Tab(yes,no) ($self, $cart, $input, @) { $entry->{description} = "Void: $entry->{description}"; $entry->amount(0); $entry->delete_contras; + + # Change key so subsequently added things aren't also void; + # deduplication of tokens to be voided doesn't actually work yet. $entry->attribute(deduplicate => join("/", $self->id, $entry->attribute('addon_id'))); }