From fdc74456a98fe9076ff5d029b37cdf5fdd18b1d1 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 20 Oct 2025 08:29:53 +0200 Subject: nl tax tests --- src/ui/ui_invoices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp index 18acc59..d932bfd 100644 --- a/src/ui/ui_invoices.cpp +++ b/src/ui/ui_invoices.cpp @@ -97,11 +97,11 @@ void draw_invoice_items_form(invoice* invoice, bool outgoing) ImGui::TableSetColumnIndex(3); ImGui::PushItemWidth(-1); - ImGui::InputFloat("##price", &item.net_per_item, 0.0f, 0.0f, "%.3f"); + ImGui::InputFloat("##price", &item.net_per_item, 0.0f, 0.0f, "%.2f"); ImGui::PopItemWidth(); ImGui::TableSetColumnIndex(4); - ImGui::InputFloat("##discount", &item.discount, 0.0f, 0.0f, "%.3f"); + ImGui::InputFloat("##discount", &item.discount, 0.0f, 0.0f, "%.2f"); ImGui::SameLine(); ImGui::FormToggleCombo(&item.discount_is_percentage, item.currency, "%"); -- cgit v1.2.3-70-g09d2