From 17e035839a19a8b10d329c28ccaa44ff608d3a33 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 6 Sep 2025 17:52:54 +0200 Subject: peppol file generation work --- src/ui/ui_settings.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ui/ui_settings.cpp') diff --git a/src/ui/ui_settings.cpp b/src/ui/ui_settings.cpp index 1d6a5f4..dea58ec 100644 --- a/src/ui/ui_settings.cpp +++ b/src/ui/ui_settings.cpp @@ -107,7 +107,10 @@ static void ui_draw_vat_rates() // Column 1: description of tax bracket. Is only displayed on shared tax brackets for clarity. ImGui::TableNextRow(); ImGui::TableSetColumnIndex(0); - ImGui::Text(can_be_modified ? "" : localize(c.description)); + + char category_code_desc[MAX_LEN_LONG_DESC]; + snprintf(category_code_desc, MAX_LEN_LONG_DESC, "taxcategory.%s", c.category_code); + ImGui::Text(can_be_modified ? "" : localize(category_code_desc)); // Column 2: When editing, show input for new rate. Else we display the stored rate and check for modify request. -- cgit v1.2.3-70-g09d2