From 2575468cf30b95b75be944f6f71aa12807d3c727 Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Tue, 26 Feb 2013 12:58:15 +0100 Subject: [PATCH] Allow withdrawing 0.00 because it can be useful. --- plugins/withdraw | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/withdraw b/plugins/withdraw index 40cbb42..8c2586a 100755 --- a/plugins/withdraw +++ b/plugins/withdraw @@ -5,7 +5,8 @@ HELP "" => "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");