automatic accounting - removing deprecacy/legacy
This commit is contained in:
@@ -104,9 +104,10 @@ impl CreateTableForm {
|
||||
}),
|
||||
);
|
||||
|
||||
let has_money = columns
|
||||
.iter()
|
||||
.any(|column| column.field_type.eq_ignore_ascii_case("money"));
|
||||
let has_money = columns.iter().any(|column| {
|
||||
column.field_type.eq_ignore_ascii_case("money")
|
||||
|| column.field_type.eq_ignore_ascii_case("accounting")
|
||||
});
|
||||
let base_currency = self.base_currency.trim().to_ascii_uppercase();
|
||||
if has_money && base_currency.is_empty() {
|
||||
return Err("A base currency is required when a MONEY column is used.".to_string());
|
||||
|
||||
@@ -184,7 +184,6 @@ fn row_for_table(table: &ImportTable, positions: &[(usize, String)], row: &[Stri
|
||||
}
|
||||
Ok(PostTableDataBulkRow {
|
||||
data,
|
||||
journal_id: None,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user