templates are per profile from the global table

This commit is contained in:
Filipriec
2026-08-30 01:14:55 +02:00
parent d4781698fd
commit 80d61760a2
11 changed files with 397 additions and 3831 deletions

View File

@@ -157,23 +157,12 @@ message GeneratedColumnAlias {
}
// Defines the input for explicitly creating tables backed by one invoice
// template. typst_source must contain exactly one field declaration:
//
// #let komp_ac_fields = (
// "sidlo.nazov",
// "people[].name",
// "people[].requested_quantity",
// )
//
// A path matching an existing profile table and column becomes a reference to
// that table. Otherwise its final segment becomes a local TEXT column for an
// administrator to refine later. Every [] creates a child table with a required
// FK to its immediate generated parent.
// Enables a stored global Typst template for one profile and immediately
// creates the input-table family declared by that template.
message CreateInvoiceTemplateTableRequest {
string profile_name = 1;
string table_name = 2;
string typst_source = 3;
repeated string row_display_columns = 5;
string template_name = 2;
repeated string row_display_columns = 3;
}
// One physical dynamic table created for an invoice template scope. The root