Allow withdrawing 0.00 because it can be useful.

This commit is contained in:
Juerd Waalboer 2013-02-26 12:58:15 +01:00
parent 4995e84b83
commit 2575468cf3

View file

@ -5,7 +5,8 @@ HELP "<amount>" => "Withdraw or enter price manually";
sub command {
my ($self, $cart, $command) = @_;
my $amount = parse_amount($command) or return NEXT;
my $amount = parse_amount($command);
defined $amount or return NEXT;
$cart->add(undef, -$amount, "Withdrawal or unlisted product");