From c2002c7da3769e243ab4043466814c2c87ef9bf5 Mon Sep 17 00:00:00 2001 From: Priec Date: Tue, 4 Aug 2026 16:17:56 +0200 Subject: [PATCH] proto rename for migrating profile to a new year --- common/proto/accounting.proto | 16 +++++++++------- common/src/proto/descriptor.bin | Bin 141097 -> 141228 bytes common/src/proto/komp_ac.accounting.rs | 16 +++++++++------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/common/proto/accounting.proto b/common/proto/accounting.proto index be33939a..4003240d 100644 --- a/common/proto/accounting.proto +++ b/common/proto/accounting.proto @@ -433,16 +433,18 @@ message OpeningBalanceAccountMapping { string created_by_user_id = 14; } -// A predecessor account still holding value that no mapping carries into the -// target period. Closing the target period drops these balances silently, so -// each one is either an account left to map or one deliberately closed out. -message UnmappedSourceAccount { +// A portion of a predecessor account's value that no mapping carries into the +// target period. Closing the target period drops this value, so each entry must +// either be covered by a broader mapping or deliberately closed out. +message UnmappedSourceBalance { int64 source_period_id = 1; string source_profile_name = 2; repeated string source_account_segments = 3; string currency = 4; - // Signed balance uses the debit-positive convention, and is never zero. - string closing_balance = 5; + // Signed portion not covered by a mapping, using the debit-positive + // convention. This is never zero and may be less than the account's + // aggregate closing balance when descendants are mapped separately. + string unmapped_balance = 5; OpeningBalanceStatus status = 6; } @@ -453,5 +455,5 @@ message ListOpeningBalanceAccountsResponse { // account path. Populated once the period carries balances by explicit // mapping only, which happens when the predecessor belongs to another // profile or when the period has at least one mapping of its own. - repeated UnmappedSourceAccount unmapped_source_accounts = 2; + repeated UnmappedSourceBalance unmapped_source_balances = 2; } diff --git a/common/src/proto/descriptor.bin b/common/src/proto/descriptor.bin index e9e23e75a42f2178cb4f94b3c31122d57be909ac..0f01c03114bb7ddbca49fec543892650a39fab10 100644 GIT binary patch delta 773 zcmY*V&ubGw7|rZ#(sZI&Bdw-w$`{*^s3i#gKyNCD7f+2|dXdTQXA;=XEVH|j2-1Up zLh#}rAo$~=5qmSzoYI4W2k|0!@$6q9`0aL=QWyr_eDA&Qy?On$`0iVgi(h}<^ZP56 z50+SbsCK09qubVzaqy1xq;hbyP+1&3TY0&DK`cZm;Zf&sb}kRBIlpx(dmr6c{XUn@ zMyIQn)>4nHrHpaRdc0ko3bFTsiMet+6Lp^#FDABiD_6Fs z+`5(s3DN%&JPb&XwoG}ckxfZD<;}|(q%Bi^<*ImPQNp@K)7ki+-(;=Xkp&}*881Pq WVKIrY7cr4dMFSUf0^dNI=AAw4O0$U%?#3H$`UY~SKId=*nzDaSv8Th%Nvu~ zadKns`;>i>(p8Sou3TA6cJXYo(wID-={9D%|7+>pYkU#n@C6g6EVEEJ?k%r>9 z!Hs#VcnF2hz-qr3u3;yVu5_fevqg^uoZU?UJ&(ds}LW*_Il$A4nAkdrPQ8 zfzoz743$J*qx54>l1Keh1@d8xaftL2NDVaCJ5U$dr7d9?^W3nEPrw_sTe#_OE9vGP z*ws>F>?J?l`u-C6+_7EBM)507J%+yfIk&Urj%@M{}pA!>l8_o8CU&t=a zVu~|4QnU}}8aYz557-nF`}Aimt9S&3V_>2pz-ZCv5tJ^c+7>TZ#sK(g8YH4O5uPka zNG$`XEabNo9YA{}M`{_s)obE4rwv=2Zim2c)?RX4-|57A_}KG%&v&bAnT~TMBjpe( Xm^oM)YF^Kgl*4DE=;J72qYr-pnx>#V diff --git a/common/src/proto/komp_ac.accounting.rs b/common/src/proto/komp_ac.accounting.rs index 65a336ea..49894310 100644 --- a/common/src/proto/komp_ac.accounting.rs +++ b/common/src/proto/komp_ac.accounting.rs @@ -476,11 +476,11 @@ pub struct OpeningBalanceAccountMapping { #[prost(string, tag = "14")] pub created_by_user_id: ::prost::alloc::string::String, } -/// A predecessor account still holding value that no mapping carries into the -/// target period. Closing the target period drops these balances silently, so -/// each one is either an account left to map or one deliberately closed out. +/// A portion of a predecessor account's value that no mapping carries into the +/// target period. Closing the target period drops this value, so each entry must +/// either be covered by a broader mapping or deliberately closed out. #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] -pub struct UnmappedSourceAccount { +pub struct UnmappedSourceBalance { #[prost(int64, tag = "1")] pub source_period_id: i64, #[prost(string, tag = "2")] @@ -491,9 +491,11 @@ pub struct UnmappedSourceAccount { >, #[prost(string, tag = "4")] pub currency: ::prost::alloc::string::String, - /// Signed balance uses the debit-positive convention, and is never zero. + /// Signed portion not covered by a mapping, using the debit-positive + /// convention. This is never zero and may be less than the account's + /// aggregate closing balance when descendants are mapped separately. #[prost(string, tag = "5")] - pub closing_balance: ::prost::alloc::string::String, + pub unmapped_balance: ::prost::alloc::string::String, #[prost(enumeration = "OpeningBalanceStatus", tag = "6")] pub status: i32, } @@ -506,7 +508,7 @@ pub struct ListOpeningBalanceAccountsResponse { /// mapping only, which happens when the predecessor belongs to another /// profile or when the period has at least one mapping of its own. #[prost(message, repeated, tag = "2")] - pub unmapped_source_accounts: ::prost::alloc::vec::Vec, + pub unmapped_source_balances: ::prost::alloc::vec::Vec, } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)]