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:
parent
ff4ffd16f8
commit
0e1aa77fe5
2 changed files with 11 additions and 9 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue