|
@@ -32,6 +32,7 @@ display_map = {
|
|
|
'price': lambda x: f'{x:.4f}',
|
|
|
'quantity': lambda x: f'{x:.2f}' if x is not None else None,
|
|
|
'organic': lambda x: 'yes' if x else 'no',
|
|
|
+ 'tags': lambda x: '' if not x else x,
|
|
|
}
|
|
|
display_mapper: Callable[
|
|
|
[Any, str], str
|
|
@@ -64,7 +65,7 @@ def get_session_transactions(cursor, statement, display):
|
|
|
'id', 'ts', 'store', 'code', 'quantity',
|
|
|
], axis=1).to_string(header=[
|
|
|
'Description', 'Volume', 'Unit', 'Price', '$/unit', 'Total',
|
|
|
- 'Group', 'Category', 'Product', 'Organic',
|
|
|
+ 'Group', 'Category', 'Product', 'Organic', 'Tags'
|
|
|
], justify='justify-all', max_colwidth=60, index=False)
|
|
|
|
|
|
|