diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f72176..9fe986b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [Unreleased] +- Line-item tables label the quantity column Quantity - Update the CLI greeting logo to DualEntry - Add `export-jobs` commands (`create`, `list`, `get`, `wait`) for on-demand destination data refreshes via the public API diff --git a/src/dualentry_cli/output.py b/src/dualentry_cli/output.py index 50e707d..7162c53 100644 --- a/src/dualentry_cli/output.py +++ b/src/dualentry_cli/output.py @@ -232,7 +232,7 @@ def _transaction_detail( items_table = Table(show_lines=True, title="Line Items") items_table.add_column("#", justify="right", style="dim", width=4) items_table.add_column("Description", min_width=30) - items_table.add_column("Qty", justify="right", width=10) + items_table.add_column("Quantity", justify="right", width=12) items_table.add_column("Rate", justify="right", width=14) items_table.add_column("Amount", justify="right", width=14, style="bold") diff --git a/tests/test_output.py b/tests/test_output.py index aa3b82d..c53a5f9 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -105,6 +105,8 @@ def test_invoice_detail_also_warns(self, capsys): } format_output(data, resource="invoice") captured = capsys.readouterr() + assert "Quantity" in captured.out + assert "Qty" not in captured.out assert "Warning: showing 1 of 150 lines. The API caps inline lines at 100." in captured.out def test_json_keeps_flags_and_skips_warning(self, capsys):