diff --git a/plugins/repeat b/plugins/repeat index 4cb87fe..8a13853 100644 --- a/plugins/repeat +++ b/plugins/repeat @@ -1,7 +1,7 @@ #!perl -HELP "*, x, x, *" => "Set quantity of previous/next product"; -HELP "-, +" => "Decrease/increase quantity of previous product"; +HELP "x, *" => "Set quantity of previous/next product"; +HELP "-, +, *, x" => "Change quantity of previous product"; my $err_stacked = "Stacked repetition is not supported."; my $err_pfand = "Plugins 'pfand' and 'repeat' cannot be combined."; @@ -60,12 +60,6 @@ sub command($self, $cart, $command, @) { $self->{op} = $op; return "$op how many?", \&plusminus; } - - if ($last->has_attribute('is_withdrawal')) { - $lhs = $last->{amount}->abs->float; - $lhs == int $lhs or return REJECT, "Repeat only works on integers."; - $cart->delete($last); - } } if ($lhs) {