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"
This commit is contained in:
Matt-Yorkley
2020-11-07 23:31:32 +00:00
parent 63fb46f440
commit 9de3370a8a

View File

@@ -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