accounts renamed to ledger_accounts from now on
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user