summaryrefslogtreecommitdiff
path: root/src/ui/ui_settings.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-09-06 17:52:54 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-09-06 17:52:54 +0200
commit17e035839a19a8b10d329c28ccaa44ff608d3a33 (patch)
treeac1e8a9bd087d24c695d07fa492fe2d729a08b2e /src/ui/ui_settings.cpp
parent68d0ef1586a90ddef6d0cef7ebd593828282c76a (diff)
peppol file generation work
Diffstat (limited to 'src/ui/ui_settings.cpp')
-rw-r--r--src/ui/ui_settings.cpp5
1 files changed, 4 insertions, 1 deletions
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.