Optional extra questions after 'deposit'

Made for Bitlair but PAY ATTENTION... the IBAN in this repo is RevSpace's ;)
This commit is contained in:
Juerd Waalboer 2018-07-22 22:39:26 +02:00
parent b31b95ca37
commit 2fbc833011
2 changed files with 75 additions and 10 deletions

31
plugins/deposit_methods Executable file
View file

@ -0,0 +1,31 @@
#!perl
sub command { NEXT }
sub hook_deposit_methods {
my ($class, $hash) = @_;
print <<"END";
Please type one of the following:
'iban': IBAN transfer (NL 69 ABNA 0431 1582 07)
'cash': Cash in the cash box
'reimburse': Reimbursement of expenses agreed upon in advance
Note: we require an invoice or receipt with this exact amount!
'other': Provide a manual description
END
%$hash = (
iban => { description => "Deposit (IBAN transfer)" },
cash => { description => "Deposit (Cash)" },
other => { description => "Deposit (%s)", prompts => [ "Description" ] },
reimburse => {
description => "Reimbursement (%s, approval: %s)",
prompts => [
"Please provide a short description",
"Which board member gave approval?",
],
},
);
}