Bug 15157: Add my $amount and fix options

Variable my $amount was missing. Also option
amount has to be declared as integer and
option confirm is no longer string.

Sponsored by: Koha-Suomi Oy

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

[EDIT] Run perltidy to resolve one line.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Emmi Takkinen 2022-02-02 15:32:00 +02:00 committed by Tomas Cohen Arazi
parent 4eb84b0dd7
commit ac0c8cf181
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -77,11 +77,11 @@ use Koha::Patron::Debarments;
use C4::Log qw( cronlogaction );
my ( $help, $confirm, $message, $expiration, $file );
my ( $amount, $help, $confirm, $message, $expiration, $file );
GetOptions(
'a|amount' => \$amount,
'a|amount:i' => \$amount,
'h|help' => \$help,
'c|confirm:s' => \$confirm,
'c|confirm' => \$confirm,
'm|message:s' => \$message,
'f|file:s' => \$file,
'e|expiration:s' => \$expiration,