From 4a3e5f1d0a0a60efdc74dee66887103cf188b2d7 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 6 Feb 2019 15:07:05 +1100 Subject: [PATCH] Print supplier name on invoice --- app/views/spree/admin/orders/_invoice_table.html.haml | 3 +++ app/views/spree/admin/orders/_invoice_table2.html.haml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/views/spree/admin/orders/_invoice_table.html.haml b/app/views/spree/admin/orders/_invoice_table.html.haml index 9375f9bb68..c96099edb6 100644 --- a/app/views/spree/admin/orders/_invoice_table.html.haml +++ b/app/views/spree/admin/orders/_invoice_table.html.haml @@ -14,6 +14,9 @@ %tr %td = render 'spree/shared/line_item_name', line_item: item + %br + %small + %em= raw(item.variant.product.supplier.name) %td{:align => "right"} = item.quantity %td{:align => "right"} diff --git a/app/views/spree/admin/orders/_invoice_table2.html.haml b/app/views/spree/admin/orders/_invoice_table2.html.haml index 0941904d8b..2d42591ddc 100644 --- a/app/views/spree/admin/orders/_invoice_table2.html.haml +++ b/app/views/spree/admin/orders/_invoice_table2.html.haml @@ -17,6 +17,9 @@ %tr %td = render 'spree/shared/line_item_name', line_item: item + %br + %small + %em= raw(item.variant.product.supplier.name) %td{:align => "right"} = item.quantity %td{:align => "right"}