currency per column in table definition
This commit is contained in:
@@ -70,6 +70,7 @@ mod tests {
|
||||
indexed: true,
|
||||
quantity_ledger: false,
|
||||
money_mode: MoneyMode::Exact,
|
||||
currency: String::new(),
|
||||
});
|
||||
draft.set_available_relation_tables(vec!["customer".to_string()]);
|
||||
draft.cycle_link_mode(0);
|
||||
@@ -126,7 +127,7 @@ mod tests {
|
||||
state.draft.column_type_input = "gtin".to_string();
|
||||
assert!(render_builder(&state).contains(r#"name="gtin_type_input""#));
|
||||
|
||||
// Money reveals rounding, and the base currency becomes editable.
|
||||
// Money reveals its currency and rounding inputs.
|
||||
state.draft.column_type_input = "money".to_string();
|
||||
let html = render_builder(&state);
|
||||
assert!(html.contains(r#"name="column_rounding_input""#));
|
||||
|
||||
Reference in New Issue
Block a user