web aliasing of accounting and others
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user