modules can be enabled for global profile also from now on

This commit is contained in:
Priec
2026-09-12 22:40:27 +02:00
parent 905c5a622b
commit 4cb551eeca
5 changed files with 10 additions and 9 deletions

View File

@@ -110,20 +110,22 @@ service TableDefinition {
message ModuleScope {
oneof target {
komp_ac.common.Empty global = 1;
komp_ac.common.Empty defaults = 1;
string profile_name = 2;
}
}
// A missing profile returns the defaults that would be copied on ordinary creation.
message GetModuleConfigurationRequest {
ModuleScope scope = 1;
}
// Profile updates require an existing profile. Defaults affect future profiles only.
message SetModuleConfigurationRequest {
ModuleScope scope = 1;
repeated string enabled_modules = 2;
// Initializes an existing profile's bookkeeping currency. Empty leaves it unchanged.
// Global scope and changes to an already configured currency are rejected.
// Defaults scope and changes to an already configured currency are rejected.
string accounting_currency = 3;
}
@@ -131,7 +133,6 @@ message ModuleConfiguration {
ModuleScope scope = 1;
repeated string available_modules = 2;
repeated string selected_modules = 3;
repeated string inherited_modules = 4;
repeated string effective_modules = 5;
string accounting_currency = 6;
}