proto rename for migrating profile to a new year

This commit is contained in:
Priec
2026-08-04 16:17:56 +02:00
parent caf44c28df
commit c2002c7da3
3 changed files with 18 additions and 14 deletions

View File

@@ -433,16 +433,18 @@ message OpeningBalanceAccountMapping {
string created_by_user_id = 14; string created_by_user_id = 14;
} }
// A predecessor account still holding value that no mapping carries into the // A portion of a predecessor account's value that no mapping carries into the
// target period. Closing the target period drops these balances silently, so // target period. Closing the target period drops this value, so each entry must
// each one is either an account left to map or one deliberately closed out. // either be covered by a broader mapping or deliberately closed out.
message UnmappedSourceAccount { message UnmappedSourceBalance {
int64 source_period_id = 1; int64 source_period_id = 1;
string source_profile_name = 2; string source_profile_name = 2;
repeated string source_account_segments = 3; repeated string source_account_segments = 3;
string currency = 4; string currency = 4;
// Signed balance uses the debit-positive convention, and is never zero. // Signed portion not covered by a mapping, using the debit-positive
string closing_balance = 5; // 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; OpeningBalanceStatus status = 6;
} }
@@ -453,5 +455,5 @@ message ListOpeningBalanceAccountsResponse {
// account path. Populated once the period carries balances by explicit // account path. Populated once the period carries balances by explicit
// mapping only, which happens when the predecessor belongs to another // mapping only, which happens when the predecessor belongs to another
// profile or when the period has at least one mapping of its own. // 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;
} }

Binary file not shown.

View File

@@ -476,11 +476,11 @@ pub struct OpeningBalanceAccountMapping {
#[prost(string, tag = "14")] #[prost(string, tag = "14")]
pub created_by_user_id: ::prost::alloc::string::String, pub created_by_user_id: ::prost::alloc::string::String,
} }
/// A predecessor account still holding value that no mapping carries into the /// A portion of a predecessor account's value that no mapping carries into the
/// target period. Closing the target period drops these balances silently, so /// target period. Closing the target period drops this value, so each entry must
/// each one is either an account left to map or one deliberately closed out. /// either be covered by a broader mapping or deliberately closed out.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnmappedSourceAccount { pub struct UnmappedSourceBalance {
#[prost(int64, tag = "1")] #[prost(int64, tag = "1")]
pub source_period_id: i64, pub source_period_id: i64,
#[prost(string, tag = "2")] #[prost(string, tag = "2")]
@@ -491,9 +491,11 @@ pub struct UnmappedSourceAccount {
>, >,
#[prost(string, tag = "4")] #[prost(string, tag = "4")]
pub currency: ::prost::alloc::string::String, 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")] #[prost(string, tag = "5")]
pub closing_balance: ::prost::alloc::string::String, pub unmapped_balance: ::prost::alloc::string::String,
#[prost(enumeration = "OpeningBalanceStatus", tag = "6")] #[prost(enumeration = "OpeningBalanceStatus", tag = "6")]
pub status: i32, pub status: i32,
} }
@@ -506,7 +508,7 @@ pub struct ListOpeningBalanceAccountsResponse {
/// mapping only, which happens when the predecessor belongs to another /// mapping only, which happens when the predecessor belongs to another
/// profile or when the period has at least one mapping of its own. /// profile or when the period has at least one mapping of its own.
#[prost(message, repeated, tag = "2")] #[prost(message, repeated, tag = "2")]
pub unmapped_source_accounts: ::prost::alloc::vec::Vec<UnmappedSourceAccount>, pub unmapped_source_balances: ::prost::alloc::vec::Vec<UnmappedSourceBalance>,
} }
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)] #[repr(i32)]