revbank/plugins/withdraw
2013-02-26 12:58:15 +01:00

14 lines
284 B
Perl
Executable file

#!perl
HELP "<amount>" => "Withdraw or enter price manually";
sub command {
my ($self, $cart, $command) = @_;
my $amount = parse_amount($command);
defined $amount or return NEXT;
$cart->add(undef, -$amount, "Withdrawal or unlisted product");
return ACCEPT;
}