Skip to content

Commit

Permalink
fix price per unit
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Oct 19, 2023
1 parent 3582e8d commit e1c70fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/invoice/data_presenter/line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def display_amount_with_adjustments_and_with_taxes
end

def single_display_amount_with_adjustments
Spree::Money.new(price_with_adjustments, currency:)
Spree::Money.new(price_with_adjustments - (included_tax/quantity), currency:)
end

def display_line_items_taxes(display_zero: true)
Expand Down
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 @@ -8,7 +8,7 @@
%th{:align => "right", :width => "15%"}
%h5= t(:invoice_column_weight_volume)
%th{:align => "right", :width => "15%"}
%h5= @order.has_taxes_included ? t(:invoice_column_unit_price_with_taxes) : t(:invoice_column_unit_price_without_taxes)
%h5= t(:invoice_column_price_per_unit_without_taxes)
%th{:align => "right", :width => "15%"}
%h5= t(:invoice_column_price_without_taxes)
%th{:align => "right", :width => "15%"}
Expand Down

0 comments on commit e1c70fb

Please sign in to comment.