Allow withdrawing 0.00 because it can be useful.
This commit is contained in:
parent
4995e84b83
commit
2575468cf3
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue