diff --git a/common/proto/accounting.proto b/common/proto/accounting.proto index c9310f4f..18d5b3ad 100644 --- a/common/proto/accounting.proto +++ b/common/proto/accounting.proto @@ -122,7 +122,9 @@ message PostJournalRequest { message JournalLineInput { JournalSide side = 1; - string account_code = 2; + // Parsed account path segments. The client owns presentation parsing; the + // server accepts no delimiter-encoded account string. + repeated string account_segments = 2; string amount = 3; string description = 4; } diff --git a/common/src/proto/descriptor.bin b/common/src/proto/descriptor.bin index a869dc61..bc7427fa 100644 Binary files a/common/src/proto/descriptor.bin and b/common/src/proto/descriptor.bin differ diff --git a/common/src/proto/komp_ac.accounting.rs b/common/src/proto/komp_ac.accounting.rs index 37e659ea..0fa81515 100644 --- a/common/src/proto/komp_ac.accounting.rs +++ b/common/src/proto/komp_ac.accounting.rs @@ -40,8 +40,10 @@ pub struct PostJournalRequest { pub struct JournalLineInput { #[prost(enumeration = "JournalSide", tag = "1")] pub side: i32, - #[prost(string, tag = "2")] - pub account_code: ::prost::alloc::string::String, + /// Parsed account path segments. The client owns presentation parsing; the + /// server accepts no delimiter-encoded account string. + #[prost(string, repeated, tag = "2")] + pub account_segments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, tag = "3")] pub amount: ::prost::alloc::string::String, #[prost(string, tag = "4")] diff --git a/server b/server index c637ba78..4204f743 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit c637ba7883e613ffb346ed6967a8add06139a676 +Subproject commit 4204f743738302176cd0e870249a2afbd2fed41a