diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-20 08:29:53 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-20 08:29:53 +0200 |
| commit | fdc74456a98fe9076ff5d029b37cdf5fdd18b1d1 (patch) | |
| tree | 70e5520d8a2a0ae618d5a8df82f01bde66381d98 /src/ui | |
| parent | 82f783595f654b62ce57a7cfb537d23efce7affc (diff) | |
nl tax tests
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/ui_invoices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, "%"); |
