Commit graph

53 commits

Author SHA1 Message Date
Juerd Waalboer
441bf05fde Bump to v3.4; make all transactions balanced using hidden accounts
See UPGRADING.md for details.
2022-06-11 18:51:26 +02:00
Juerd Waalboer
f262bce57c Split "help" into "help" and "help2"; ditch pager 2022-06-11 16:31:44 +02:00
Juerd Waalboer
a7a5f14e0c Introduce 'withdraw', remove "withdrawal or unlisted" feature.
This should have been done much earlier, but wasn't done for nostalgic reasons.
To new users, it didn't make sense that you could just enter an amount, and
revbank would just accept that as "withdrawal or unlisted product". It existed
for backwards compatibility with the very first revbank version, which didn't
have a product list, and which was not yet used with a barcode scanner. You
would simply enter the amount and your name, and there were no further
statistics.

Nowadays, there are statistics that are messed up if you don't use the product
codes. And some people were looking for a withdrawal command, and try 'take' as
that seems closest to it, but which instead transfers money to another account.

Additionally, some texts were changed for improved clarity. ("Enter username to
pay", when withdrawing, was confusing: one expects money back, not to pay more.)
2022-06-04 02:41:17 +02:00
Juerd Waalboer
eed0db7897 Cleanup: use subroutine signatures, remove deprecated methods.
The signatures feature has been "experimental" since Perl 5.20 (May 2014), but
expected to stay. After 8 years I'm ready to take the risk :)

Have added Perl v5.28 (June 2018) as the minimum requirement, even though the
current revbank should work with 5.20, to see if this bothers any users. Perl
v5.28 is in Debian "buster", which is now oldstable.
2021-12-03 18:00:34 +01:00
Juerd Waalboer
38a0229899 Ditch floating point numbers, use cents instead; bump version to 3.2 2021-12-02 22:18:06 +01:00
Juerd Waalboer
df771e22fd Fix bug where follow-up prompt of second command would split on whitespace
Bug:

    > 2x unlisted 6
    Please provide a short description: bar foo
    foo: No such product, user, or command.

Fixed:

    > 2x unlisted 6
    Please provide a short description: bar foo
    Pending:
    2x {
        6.00 bar foo
    }
    Enter username to pay 12.00; type 'abort' to abort.
2020-09-07 02:27:25 +02:00
Juerd Waalboer
f312b31576 Fix POD/markdown 2020-06-10 21:05:20 +02:00
Juerd Waalboer
c3b0b86c97 No tab-completion for empty input
Old terminal takes about 1 minute to scroll the >9000 options...
2019-11-08 03:44:19 +01:00
Juerd Waalboer
da043ba2df New plugin: beep on error
If you computer beeps, that is. Most revbank setups run on raspberry pi's,
which don't beep...
2019-11-08 03:41:49 +01:00
Juerd Waalboer
5840b7bbac Tiny refactor 2019-11-06 19:23:44 +01:00
Juerd Waalboer
464a6db78c Whitespace tweaks (newlines)
Consistency: empty line before each prompt, but not after.
2019-11-06 19:13:12 +01:00
Juerd Waalboer
bb8c52b593 Do provide final cart when no pending cart was ever shown... 2019-11-06 06:13:18 +01:00
Juerd Waalboer
c9b704adca Make ">" prompt green 2019-11-05 06:16:54 +01:00
Juerd Waalboer
60f413eb73 Change main prompt to "> ".
This shifts the reader's focus to the messages from plugins, such as the
instruction to enter your username to pay.

It also looks nicer next to the new cleaner transaction overviews.
2019-11-05 03:14:41 +01:00
Juerd Waalboer
a16348055f Bump version to 3 :) 2019-11-05 02:04:12 +01:00
Juerd Waalboer
9e5ac6eb06 Update documentation on deprecations 2019-11-05 01:36:21 +01:00
Juerd Waalboer
735009a02d Remove deprecated plugins 'nyan' and 'game' 2019-11-04 19:43:51 +01:00
Juerd Waalboer
d8dfc2cde2 Retry after REJECT: edit bad input instead of aborting 2019-11-03 00:13:43 +01:00
Juerd Waalboer
0baa40b910 Ditch minor part of version number 2019-07-02 04:40:08 +02:00
Juerd Waalboer
9f905b84d5 Abort transaction on SIGINT 2019-07-02 04:38:21 +02:00
Juerd Waalboer
cac85bc6bf Fix indent 2019-06-07 01:25:29 +02:00
Juerd Waalboer
da11114b8f Deprecate nyan, game, and creating users via deposit. 2019-05-15 01:41:27 +02:00
Juerd Waalboer
28e45dc8a2 Document console font requirement for QR code 2019-05-12 22:41:11 +02:00
Juerd Waalboer
4eb3f8ce20 Re-add history feature
Was originally added in 2015 (commit bb8652f4ac89a7453394020a472279809413d10f),
but the line and the commit are nowhere to be found. It may have been lost in
a git merge.
2019-03-14 01:30:35 +01:00
Juerd Waalboer
3ce1874d3a Reset idle timer on character input
Requested by peterbjornx
2018-03-23 01:21:25 +01:00
Juerd Waalboer
b22f281938 Shell-like '-c' for non-interactive commands 2017-03-12 21:19:21 +01:00
Juerd Waalboer
add3100401 New plugin: repeat (undocumented), new hook: "added" 2017-02-19 00:41:20 +01:00
Juerd Waalboer
b0ee7e88bf cwd is no longer in @INC in new perl versions 2017-02-18 22:31:19 +01:00
Juerd Waalboer
8f84891b0c Warn when someone leaves without paying. 2014-01-10 21:20:21 +01:00
Juerd Waalboer
7b088cb175 Tab completion improvements
A plugin can now specify &subroutine in the :Tab attribute; this sub will
be called as a method and can return a list of possible completions.
2013-02-28 16:04:36 +01:00
Juerd Waalboer
c157ea0214 RevBank 2.0, a rewrite. It's plugin based now. 2013-02-26 04:11:13 +01:00
RevBar
478c93cbeb Change 'take' prompt and strip whitespace from input 2011-06-10 01:31:46 +02:00
RevBar
35100c59ef Tab completion for yes/no ;) 2011-06-10 01:23:04 +02:00
RevBar
9b9c255a1c "ABORTING TRANSACTION" in bold + underline 2011-06-10 01:21:28 +02:00
RevBar
7cbedf40ea Commands case insensitive + whitespace allowed around abort 2011-06-10 01:09:36 +02:00
RevBar
f81996e6ac s/logline/printlog/g 2011-06-10 01:05:04 +02:00
RevBar
d91e8c09b6 Prompt decorations 2011-06-10 01:04:26 +02:00
RevBar
976c0e43da Merge branch 'master' of github.com:Juerd/revbank 2011-06-10 00:44:46 +02:00
Juerd Waalboer
56338792e0 Readline support with tab completion 2011-06-10 00:38:14 +02:00
bar
bdc428ff98 Hall of Shame 2011-05-18 02:52:05 +02:00
bar
7d2e4e9c94 data voortaan alleen lokaal: geen git push 2011-05-16 22:03:27 +02:00
bar
213f0d21b8 saldo in bold 2011-04-27 23:50:38 +02:00
bar
6ce1b52230 terminologie klopte niet bij take/deposit 2011-04-27 23:48:17 +02:00
bar
08e95b5730 Irritante melding wegwerken 2011-04-26 19:59:04 +02:00
bar
fa1010d9a0 Probeersel 2011-04-26 19:53:15 +02:00
Juerd Waalboer
296ca0b7d4 Update help 2011-04-26 01:02:05 +02:00
Juerd Waalboer
eda7c77632 Bugfix 2011-04-26 00:45:37 +02:00
Juerd Waalboer
61fa5ae4d0 Vroeg case normaliseren voorkomt bugs. Losse accountnaam laat nu saldo zien. 2011-04-26 00:40:49 +02:00
Juerd Waalboer
c971bd1bb9 Merge branch 'master' of ssh://regulator/home/bar/bar 2011-04-25 23:33:38 +02:00
Juerd Waalboer
ffcf855ddc Newline 2011-04-25 23:32:31 +02:00