statiegeld_tokens: simplify void

- No more red messages
- Accept "yes" case insensitively
- Change entry description and amount so the voiding is logged, which is
  more code but less complex than passing an attribute to be used during
  checkout.
This commit is contained in:
Juerd Waalboer 2023-02-13 02:44:02 +01:00
parent ff4ffd16f8
commit 0e1aa77fe5
2 changed files with 11 additions and 9 deletions

View file

@ -95,6 +95,10 @@ sub contras($self) {
return map +{ %$_ }, @{ $self->{contras} };
}
sub delete_contras($self) {
$self->{contras} = [];
}
my $HI = "\e[37;1m";
my $LO = "\e[2m";
my $END = "\e[0m";