invoice + some table name thing

This commit is contained in:
Priec
2026-09-02 12:03:12 +02:00
parent 56a1e855f5
commit 8acc8867ac
7 changed files with 42 additions and 4 deletions

View File

@@ -129,6 +129,16 @@ message TypstTemplateVersion {
string created_at = 8;
string input_table_name = 9;
repeated string field_paths = 10;
repeated TypstTemplateFieldBinding field_bindings = 11;
}
// One profile-specific source mapping for an enabled template version.
message TypstTemplateFieldBinding {
string field_path = 1;
string collection_path = 2;
string column_name = 3;
string source_table_name = 4;
string source_column_name = 5;
}
message GetTypstTemplateVersionResponse {

View File

@@ -216,6 +216,11 @@ message InvoiceTemplateFieldBinding {
string collection_path = 2;
string column_name = 3;
InvoiceTemplateAccountingRole accounting_role = 4;
// Optional source reached through column_name when that column is a LINK.
// Both names are empty for a value stored directly on the invoice table.
string source_table_name = 5;
string source_column_name = 6;
}
// One physical dynamic table created for an invoice template scope. The root