mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
Removing raw from invoice template
This commit is contained in:
@@ -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})")
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user