Juerd Waalboer
21788feb38
Don't log REGISTER anymore
...
It's ~25% of our logfile.
This feature was made so you can theoretically do a replay of the log, which
requires knowing which plugins were active when. But I don't think anyone's
actually doing that because it also requires other info that isn't logged.
2022-01-19 21:51:35 +01:00
Juerd Waalboer
abdcda89c1
Document another caveat
2022-01-19 17:58:18 +01:00
Juerd Waalboer
ec2092ba1b
Add json plugin for machine parseable output
2022-01-19 17:40:05 +01:00
Juerd Waalboer
ec521aef7d
Fix cosmetic issue
2021-12-03 18:28:01 +01:00
Juerd Waalboer
93754dbf60
Fix syntax error
2021-12-03 18:11:37 +01:00
Juerd Waalboer
9edd6e2e77
Delete nonsensical example
...
Was never supposed to be committed :)
2021-12-03 18:08:45 +01: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
1661661ffd
Use amount object directly internally,
...
instead of relying on operator overloading, but keep the ones where direct use
would result in overly messy code.
2021-12-03 03:23:16 +01:00
Juerd Waalboer
58f49cbffb
Restore forced + sign in accounts file (harmless bug)
2021-12-03 02:55:25 +01:00
Juerd Waalboer
9cda968d53
Document ABORT constant as possible return value from hook
...
This feature was introduced way back in commit add31004
.
2021-12-03 01:49:25 +01:00
Juerd Waalboer
6850ed22be
Remove requirement for dummy command method in hook-only plugins
2021-12-03 01:49:11 +01:00
Juerd Waalboer
cf8ce7dc52
Document parse_amount
2021-12-02 23:12:13 +01:00
Juerd Waalboer
f796470a21
README
2021-12-02 23:07:44 +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
9b582d5f9b
Different order needed for new +1/-1 feature
2021-08-10 21:55:03 +02:00
Juerd Waalboer
2f182b34ed
Support +1 and -1
2021-08-10 21:53:24 +02:00
Juerd Waalboer
83caf2c183
This is not a browser
2021-07-28 01:21:48 +02:00
Juerd Waalboer
cbaf86a23e
Support non-repeatable entries
2021-07-28 00:40:36 +02:00
Juerd Waalboer
88cb8f5cb7
Debug
2021-07-28 00:40:23 +02:00
Juerd Waalboer
55fd4f457c
Include transaction id in description
2021-07-27 23:58:55 +02:00
Juerd Waalboer
79cc37e4c6
Add revspace_mollie plugin
2021-07-27 23:24:48 +02: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
ea5d8bd8b5
Merge branch 'master' of github.com:Juerd/revbank
2020-03-01 06:17:27 +01:00
Juerd Waalboer
f7a7a19d8d
Fix #7
2020-03-01 06:16:08 +01:00
Juerd Waalboer
6091db39c7
Merge pull request #12 from xesxen/master
...
Fix the name of hook_checkout_done in Plugins.pod
2020-02-28 21:32:51 +01:00
Wouter
4315f1ecb5
Fix the name of hook_checkout_done in Plugins.pod
2020-02-28 21:29:12 +01:00
Juerd Waalboer
31a1aa5c45
Fix spelling
...
Reported by Noor
2020-02-07 01:36:52 +01:00
Juerd Waalboer
9c3e773e6f
RevSpace balance text update
...
It said that a negative balance is allowed, but this is only true for participants.
2020-01-29 01:13:13 +01:00
Juerd Waalboer
73cfe8c0e4
There is no last item in an empty list
2020-01-29 01:12:06 +01:00
Juerd Waalboer
a0eafa21f5
New plugin: plus
2019-12-13 00:01:01 +01:00
Juerd Waalboer
29b3eea131
market/products: reuse existing entry
2019-12-12 23:16:10 +01: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
354738fc02
New plugin: revspace_ascii
2019-11-07 04:07:31 +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
32e84f3725
Fix that 'changed' would return true just because the attribute existed :)
...
Another option would have been to implement 'delete_attribute'.
2019-11-06 17:43:31 +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
f4eb91a22b
Increase maximum multiplication factor (repeat limit)
...
The limit was mostly imposed because of the actually repeated
lines, which would scroll off the screen. Now that the quantity
is just displayed as a number, I don't really see any technical
reason for a low limit; maybe 200 is still too low.
2019-11-06 03:25:38 +01:00
Juerd Waalboer
1f21d49bb9
Drop details of final transaction
...
They're the same as the last "pending" display, anyway.
2019-11-06 03:24:35 +01:00
Juerd Waalboer
321ada19ae
Fix bug introduced by code order swap
2019-11-06 03:00:58 +01:00
Juerd Waalboer
c9b704adca
Make ">" prompt green
2019-11-05 06:16:54 +01:00
Juerd Waalboer
f1389c8c5c
Fix bug: would eat its own queued entry, resulting in no-op
...
It would work for the first item because the size >= 2 guard prevented the rest
of the sub from running.
2019-11-05 05:42:54 +01:00
Juerd Waalboer
0354b3d740
Tweak whitespace
...
Most amounts will have 1 digit before the decimal point, and
I prefer 4 space indents :)
2019-11-05 05:27:37 +01:00
Juerd Waalboer
1a9044df4f
repeat: prettier placeholder
2019-11-05 03:26:47 +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
7c32eaeb3f
Remove dead code
2019-11-05 02:56:42 +01:00
Juerd Waalboer
a16348055f
Bump version to 3 :)
2019-11-05 02:04:12 +01:00
Juerd Waalboer
08af3442a4
Restore # in logs (external tooling and plugin/users::recent depend on it)
2019-11-05 01:50:02 +01:00