currency change done automatically from now on

This commit is contained in:
Priec
2026-09-06 19:43:56 +02:00
parent 75a2598f14
commit 812c4c3f32
6 changed files with 20 additions and 7 deletions

View File

@@ -360,6 +360,7 @@ message ConfigureAccountingPeriodRequest {
message CloseAccountingPeriodRequest {
int64 period_id = 1;
string revaluation_preview = 2;
}
message ReopenAccountingPeriodRequest {
@@ -409,6 +410,7 @@ message AccountingPeriod {
message ListPeriodBalancesRequest {
int64 period_id = 1;
bool preview_revaluation = 2;
}
message PeriodBalance {
@@ -440,6 +442,9 @@ message PeriodDenominationBalance {
message ListPeriodBalancesResponse {
repeated PeriodBalance balances = 1;
repeated PeriodDenominationBalance denomination_balances = 2;
// JSON array of proposed valuations for an open period, or the frozen
// evidence for a closed period. Pass the open-period value unchanged to close.
string revaluation_preview = 3;
}
message GetTrialBalanceRequest {

Binary file not shown.

View File

@@ -368,10 +368,12 @@ pub struct ConfigureAccountingPeriodRequest {
pub period_end: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CloseAccountingPeriodRequest {
#[prost(int64, tag = "1")]
pub period_id: i64,
#[prost(string, tag = "2")]
pub revaluation_preview: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
@@ -450,6 +452,8 @@ pub struct AccountingPeriod {
pub struct ListPeriodBalancesRequest {
#[prost(int64, tag = "1")]
pub period_id: i64,
#[prost(bool, tag = "2")]
pub preview_revaluation: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
@@ -500,6 +504,10 @@ pub struct ListPeriodBalancesResponse {
pub balances: ::prost::alloc::vec::Vec<PeriodBalance>,
#[prost(message, repeated, tag = "2")]
pub denomination_balances: ::prost::alloc::vec::Vec<PeriodDenominationBalance>,
/// JSON array of proposed valuations for an open period, or the frozen
/// evidence for a closed period. Pass the open-period value unchanged to close.
#[prost(string, tag = "3")]
pub revaluation_preview: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]