|
2 | 2 | <%= render component('ui/panel').new(title: t('.summary')) do %> |
3 | 3 | <%= render component('ui/details_list').new( |
4 | 4 | items: [ |
5 | | - { label: t('.subtotal'), value: number_to_currency(@order.item_total), class: 'font-semibold' }, |
6 | | - { label: t('.taxes'), value: number_to_currency(@order.additional_tax_total) }, |
7 | | - { label: t('.shipping'), value: number_to_currency(@order.shipment_total) }, |
8 | | - { label: link_to(t('.add_promo_code'), '#', class: "body-link"), value: number_to_currency(@order.promo_total) }, |
9 | | - { label: link_to(t('.adjustments'), solidus_admin.order_adjustments_path(@order), class: "body-link"), value: number_to_currency(@order.adjustment_total) }, |
10 | | - { label: t('.total'), value: number_to_currency(@order.total), class: 'font-semibold' } |
| 5 | + { label: t('.subtotal'), value: @order.display_item_total, class: 'font-semibold' }, |
| 6 | + { label: t('.taxes'), value: @order.display_additional_tax_total }, |
| 7 | + { label: t('.shipping'), value: @order.display_shipment_total }, |
| 8 | + { label: link_to(t('.add_promo_code'), '#', class: "body-link"), value: @order.display_promo_total }, |
| 9 | + { label: link_to(t('.adjustments'), solidus_admin.order_adjustments_path(@order), class: "body-link"), value: @order.display_adjustment_total }, |
| 10 | + { label: t('.total'), value: @order.display_total, class: 'font-semibold' } |
11 | 11 | ] |
12 | 12 | ) %> |
13 | 13 | <% end %> |
|
0 commit comments