web aliasing of accounting and others

This commit is contained in:
Priec
2026-08-13 19:05:41 +02:00
parent 6c15fcedc8
commit 8662b00ccf
7 changed files with 161 additions and 33 deletions

View File

@@ -1095,6 +1095,9 @@ pub(crate) mod tests {
generated_column("tax_point_date", "date", false),
generated_column("debit", "money", true),
generated_column("credit", "money", true),
// The foreign key to the profile's accounts, which the
// backend reports with the rest of them.
generated_column("account", "link(accounts)", false),
],
..compound("accounting")
},
@@ -1586,11 +1589,11 @@ pub(crate) mod tests {
.iter()
.map(|generated| generated.name.as_str())
.collect::<Vec<_>>(),
["name", "tax_point_date", "debit", "credit"]
["name", "tax_point_date", "debit", "credit", "account"]
);
draft.add_from_inputs().unwrap();
assert_eq!(draft.generated_columns_of(0).len(), 4);
assert_eq!(draft.generated_columns_of(0).len(), 5);
// DEBIT and CREDIT are the two kept in the declared currency.
assert_eq!(
draft