From 9de3370a8af6aa5ae7a2faa2dd7d28f8f4cb73ad Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 7 Nov 2020 23:31:32 +0000 Subject: [PATCH] Fix precision in adjustment form display The tests here were looking for values with a format like "10.00" but the output had changed to "10.0" --- app/views/spree/admin/adjustments/_edit_form.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/adjustments/_edit_form.html.haml b/app/views/spree/admin/adjustments/_edit_form.html.haml index 5ca71ff9f7..918a9b5b6f 100644 --- a/app/views/spree/admin/adjustments/_edit_form.html.haml +++ b/app/views/spree/admin/adjustments/_edit_form.html.haml @@ -8,7 +8,8 @@ .four.columns = f.field_container :included_tax do = f.label :included_tax, t(:included_tax) - = text_field :adjustment, :included_tax, disabled: true, class: 'fullwidth' + = f.text_field :included_tax, disabled: true, class: 'fullwidth', + value: number_with_precision(f.object.included_tax, precision: 2) = f.error_message_on :included_tax .omega.four.columns