%= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Return Authorizations' } %> <% content_for :page_actions do %> <% if @order.shipments.any? &:shipped? %>
<%= Spree::ReturnAuthorization.human_attribute_name(:number) %> | <%= Spree::ReturnAuthorization.human_attribute_name(:state) %> | <%= Spree::ReturnAuthorization.human_attribute_name(:total_excluding_vat) %> | <%= Spree::ReturnAuthorization.human_attribute_name(:created_at) %> | |
---|---|---|---|---|
<%= return_authorization.number %> | <%= return_authorization.display_total_excluding_vat.to_html %> | <%= pretty_time(return_authorization.created_at) %> | <% if can? :update, return_authorization %> <%= link_to_edit return_authorization, no_text: true, class: 'edit' %> <% end %> <% if can?(:destroy, return_authorization) && !return_authorization.customer_returned_items? %> <%= link_to_delete return_authorization, no_text: true %> <% end %> |