statiegeld_tokens: add comment to explain rationale
This commit is contained in:
parent
0e1aa77fe5
commit
ba6fa8e305
1 changed files with 3 additions and 0 deletions
|
@ -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')));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue