Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/dualentry_cli/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 2 additions & 0 deletions tests/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading