Skip to content

Commit 9f91f82

Browse files
committed
Fix Formatting of Value per Item
1 parent 237090e commit 9f91f82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/items/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</tr>
4646
<tr>
4747
<th>Value Per Item</th>
48-
<td>$<%= @item.value_in_dollars || 0 %></td>
48+
<td><%= dollar_value(@item.value_in_cents || 0 ) %></td>
4949
</tr>
5050
<tr>
5151
<th>Quantity per Individual</th>

spec/requests/items_requests_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
expect(response.body).to include('NDBN Reporting Category')
349349
expect(response.body).to include('Adult Incontinence')
350350
expect(response.body).to include('Value Per Item')
351-
expect(response.body).to include('$200.0')
351+
expect(response.body).to include('$200.00')
352352
expect(response.body).to include('Quantity per Individual')
353353
expect(response.body).to include('2000')
354354
expect(response.body).to include('On hand minimum quantity')

0 commit comments

Comments
 (0)