Commit graph

184 commits

Author SHA1 Message Date
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
Juerd Waalboer
c7b66a1084 Fix revspace_mqtt plugin after change to new api 2019-11-05 01:49:02 +01:00
Juerd Waalboer
9e5ac6eb06 Update documentation on deprecations 2019-11-05 01:36:21 +01:00
Juerd Waalboer
f9554ec463 Move old stuff to bottom of source file 2019-11-05 01:35:22 +01:00
Juerd Waalboer
89885a29c1 Remove last references to "EUR"
Except the one in the EPC QR code, because the specification says
that EUR is mandatory.
2019-11-05 01:33:31 +01:00
Juerd Waalboer
63f81e3711 Change logging of quantity: replace EUR field 2019-11-05 01:32:42 +01:00
Juerd Waalboer
1cbc906f1e Further update to new ledger-like internals 2019-11-05 00:57:39 +01:00
Juerd Waalboer
5a7a7184dd Refactor cart to use "entries" instead of "items" 2019-11-04 21:53:07 +01:00
Juerd Waalboer
ed03f09414 Class for transaction (cart) entries. 2019-11-04 19:44:08 +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
e00fc00664 Fix bug: warning when there is no acting user 2019-10-01 02:40:00 +02:00
Juerd Waalboer
9797e3c1c8 Add revspace specific plugins
Written by several authors. There is no log...
2019-09-23 21:12:03 +02:00
Juerd Waalboer
b6855df288 Make balance zero-crossing timestamp accessible 2019-09-21 01:38:07 +02:00