
Undoes 714b337
because github seems to no longer require chmod +x
for syntax highlighting extensionless files.
15 lines
316 B
Perl
15 lines
316 B
Perl
#!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",
|
|
{ is_withdrawal => 1 });
|
|
|
|
return ACCEPT;
|
|
}
|