Skip to content

Commit

Permalink
remove 0.0% if no tax rate applied to line items
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Feb 19, 2024
1 parent 59a9034 commit f44a435
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -542,7 +542,7 @@
# first line item, no tax
expect(page).to have_content Spree::Product.first.name.to_s
expect(page).to have_content "($12,540.00 / kg)" # unit price
expect(page).to have_content "1 1g $12.54 $12.54 0.0% $12.54"
expect(page).to have_content "1 1g $12.54 $12.54 $12.54"
# # second line item, included tax
expect(page).to have_content Spree::Product.second.name.to_s
expect(page).to have_content "($500,150.00 / kg)" # unit price
Expand Down Expand Up @@ -645,7 +645,7 @@
# first line item, no tax
expect(page).to have_content Spree::Product.first.name.to_s
expect(page).to have_content "($12,540.00 / kg)" # unit price
expect(page).to have_content "1 1g $12.54 $12.54 0.0% $12.54"
expect(page).to have_content "1 1g $12.54 $12.54 $12.54"
# second line item, included tax
expect(page).to have_content Spree::Product.second.name.to_s
expect(page).to have_content "($500,150.00 / kg)" # unit price
Expand Down

0 comments on commit f44a435

Please sign in to comment.