Skip to content

Commit

Permalink
remove ':' after the shipping category on the invoice template
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Dec 14, 2023
1 parent 82d50f5 commit 2b1d792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/spree/admin/orders/_invoice_table4.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
= item.display_amount_with_adjustments_and_with_taxes
%tr
%td
%strong= "#{@order.shipping_method.category} : "
%strong= "#{@order.shipping_method.category} "
= "(#{@order.shipping_method.name})"
%td{:align => "right"}
%td{:align => "right"}
Expand Down
4 changes: 2 additions & 2 deletions spec/system/admin/invoice_print_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@
expect(page).to have_content "#{enterprise_fee.name} fee by $104.35 15.0% $120.00"
expect(page).to have_content "coordinator #{user1.enterprises.first.name}"
# Shipping
expect(page).to have_content "Delivery :(#{shipping_method_name}) $91.41 10.0% $100.55"
expect(page).to have_content "Delivery (#{shipping_method_name}) $91.41 10.0% $100.55"
# Tax totals
expect(page).to have_content "Total tax (10.0%): $9.14 " \
"Total tax (15.0%): $15.65 Total tax (20.0%): $250.08"
Expand Down Expand Up @@ -649,7 +649,7 @@
expect(page).to have_content "#{enterprise_fee.name} fee by $120.00 15.0% $138.00"
expect(page).to have_content "coordinator #{user1.enterprises.first.name}"
# Shipping
expect(page).to have_content "Delivery :(#{shipping_method_name}) $100.55 10.0% $110.61"
expect(page).to have_content "Delivery (#{shipping_method_name}) $100.55 10.0% $110.61"
# Tax totals
expect(page).to have_content "Total tax (10.0%): $10.06 " \
"Total tax (15.0%): $18.00 Total tax (20.0%): $300.09"
Expand Down

0 comments on commit 2b1d792

Please sign in to comment.