typst files stored in the db from now on2

This commit is contained in:
Filipriec
2026-08-29 23:19:53 +02:00
parent 36d401f3a4
commit eb2d6bea5d
9 changed files with 203 additions and 69 deletions

View File

@@ -95,6 +95,7 @@ pub(crate) struct ColumnType {
/// Only choosable while the table is being created.
pub creation_only: bool,
pub allows_quantity_ledger: bool,
pub allows_boolean_ledger: bool,
/// Groups several types behind one choice in the picker; empty when the
/// type stands on its own.
pub group: String,
@@ -1269,6 +1270,7 @@ pub(crate) fn proto_columns(columns: &[ColumnDefinition]) -> Vec<ProtoColumnDefi
MoneyMode::Exact => MoneyRounding::None.into(),
},
quantity_ledger: column.quantity_ledger,
boolean_ledger: 0,
currency: column.currency.clone(),
required: column.required,
})
@@ -1290,6 +1292,7 @@ pub(crate) fn column_catalog(column_types: Vec<ProtoColumnType>) -> ColumnCatalo
requires_currency: column_type.requires_currency,
creation_only: column_type.creation_only,
allows_quantity_ledger: column_type.allows_quantity_ledger,
allows_boolean_ledger: column_type.allows_boolean_ledger,
group: column_type.group,
generated_columns: column_type
.generated_columns