fix(gui): needs-attention grows to fit with 'show N more' instead of a hidden inner scroll; receipt wording follows the policy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MtYEaR6M6Ybdhm6X98BWNu
This commit is contained in:
5 files changed
+83
-42
No files matched your search
@@ -316,6 +316,19 @@ impl Books {
|
||||
Ok(books)
|
||||
}
|
||||
|
||||
/// Why an entry needs a receipt, in words: "every entry needs a
|
||||
/// receipt" or "over the $25.00 receipt threshold".
|
||||
pub fn receipt_rule(&self) -> String {
|
||||
if self.receipt_threshold.is_zero() {
|
||||
"every entry needs a receipt".to_string()
|
||||
} else {
|
||||
format!(
|
||||
"over the {} receipt threshold",
|
||||
crate::fmt::dollars(self.receipt_threshold)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn seq(&self) -> u64 {
|
||||
self.journal.len() as u64
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user