accounting period

This commit is contained in:
Priec
2026-07-26 17:29:54 +02:00
parent 8146bce654
commit 5f910fb071
7 changed files with 106 additions and 6 deletions

View File

@@ -49,6 +49,20 @@ pub struct PostTableDefinitionRequest {
/// valid; otherwise this must name one of the user-defined columns above.
#[prost(string, tag = "7")]
pub row_display_column: ::prost::alloc::string::String,
/// ISO-4217 currency the profile keeps its accounting in. A profile is one
/// accounting entity and keeps one set of books, so this is required only when
/// the request creates the profile, and is ignored afterwards. It is unrelated
/// to base_currency: tables may hold money in any currency, and amounts convert
/// to this one when they reach the ledger.
#[prost(string, tag = "8")]
pub accounting_currency: ::prost::alloc::string::String,
/// Month the profile's fiscal year begins, 1-12. Like accounting_currency,
/// this describes the entity rather than the table, so it is required only
/// when the request creates the profile and ignored afterwards. January means
/// the calendar year; any other month means a business year (hospodársky
/// rok), which may be used only after notifying the tax office.
#[prost(uint32, tag = "9")]
pub fiscal_year_start_month: u32,
}
/// Defines the input for explicitly creating a table backed by one invoice
/// template. typst_source must contain exactly one declaration of the form: