Skip to content

Commit 70767a7

Browse files
committed
Improve conversion calculation, formatting
o Move all conversion fulfilment to moment Invoice is iterated, to avoid failing on bad conversions at Invoice construction time. o Remove unnecessary padding from tabulate
1 parent e994c4d commit 70767a7

File tree

3 files changed

+261
-214
lines changed

3 files changed

+261
-214
lines changed

slip39/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
# names.
183183
INVOICE_FORMAT = 'totalize' # 'presto' # 'orgtbl'
184184
INVOICE_ROWS = 60 # rows on invoice; each page, about 1/2 that number of line-items
185-
INVOICE_DESCRIPTION_MAX = 56
185+
INVOICE_DESCRIPTION_MAX = 48 # This may seem low; full-precision Prices, 8-dec. Cryptos need room
186186
INVOICE_CURRENCY = "USD"
187187
INVOICE_PROXIES = {
188188
"USD": "USDC",

0 commit comments

Comments
 (0)