move from profile to profile with accounts

This commit is contained in:
Priec
2026-08-04 16:03:20 +02:00
parent cfa807f864
commit caf44c28df
4 changed files with 47 additions and 1 deletions

Binary file not shown.

View File

@@ -476,10 +476,37 @@ 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.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UnmappedSourceAccount {
#[prost(int64, tag = "1")]
pub source_period_id: i64,
#[prost(string, tag = "2")]
pub source_profile_name: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "3")]
pub source_account_segments: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
#[prost(string, tag = "4")]
pub currency: ::prost::alloc::string::String,
/// Signed balance uses the debit-positive convention, and is never zero.
#[prost(string, tag = "5")]
pub closing_balance: ::prost::alloc::string::String,
#[prost(enumeration = "OpeningBalanceStatus", tag = "6")]
pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOpeningBalanceAccountsResponse {
#[prost(message, repeated, tag = "1")]
pub mappings: ::prost::alloc::vec::Vec<OpeningBalanceAccountMapping>,
/// Empty while the target period still inherits every predecessor balance by
/// 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.
#[prost(message, repeated, tag = "2")]
pub unmapped_source_accounts: ::prost::alloc::vec::Vec<UnmappedSourceAccount>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]