Removing raw from invoice template

This commit is contained in:
Gaetan Craig-Riou
2023-11-13 15:54:22 +11:00
parent 031cc45992
commit 28f3161bf8
5 changed files with 11 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
%h5.inline-header
= "#{raw(line_item.variant.product.name)}"
= line_item.variant.product.name
- unless line_item.variant.product.name.include? line_item.name_to_display
%span= "- #{raw(line_item.name_to_display)}"
%span= "- #{line_item.name_to_display}"
- if line_item.unit_price_price_and_unit
= raw("(#{line_item.unit_price_price_and_unit})")
= raw("(#{line_item.unit_price_price_and_unit})")

View File

@@ -16,7 +16,7 @@
= render 'spree/shared/line_item_name', line_item: item
%br
%small
%em= raw(item.variant.product.supplier.name)
%em= item.variant.product.supplier.name
%td{:align => "right"}
= item.quantity
%td{:align => "right"}
@@ -28,7 +28,7 @@
- taxable = adjustment.adjustable_type == "Spree::Shipment" ? adjustment.adjustable : adjustment
%tr
%td
%strong= "#{raw(adjustment.label)}"
%strong= adjustment.label
%td{:align => "right"}
1
%td{:align => "right"}

View File

@@ -19,7 +19,7 @@
= render 'spree/shared/line_item_name', line_item: item
%br
%small
%em= raw(item.variant.product.supplier.name)
%em= item.variant.product.supplier.name
%td{:align => "right"}
= item.quantity
%td{:align => "right"}
@@ -33,7 +33,7 @@
- checkout_adjustments_for(@order, exclude: [:line_item]).reverse_each do |adjustment|
%tr
%td
%strong= "#{raw(adjustment.label)}"
%strong= adjustment.label
%td{:align => "right"}
%td{:align => "right"}
%td{:align => "right"}

View File

@@ -22,7 +22,7 @@
= render 'spree/admin/orders/_invoice/line_item_name', line_item: item
%br
%small
%em= raw(item.variant.product.supplier.name)
%em= item.variant.product.supplier.name
%td{:align => "right"}
= item.quantity
%td{:align => "right"}
@@ -51,7 +51,7 @@
- @order.checkout_adjustments(exclude: [:line_item, :shipment]).reverse_each do |adjustment|
%tr
%td
%strong= "#{raw(adjustment.label)}"
%strong= adjustment.label
%td{:align => "right"}
%td{:align => "right"}
%td{:align => "right"}

View File

@@ -20,7 +20,7 @@
= render 'spree/shared/line_item_name', line_item: item
%br
%small
%em= raw(item.variant.product.supplier.name)
%em= item.variant.product.supplier.name
%td
- if item.variant.sku.blank?
\-
@@ -43,7 +43,7 @@
- checkout_adjustments_for(@order, exclude: [:line_item]).reverse_each do |adjustment|
%tr
%td{align: "right", colspan: "3"}
= "#{raw(adjustment.label)}:"
= "#{adjustment.label}:"
%td{align: "right"}
= adjustment.display_amount
%tr