accounts renamed to ledger_accounts from now on

This commit is contained in:
Priec
2026-08-17 19:07:36 +02:00
parent d3b2f14fd2
commit 444ca26d47
10 changed files with 16 additions and 16 deletions

View File

@@ -1040,7 +1040,7 @@ mod tests {
let error = draft.validate(crate::i18n::Locale::default()).unwrap_err();
assert!(error.contains("38 characters"), "{error}");
draft.table_name = "accounts".to_string();
draft.table_name = "ledger_accounts".to_string();
assert!(draft.validate(crate::i18n::Locale::default()).is_err());
draft.table_name = "general_ledger".to_string();
assert!(draft.validate(crate::i18n::Locale::default()).is_err());

View File

@@ -98,7 +98,7 @@ pub(crate) async fn load_page(
.into_iter()
// The profile's ledger accounts are not a link target of their own: an
// ACCOUNTING column is how a row is posted to one.
.filter(|table| table.name != crate::schema::ACCOUNTS_TABLE)
.filter(|table| table.name != crate::schema::LEDGER_ACCOUNTS_TABLE)
.map(|table| RelationTableOption {
name: table.name,
global: table.global,